Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1931 → Rev 1932

/trunk/kernel/generic/include/ipc/irq.h
78,6 → 78,7
* It is protected by irq_t::lock.
*/
struct ipc_notif_cfg {
bool notify; /**< When false, notifications are not sent. */
answerbox_t *answerbox; /**< Answerbox for notifications. */
unative_t method; /**< Method to be used for the notification. */
irq_code_t *code; /**< Top-half pseudocode. */
/trunk/kernel/generic/src/ipc/irq.c
176,11 → 176,12
irq = irq_find_and_lock(inr, devno);
if (irq) {
if (irq->notif_cfg.answerbox == box) {
code_free(irq->notif_cfg.code);
irq->notif_cfg.notify = false;
irq->notif_cfg.answerbox = NULL;
irq->notif_cfg.code = NULL;
irq->notif_cfg.answerbox = NULL;
irq->notif_cfg.method = 0;
irq->notif_cfg.counter = 0;
code_free(irq->notif_cfg.code);
spinlock_unlock(&irq->lock);
}
}
226,6 → 227,7
return EEXISTS;
}
irq->notif_cfg.notify = true;
irq->notif_cfg.answerbox = box;
irq->notif_cfg.method = method;
irq->notif_cfg.code = code;