Changes in uspace/lib/c/generic/irq.c [3f74275:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/irq.c
r3f74275 rb7fd2a0 58 58 * @param ucode Top-half pseudocode handler. 59 59 * 60 * @return IRQ capability handle returned by the kernel. 60 * @param[out] out_handle IRQ capability handle returned by the kernel. 61 * 61 62 * @return Error code returned by the kernel. 62 63 * 63 64 */ 64 int ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode) 65 errno_t ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode, 66 cap_handle_t *out_handle) 65 67 { 66 68 if (ucode == NULL) 67 69 ucode = &default_ucode; 68 70 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); 70 73 } 71 74 … … 77 80 * 78 81 */ 79 int ipc_irq_unsubscribe(int cap)82 errno_t ipc_irq_unsubscribe(cap_handle_t cap) 80 83 { 81 return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);84 return (errno_t) __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap); 82 85 } 83 86
Note:
See TracChangeset
for help on using the changeset viewer.