Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/irq.c

    r3f74275 rb7fd2a0  
    5858 * @param ucode  Top-half pseudocode handler.
    5959 *
    60  * @return IRQ capability handle returned by the kernel.
     60 * @param[out] out_handle  IRQ capability handle returned by the kernel.
     61 *
    6162 * @return Error code returned by the kernel.
    6263 *
    6364 */
    64 int ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode)
     65errno_t ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode,
     66    cap_handle_t *out_handle)
    6567{
    6668        if (ucode == NULL)
    6769                ucode = &default_ucode;
    6870       
    69         return __SYSCALL3(SYS_IPC_IRQ_SUBSCRIBE, inr, method, (sysarg_t) ucode);
     71        return (errno_t) __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, method, (sysarg_t) ucode,
     72            (sysarg_t) out_handle);
    7073}
    7174
     
    7780 *
    7881 */
    79 int ipc_irq_unsubscribe(int cap)
     82errno_t ipc_irq_unsubscribe(cap_handle_t cap)
    8083{
    81         return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);
     84        return (errno_t) __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);
    8285}
    8386
Note: See TracChangeset for help on using the changeset viewer.