Abstract server-side implementation of the L4::Namespace interface.
More...
Abstract server-side implementation of the L4::Namespace interface.
Definition at line 184 of file name_space_svr.
◆ alloc_dynamic_entry()
virtual Entry* L4Re::Util::Names::Name_space::alloc_dynamic_entry |
( |
Name const & |
n, |
|
|
unsigned |
flags |
|
) |
| |
|
protectedpure virtual |
Allocate a new entry for the given name.
- Parameters
-
n | Name of the entry, must be copied. |
flags | Entry flags, see Obj::Flags. |
- Returns
- A pointer to the newly allocated entry or NULL on error.
◆ copy_receive_cap()
virtual int L4Re::Util::Names::Name_space::copy_receive_cap |
( |
L4::Cap< void > * |
cap | ) |
|
|
protectedpure virtual |
Return the receive capability for permanent use.
- Parameters
-
[out] | cap | Capability slot with the received capability. Must be permanently available until free_capability() is called. |
◆ free_capability()
virtual void L4Re::Util::Names::Name_space::free_capability |
( |
L4::Cap< void > |
cap | ) |
|
|
protectedpure virtual |
Free a capability previously acquired with copy_receive_cap().
- Parameters
-
[in] | cap | Capability to free. |
◆ free_dynamic_entry()
virtual void L4Re::Util::Names::Name_space::free_dynamic_entry |
( |
Entry * |
e | ) |
|
|
protectedpure virtual |
◆ free_epiface()
virtual void L4Re::Util::Names::Name_space::free_epiface |
( |
L4::Epiface * |
epiface | ) |
|
|
protectedpure virtual |
Free epiface previously acquired with get_epiface().
- Parameters
-
[in] | epiface | Epiface to free. |
Called when an entry that points to an epiface is deleted allowing implementations that hold resources to free them.
◆ get_epiface()
virtual int L4Re::Util::Names::Name_space::get_epiface |
( |
l4_umword_t |
data, |
|
|
bool |
is_local, |
|
|
L4::Epiface ** |
lo |
|
) |
| |
|
protectedpure virtual |
Return a pointer to the epiface assigned to a given label.
- Parameters
-
[in] | data | Label or in the local case the capability slot of the receiving capability. |
[in] | is_local | If true, a truly local capability was supplied. |
[out] | lo | Pointer to epiface responsible for the capability. |
- Returns
- L4_OK if a valid interface could be found or an error message otherwise.
The caller must make sure that the epiface remains valid until free_epiface is called. In particular, the capability slot must not be reallocated as long as the namespace server holds a reference to the epiface.
The documentation for this class was generated from the following file: