[−][src]Function sunrise_kernel::syscalls::create_interrupt_event
pub fn create_interrupt_event(
irq_num: usize,
_flag: u32
) -> Result<usize, UserspaceError>
Create an event handle for the given IRQ number. Waiting on this handle will wait until the IRQ is triggered. The flags argument configures the triggering. If it is false, the IRQ is active HIGH level sensitive, if it is true it is rising-edge sensitive.
Return
A handle to the readable event associated with the IRQ.
Error
NoSuchEntry: IRQ above 0x3FF or outside the IRQ access mask was given.