Changeset 8820544 in mainline for kernel/generic/src/ipc/sysipc.c


Ignore:
Timestamp:
2014-08-16T00:02:04Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35b8bfe, 8cd680c
Parents:
83f29e0
Message:

support for kernel notification multiplexing in the async framework

  • rename SYS_EVENT_* and SYS_IRQ_* syscalls to unify the terminology
  • add SYS_IPC_EVENT_UNSUBSCRIBE
  • remove IRQ handler multiplexing from DDF, the generic mechanism replaces it (unfortunatelly the order of arguments used by interrupt_handler_t needs to be permutated to align with the async framework conventions)
File:
1 edited

Legend:

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

    r83f29e0 r8820544  
    736736 * @param ucode   Uspace pointer to the top-half pseudocode.
    737737 *
    738  * @return EPERM or a return code returned by ipc_irq_register().
    739  *
    740  */
    741 sysarg_t sys_irq_register(inr_t inr, devno_t devno, sysarg_t imethod,
     738 * @return EPERM or a return code returned by ipc_irq_subscribe().
     739 *
     740 */
     741sysarg_t sys_ipc_irq_subscribe(inr_t inr, devno_t devno, sysarg_t imethod,
    742742    irq_code_t *ucode)
    743743{
     
    745745                return EPERM;
    746746       
    747         return ipc_irq_register(&TASK->answerbox, inr, devno, imethod, ucode);
     747        return ipc_irq_subscribe(&TASK->answerbox, inr, devno, imethod, ucode);
    748748}
    749749
     
    756756 *
    757757 */
    758 sysarg_t sys_irq_unregister(inr_t inr, devno_t devno)
     758sysarg_t sys_ipc_irq_unsubscribe(inr_t inr, devno_t devno)
    759759{
    760760        if (!(cap_get(TASK) & CAP_IRQ_REG))
    761761                return EPERM;
    762762       
    763         ipc_irq_unregister(&TASK->answerbox, inr, devno);
     763        ipc_irq_unsubscribe(&TASK->answerbox, inr, devno);
    764764       
    765765        return 0;
Note: See TracChangeset for help on using the changeset viewer.