Skip to main content

async_irq_handler_t

Type Alias async_irq_handler_t 

Source
pub type async_irq_handler_t = Option<unsafe extern "C" fn(dispatcher: *mut async_dispatcher_t, irq: *mut async_irq_t, status: zx_status_t, signal: *const zx_packet_interrupt_t)>;
Expand description

Handles interrupt.

The |status| is |ZX_OK| if the IRQ was signalled. The |status| is |ZX_ERR_CANCELED| if the dispatcher was shut down before the task’s handler ran or the task was canceled.

Aliased Type§

pub enum async_irq_handler_t {
    None,
    Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_irq, i32, *const zx_packet_interrupt_t)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut async_dispatcher, *mut async_irq, i32, *const zx_packet_interrupt_t))

Some value of type T.