Changes in kernel/generic/src/ipc/irq.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
rcde999a rb7fd2a0 78 78 } 79 79 80 static int ranges_map_and_apply(irq_pio_range_t *ranges, size_t rangecount,80 static errno_t ranges_map_and_apply(irq_pio_range_t *ranges, size_t rangecount, 81 81 irq_cmd_t *cmds, size_t cmdcount) 82 82 { … … 164 164 * 165 165 */ 166 static int code_check(irq_cmd_t *cmds, size_t cmdcount)166 static errno_t code_check(irq_cmd_t *cmds, size_t cmdcount) 167 167 { 168 168 for (size_t i = 0; i < cmdcount; i++) { … … 226 226 227 227 irq_code_t *code = malloc(sizeof(*code), 0); 228 int rc = copy_from_uspace(code, ucode, sizeof(*code));228 errno_t rc = copy_from_uspace(code, ucode, sizeof(*code)); 229 229 if (rc != EOK) 230 230 goto error; … … 313 313 * 314 314 */ 315 int ipc_irq_subscribe(answerbox_t *box, inr_t inr, sysarg_t imethod,315 errno_t ipc_irq_subscribe(answerbox_t *box, inr_t inr, sysarg_t imethod, 316 316 irq_code_t *ucode, cap_handle_t *uspace_handle) 317 317 { … … 331 331 */ 332 332 cap_handle_t handle; 333 int rc = cap_alloc(TASK, &handle);333 errno_t rc = cap_alloc(TASK, &handle); 334 334 if (rc != EOK) 335 335 return rc; … … 390 390 * 391 391 */ 392 int ipc_irq_unsubscribe(answerbox_t *box, int handle)392 errno_t ipc_irq_unsubscribe(answerbox_t *box, int handle) 393 393 { 394 394 kobject_t *kobj = cap_unpublish(TASK, handle, KOBJECT_TYPE_IRQ);
Note:
See TracChangeset
for help on using the changeset viewer.