L4Re - L4 Runtime Environment
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Interface for asynchronous ISR handlers with a given IRQ capability.

This group is just an enhanced version to l4irq_request() which takes a capability object instead of a plain number. More...

+ Collaboration diagram for Interface for asynchronous ISR handlers with a given IRQ capability.:

Functions

l4irq_t * l4irq_request_cap (l4_cap_idx_t irqcap, void(*isr_handler)(void *), void *isr_data, int irq_thread_prio, unsigned flow_type)
 Attach asychronous ISR handler to IRQ.

Detailed Description

This group is just an enhanced version to l4irq_request() which takes a capability object instead of a plain number.

Function Documentation

l4irq_t* l4irq_request_cap ( l4_cap_idx_t  irqcap,
void(*)(void *)  isr_handler,
void *  isr_data,
int  irq_thread_prio,
unsigned  flow_type 
)

Attach asychronous ISR handler to IRQ.

Parameters
irqcapIRQ capability
isr_handlerHandler routine that is called when an interrupt triggers
isr_dataPointer given as argument to isr_handler
irq_thread_prioL4 thread priority of the ISR handler. Give -1 for same priority as creator.
flow_typeInterrupt type,
See Also
L4_irq_flow_type
Returns
Pointer to l4irq_t structure, 0 on error
L4Re - L4 Runtime Environment