Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/irq.c

    r8820544 rcfaa35a  
    3636 * @brief IRQ notification framework.
    3737 *
    38  * This framework allows applications to subscribe to receive a notification
     38 * This framework allows applications to register to receive a notification
    3939 * when interrupt is detected. The application may provide a simple 'top-half'
    4040 * handler as part of its registration, which can perform simple operations
     
    4242 *
    4343 * 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
    4546 * - ARG1: payload modified by a 'top-half' handler (scratch[1])
    4647 * - ARG2: payload modified by a 'top-half' handler (scratch[2])
     
    5152 *                  in multithreaded drivers)
    5253 *
    53  * Note on synchronization for ipc_irq_subscribe(), ipc_irq_unsubscribe(),
     54 * Note on synchronization for ipc_irq_register(), ipc_irq_unregister(),
    5455 * ipc_irq_cleanup() and IRQ handlers:
    5556 *
     
    288289}
    289290
    290 /** Subscribe an answerbox as a receiving end for IRQ notifications.
     291/** Register an answerbox as a receiving end for IRQ notifications.
    291292 *
    292293 * @param box     Receiving answerbox.
     
    300301 *
    301302 */
    302 int ipc_irq_subscribe(answerbox_t *box, inr_t inr, devno_t devno,
     303int ipc_irq_register(answerbox_t *box, inr_t inr, devno_t devno,
    303304    sysarg_t imethod, irq_code_t *ucode)
    304305{
     
    368369}
    369370
    370 /** Unsubscribe task from IRQ notification.
     371/** Unregister task from IRQ notification.
    371372 *
    372373 * @param box   Answerbox associated with the notification.
     
    377378 *
    378379 */
    379 int ipc_irq_unsubscribe(answerbox_t *box, inr_t inr, devno_t devno)
     380int ipc_irq_unregister(answerbox_t *box, inr_t inr, devno_t devno)
    380381{
    381382        sysarg_t key[] = {
     
    431432 *
    432433 * This function is effective because the answerbox contains
    433  * list of all irq_t structures that are subscribed to
     434 * list of all irq_t structures that are registered to
    434435 * send notifications to it.
    435436 *
Note: See TracChangeset for help on using the changeset viewer.