Changeset 9233e9d in mainline for uspace/lib/c/generic/irq.c


Ignore:
Timestamp:
2017-12-08T21:17:27Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
071a1ddb
Parents:
6deb2cd
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 16:48:51)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:17:27)
Message:

Return capability handle in SYS_IPC_IRQ_SUBSCRIBE separately from error code.

File:
1 edited

Legend:

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

    r6deb2cd r9233e9d  
    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)
     65int 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 __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)
     82int ipc_irq_unsubscribe(cap_handle_t cap)
    8083{
    8184        return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);
Note: See TracChangeset for help on using the changeset viewer.