Changeset 2b017ba in mainline for uspace/libc/generic/ipc.c
- Timestamp:
- 2006-10-16T20:51:55Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f9b4d9a
- Parents:
- e3890b3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/ipc.c
re3890b3f r2b017ba 450 450 } 451 451 452 int ipc_register_irq(int irq, irq_code_t *ucode) 453 { 454 return __SYSCALL2(SYS_IPC_REGISTER_IRQ, irq, (sysarg_t) ucode); 455 } 456 457 int ipc_unregister_irq(int irq) 458 { 459 return __SYSCALL1(SYS_IPC_UNREGISTER_IRQ, irq); 452 /** Register IRQ notification. 453 * 454 * @param inr IRQ number. 455 * @param devno Device number of the device generating inr. 456 * @param method Use this method for notifying me. 457 * @param ucode Top-half pseudocode handler. 458 * 459 * @return Value returned by the kernel. 460 */ 461 int ipc_register_irq(int inr, int devno, int method, irq_code_t *ucode) 462 { 463 return __SYSCALL4(SYS_IPC_REGISTER_IRQ, inr, devno, method, (sysarg_t) ucode); 464 } 465 466 /** Unregister IRQ notification. 467 * 468 * @param inr IRQ number. 469 * @param devno Device number of the device generating inr. 470 * 471 * @return Value returned by the kernel. 472 */ 473 int ipc_unregister_irq(int inr, int devno) 474 { 475 return __SYSCALL2(SYS_IPC_UNREGISTER_IRQ, inr, devno); 460 476 } 461 477
Note:
See TracChangeset
for help on using the changeset viewer.