Changes in uspace/app/kio/kio.c [8820544:bf9cb2f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/kio/kio.c
r8820544 rbf9cb2f 39 39 #include <as.h> 40 40 #include <ddi.h> 41 #include <event.h> 41 42 #include <errno.h> 42 43 #include <str_error.h> … … 148 149 * 149 150 */ 150 static void kio_notification_handler(ipc_callid_t callid, ipc_call_t *call, 151 void *arg) 151 static void notification_received(ipc_callid_t callid, ipc_call_t *call) 152 152 { 153 153 /* … … 181 181 producer(kio_stored, kio + offset); 182 182 183 async_event_unmask(EVENT_KIO);183 event_unmask(EVENT_KIO); 184 184 fibril_mutex_unlock(&mtx); 185 185 } … … 214 214 215 215 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); 217 218 if (rc != EOK) { 218 219 fprintf(stderr, "%s: Unable to register kio notifications\n", … … 232 233 fprintf(stderr, "%s: Could not create input\n", NAME); 233 234 return ENOMEM; 234 } 235 } 235 236 236 237 fibril_add_ready(fid); 237 async_event_unmask(EVENT_KIO);238 event_unmask(EVENT_KIO); 238 239 kio_update(); 239 240 … … 250 251 free(str); 251 252 } 252 253 253 254 if (rc == ENOENT) 254 rc = EOK; 255 rc = EOK; 255 256 256 257 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.