![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
C++ Irq interface, see IRQs for the C interface. More...
#include <irq>
Public Member Functions | |
l4_msgtag_t | detach (l4_utcb_t *utcb=l4_utcb()) noexcept |
Detach from this interrupt. | |
l4_msgtag_t | receive (l4_timeout_t timeout=L4_IPC_NEVER, l4_utcb_t *utcb=l4_utcb()) noexcept |
Unmask and wait for this IRQ. | |
l4_msgtag_t | wait (l4_umword_t *label, l4_timeout_t timeout=L4_IPC_NEVER, l4_utcb_t *utcb=l4_utcb()) noexcept |
Unmask IRQ and (open) wait for any message. | |
l4_msgtag_t | unmask (l4_utcb_t *utcb=l4_utcb()) noexcept |
Unmask this IRQ. | |
![]() | |
l4_msgtag_t | trigger (l4_utcb_t *utcb=l4_utcb()) noexcept |
Trigger the object. | |
![]() | |
l4_msgtag_t | unmask (unsigned irqnum, l4_umword_t *label=0, l4_timeout_t to=L4_IPC_NEVER, l4_utcb_t *utcb=l4_utcb()) noexcept |
Unmask the given interrupt line. | |
![]() | |
l4_msgtag_t | bind_thread (Ipc::Cap< Thread > t, l4_umword_t label) |
Bind a thread to an IPC receive endpoint. | |
![]() | |
l4_msgtag_t | dec_refcnt (l4_mword_t diff, l4_utcb_t *utcb=l4_utcb()) |
Decrement the in kernel reference counter for the object. | |
Additional Inherited Members | |
![]() | |
typedef Irq | Class |
The target interface type (inheriting from Kobject_t) | |
typedef Typeid::Iface< PROTO, Irq > | __Iface |
The interface description for the derived class. | |
typedef Typeid::Merge_list< Typeid::Iface_list< __Iface >, Typeid::Merge_list< typename Base1::__Iface_list, typename Base2::__Iface_list > > | __Iface_list |
The list of all RPC interfaces provided directly or through inheritance. | |
![]() | |
typedef Triggerable | Class |
The target interface type (inheriting from Kobject_t) | |
typedef Typeid::Iface< PROTO, Triggerable > | __Iface |
The interface description for the derived class. | |
typedef Typeid::Merge_list< Typeid::Iface_list< __Iface >, typename Base::__Iface_list > | __Iface_list |
The list of all RPC interfaces provided directly or through inheritance. | |
![]() | |
typedef Rcv_endpoint | Class |
The target interface type (inheriting from Kobject_t) | |
typedef Typeid::Iface< PROTO, Rcv_endpoint > | __Iface |
The interface description for the derived class. | |
typedef Typeid::Merge_list< Typeid::Iface_list< __Iface >, typename Base::__Iface_list > | __Iface_list |
The list of all RPC interfaces provided directly or through inheritance. | |
![]() | |
L4::Cap< Class > | c () const noexcept |
Get the capability to ourselves. | |
![]() | |
L4::Cap< Class > | c () const noexcept |
Get the capability to ourselves. | |
![]() | |
L4::Cap< Class > | c () const noexcept |
Get the capability to ourselves. | |
![]() | |
l4_cap_idx_t | cap () const noexcept |
Return capability selector. | |
![]() | |
static void | __check_protocols__ () noexcept |
Helper to check for protocol conflicts. | |
![]() | |
static void | __check_protocols__ () noexcept |
Helper to check for protocol conflicts. | |
![]() | |
static void | __check_protocols__ () noexcept |
Helper to check for protocol conflicts. | |
C++ Irq interface, see IRQs for the C interface.
The Irq class provides access to abstract interrupts provided by the microkernel. Interrupts may be
For hardware and virtual device interrupts the Irq object must be bound to an interrupt source, see L4::Icu. To receive interrupts, the Irq object must be bound to a thread, see L4::Rcv_endpoint.
Irq objects can be created using a factory, see the L4::Factory API (L4::Factory::create()).
For the C interface refer to the IRQs API for an overview.
|
inlinenoexcept |
Detach from this interrupt.
utcb | UTCB to be used for this operation, shall be the UTCB of the calling thread. See l4_utcb. |
0 | Successfully detached, there was no interrupt pending. |
1 | Successfully detached, there was an interrupt pending. |
-L4_EPERM | No L4_CAP_FPAGE_S rights on the capability used to invoke this operation. |
Definition at line 148 of file irq.
References l4_irq_detach_u().
|
inlinenoexcept |
Unmask and wait for this IRQ.
timeout | Timeout. |
utcb | UTCB to be used for this operation, shall be the UTCB of the calling thread. See l4_utcb. |
Definition at line 163 of file irq.
References l4_irq_receive_u().
|
inlinenoexcept |
Unmask this IRQ.
utcb | UTCB to be used for this operation, shall be the UTCB of the calling thread. See l4_utcb. |
Irq::wait() and Irq::receive() operations already include an unmask(), do not use an extra unmask() in these cases.
Definition at line 193 of file irq.
References L4_IPC_NEVER, and unmask().
Referenced by unmask(), and wait().
|
inlinenoexcept |
Unmask IRQ and (open) wait for any message.
label | The protected label shall be received here. |
timeout | Timeout. |
utcb | UTCB to be used for this operation, shall be the UTCB of the calling thread. See l4_utcb. |
Definition at line 176 of file irq.
References unmask().