Changes in uspace/app/kio/kio.c [8820544:bf9cb2f] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/kio/kio.c

    r8820544 rbf9cb2f  
    3939#include <as.h>
    4040#include <ddi.h>
     41#include <event.h>
    4142#include <errno.h>
    4243#include <str_error.h>
     
    148149 *
    149150 */
    150 static void kio_notification_handler(ipc_callid_t callid, ipc_call_t *call,
    151     void *arg)
     151static void notification_received(ipc_callid_t callid, ipc_call_t *call)
    152152{
    153153        /*
     
    181181                producer(kio_stored, kio + offset);
    182182       
    183         async_event_unmask(EVENT_KIO);
     183        event_unmask(EVENT_KIO);
    184184        fibril_mutex_unlock(&mtx);
    185185}
     
    214214       
    215215        prodcons_initialize(&pc);
    216         rc = async_event_subscribe(EVENT_KIO, kio_notification_handler, NULL);
     216        async_set_interrupt_received(notification_received);
     217        rc = event_subscribe(EVENT_KIO, 0);
    217218        if (rc != EOK) {
    218219                fprintf(stderr, "%s: Unable to register kio notifications\n",
     
    232233                fprintf(stderr, "%s: Could not create input\n", NAME);
    233234                return ENOMEM;
    234         }
     235        }       
    235236
    236237        fibril_add_ready(fid);
    237         async_event_unmask(EVENT_KIO);
     238        event_unmask(EVENT_KIO);
    238239        kio_update();
    239240       
     
    250251                free(str);
    251252        }
    252 
     253 
    253254        if (rc == ENOENT)
    254                 rc = EOK;
     255                rc = EOK;       
    255256
    256257        return EOK;
Note: See TracChangeset for help on using the changeset viewer.