Inhibitor C interface.
More...
Go to the source code of this file.
Inhibitor C interface.
Definition in file inhibitor.h.
◆ l4re_inhibitor_acquire()
Acquire an inhibitor lock.
- Parameters
-
cap | Capability for the Inhibitor object (see L4Re::Inhibitor) |
id | ID of the inhibitor lock that shall be acquired. |
reason | Reason why the inhibitor lock is acquired. (Used for informing the user or debugging.) |
- Returns
- 0 for success, <0 on error.
- See also
- L4Re::Inhibitor::acquire().
◆ l4re_inhibitor_next_lock_info()
Get information for the next available inhibitor lock.
- Parameters
-
cap | Capability to the Inhibitor object (see L4Re::Inhibitor) |
name | A pointer to a buffer for the name of the lock. |
len | The length of the available buffer (usually L4Re::Inhibitor::Name_max is used). |
current_id | The ID of the last available lock, use -1 to get the first lock. |
- Return values
-
>0 | The ID of the next available lock if there is one (in this case name shall contain the name of the inhibitor lock). |
-L4_ENODEV | if there are no more locks. |
<0 | Any other negative failure value. |
- See also
- L4Re::Inhibitor::next_lock_info().
◆ l4re_inhibitor_release()
Release an inhibitor lock.
- Parameters
-
cap | Capability for the Inhibitor object (see L4Re::Inhibitor). |
id | ID of inhibitor that shall be released. |
- Returns
- 0 for success, <0 on error.
- See also
- L4Re::Inhibitor::release().