Changeset 78ffb70 in mainline for kernel/generic/src/ipc/irq.c
- Timestamp:
- 2010-12-19T14:14:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be942bc, eff1f033
- Parents:
- 40dc422
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
r40dc422 r78ffb70 131 131 /** Register an answerbox as a receiving end for IRQ notifications. 132 132 * 133 * @param box Receiving answerbox. 134 * @param inr IRQ number. 135 * @param devno Device number. 136 * @param imethod Interface and method to be associated 137 * with the notification. 138 * @param ucode Uspace pointer to top-half pseudocode. 139 * 140 * @return EBADMEM, ENOENT or EEXISTS on failure or 0 on success. 133 * @param box Receiving answerbox. 134 * @param inr IRQ number. 135 * @param devno Device number. 136 * @param imethod Interface and method to be associated with the 137 * notification. 138 * @param ucode Uspace pointer to top-half pseudocode. 139 * @return EOK on success or a negative error code. 141 140 * 142 141 */ … … 148 147 (sysarg_t) devno 149 148 }; 149 150 if ((inr < 0) || (inr > last_inr)) 151 return ELIMIT; 150 152 151 153 irq_code_t *code; … … 208 210 /** Unregister task from IRQ notification. 209 211 * 210 * @param box 211 * @param inr 212 * @param devno 213 * 212 * @param box Answerbox associated with the notification. 213 * @param inr IRQ number. 214 * @param devno Device number. 215 * @return EOK on success or a negative error code. 214 216 */ 215 217 int ipc_irq_unregister(answerbox_t *box, inr_t inr, devno_t devno) … … 219 221 (sysarg_t) devno 220 222 }; 223 224 if ((inr < 0) || (inr > last_inr)) 225 return ELIMIT; 221 226 222 227 irq_spinlock_lock(&irq_uspace_hash_table_lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.