Changeset 9233e9d in mainline for uspace/lib/c/generic/irq.c
- Timestamp:
- 2017-12-08T21:17:27Z (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/irq.c
r6deb2cd r9233e9d 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 __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 84 return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);
Note:
See TracChangeset
for help on using the changeset viewer.