Changes in kernel/generic/src/ipc/irq.c [cfaa35a:8820544] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
rcfaa35a r8820544 36 36 * @brief IRQ notification framework. 37 37 * 38 * This framework allows applications to registerto receive a notification38 * This framework allows applications to subscribe to receive a notification 39 39 * when interrupt is detected. The application may provide a simple 'top-half' 40 40 * handler as part of its registration, which can perform simple operations … … 42 42 * 43 43 * The structure of a notification message is as follows: 44 * - IMETHOD: interface and method as registered by 45 * the SYS_IRQ_REGISTER syscall 44 * - IMETHOD: interface and method as set by the SYS_IPC_IRQ_SUBSCRIBE syscall 46 45 * - ARG1: payload modified by a 'top-half' handler (scratch[1]) 47 46 * - ARG2: payload modified by a 'top-half' handler (scratch[2]) … … 52 51 * in multithreaded drivers) 53 52 * 54 * Note on synchronization for ipc_irq_ register(), ipc_irq_unregister(),53 * Note on synchronization for ipc_irq_subscribe(), ipc_irq_unsubscribe(), 55 54 * ipc_irq_cleanup() and IRQ handlers: 56 55 * … … 289 288 } 290 289 291 /** Registeran answerbox as a receiving end for IRQ notifications.290 /** Subscribe an answerbox as a receiving end for IRQ notifications. 292 291 * 293 292 * @param box Receiving answerbox. … … 301 300 * 302 301 */ 303 int ipc_irq_ register(answerbox_t *box, inr_t inr, devno_t devno,302 int ipc_irq_subscribe(answerbox_t *box, inr_t inr, devno_t devno, 304 303 sysarg_t imethod, irq_code_t *ucode) 305 304 { … … 369 368 } 370 369 371 /** Un registertask from IRQ notification.370 /** Unsubscribe task from IRQ notification. 372 371 * 373 372 * @param box Answerbox associated with the notification. … … 378 377 * 379 378 */ 380 int ipc_irq_un register(answerbox_t *box, inr_t inr, devno_t devno)379 int ipc_irq_unsubscribe(answerbox_t *box, inr_t inr, devno_t devno) 381 380 { 382 381 sysarg_t key[] = { … … 432 431 * 433 432 * This function is effective because the answerbox contains 434 * list of all irq_t structures that are registered to433 * list of all irq_t structures that are subscribed to 435 434 * send notifications to it. 436 435 *
Note:
See TracChangeset
for help on using the changeset viewer.