Changeset 8820544 in mainline for uspace/app/kio/kio.c
- Timestamp:
- 2014-08-16T00:02:04Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 35b8bfe, 8cd680c
- Parents:
- 83f29e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/kio/kio.c
r83f29e0 r8820544 39 39 #include <as.h> 40 40 #include <ddi.h> 41 #include <event.h>42 41 #include <errno.h> 43 42 #include <str_error.h> … … 149 148 * 150 149 */ 151 static void notification_received(ipc_callid_t callid, ipc_call_t *call) 150 static void kio_notification_handler(ipc_callid_t callid, ipc_call_t *call, 151 void *arg) 152 152 { 153 153 /* … … 181 181 producer(kio_stored, kio + offset); 182 182 183 event_unmask(EVENT_KIO);183 async_event_unmask(EVENT_KIO); 184 184 fibril_mutex_unlock(&mtx); 185 185 } … … 214 214 215 215 prodcons_initialize(&pc); 216 async_set_interrupt_received(notification_received); 217 rc = event_subscribe(EVENT_KIO, 0); 216 rc = async_event_subscribe(EVENT_KIO, kio_notification_handler, NULL); 218 217 if (rc != EOK) { 219 218 fprintf(stderr, "%s: Unable to register kio notifications\n", … … 233 232 fprintf(stderr, "%s: Could not create input\n", NAME); 234 233 return ENOMEM; 235 } 234 } 236 235 237 236 fibril_add_ready(fid); 238 event_unmask(EVENT_KIO);237 async_event_unmask(EVENT_KIO); 239 238 kio_update(); 240 239 … … 251 250 free(str); 252 251 } 253 252 254 253 if (rc == ENOENT) 255 rc = EOK; 254 rc = EOK; 256 255 257 256 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.