Changes in kernel/generic/src/ipc/irq.c [8820544:cfaa35a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
r8820544 rcfaa35a 36 36 * @brief IRQ notification framework. 37 37 * 38 * This framework allows applications to subscribeto receive a notification38 * This framework allows applications to register 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 set by the SYS_IPC_IRQ_SUBSCRIBE syscall 44 * - IMETHOD: interface and method as registered by 45 * the SYS_IRQ_REGISTER syscall 45 46 * - ARG1: payload modified by a 'top-half' handler (scratch[1]) 46 47 * - ARG2: payload modified by a 'top-half' handler (scratch[2]) … … 51 52 * in multithreaded drivers) 52 53 * 53 * Note on synchronization for ipc_irq_ subscribe(), ipc_irq_unsubscribe(),54 * Note on synchronization for ipc_irq_register(), ipc_irq_unregister(), 54 55 * ipc_irq_cleanup() and IRQ handlers: 55 56 * … … 288 289 } 289 290 290 /** Subscribean answerbox as a receiving end for IRQ notifications.291 /** Register an answerbox as a receiving end for IRQ notifications. 291 292 * 292 293 * @param box Receiving answerbox. … … 300 301 * 301 302 */ 302 int ipc_irq_ subscribe(answerbox_t *box, inr_t inr, devno_t devno,303 int ipc_irq_register(answerbox_t *box, inr_t inr, devno_t devno, 303 304 sysarg_t imethod, irq_code_t *ucode) 304 305 { … … 368 369 } 369 370 370 /** Un subscribetask from IRQ notification.371 /** Unregister task from IRQ notification. 371 372 * 372 373 * @param box Answerbox associated with the notification. … … 377 378 * 378 379 */ 379 int ipc_irq_un subscribe(answerbox_t *box, inr_t inr, devno_t devno)380 int ipc_irq_unregister(answerbox_t *box, inr_t inr, devno_t devno) 380 381 { 381 382 sysarg_t key[] = { … … 431 432 * 432 433 * This function is effective because the answerbox contains 433 * list of all irq_t structures that are subscribed to434 * list of all irq_t structures that are registered to 434 435 * send notifications to it. 435 436 *
Note:
See TracChangeset
for help on using the changeset viewer.