Changes in kernel/generic/src/ipc/irq.c [78ffb70:228e490] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/irq.c
r78ffb70 r228e490 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 with the 137 * notification. 138 * @param ucode Uspace pointer to top-half pseudocode. 139 * @return EOK on success or a negative error code. 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. 140 141 * 141 142 */ … … 147 148 (sysarg_t) devno 148 149 }; 149 150 if ((inr < 0) || (inr > last_inr))151 return ELIMIT;152 150 153 151 irq_code_t *code; … … 210 208 /** Unregister task from IRQ notification. 211 209 * 212 * @param box 213 * @param inr 214 * @param devno 215 * @return EOK on success or a negative error code.210 * @param box Answerbox associated with the notification. 211 * @param inr IRQ number. 212 * @param devno Device number. 213 * 216 214 */ 217 215 int ipc_irq_unregister(answerbox_t *box, inr_t inr, devno_t devno) … … 221 219 (sysarg_t) devno 222 220 }; 223 224 if ((inr < 0) || (inr > last_inr))225 return ELIMIT;226 221 227 222 irq_spinlock_lock(&irq_uspace_hash_table_lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.