Changeset 132ab5d1 in mainline for uspace/lib/c/generic/irq.c
- Timestamp:
- 2018-01-30T03:20:45Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/irq.c
r8bfb163 r132ab5d1 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 int 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 (int) __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 int ipc_irq_unsubscribe(cap_handle_t cap) 80 83 { 81 return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);84 return (int) __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap); 82 85 } 83 86
Note:
See TracChangeset
for help on using the changeset viewer.