Writing Device Drivers

Interrupt Block Cookies

The iblock cookie is an opaque data structure that represented the information the system needs on how to block interrupts and is returned from ddi_get_iblock_cookie(9F). This interface uses an interrupt number to return the iblock cookie associated with a specific interrupt source. The iblock cookie must be passed to mutex_init(9F) when initializing driver mutexes that will be used in the interrupt routine.