pub type interrupt_changed_state_callback_t = Option<unsafe extern "C" fn(interrupt_controller: *mut conf_object_t, device: *mut conf_object_t, irq_level: c_int, enabled: c_int, data: *mut c_void)>;
Expand description

This interrupt_query interface is used by devices connected to interrupt controllers to query whether their irq level is enabled in the interrupt controller or not. This is done by the is_enabled function.

It can also be used to register a callback function to be called when the irq is enabled or disabled through the register_callback function.

This is very old design, do not use in new models!

Aliased Type§

enum interrupt_changed_state_callback_t {
    None,
    Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: i32, _: i32, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: i32, _: i32, _: *mut c_void))

Some value of type T.