25 #include <l4/sys/consts.h> 83 for (
unsigned i = 0; n && i <
sizeof(
name); ++i, ++n)
91 static bool is_valid_name(
char const *n)
93 for (
unsigned i = 0; *n; ++i, ++n)
185 {
return l4re_global_env; }
190 extern char __L4_KIP_ADDR__[];
198 for (; c && c->
flags != ~0UL; ++c)
206 if (i == l && (i ==
sizeof(c->
name) || !c->
name[i]))
217 for (l = 0;
name[l]; ++l) ;
l4_cap_idx_t l4re_env_get_cap_e(char const *name, l4re_env_t const *e) L4_NOTHROW
Get the capability selector for the object named name.
l4_fpage_t utcb_area
UTCB area of the task.
Invalid capability selector.
l4_umword_t flags
Some flags for the object.
l4_cap_idx_t parent
Parent object-capability.
struct l4re_env_t l4re_env_t
Initial environment data structure.
Initial environment data structure.
Common L4 ABI Data Types.
l4_cap_idx_t first_free_cap
First capability index available to the application.
l4_kernel_info_t * l4re_kip(void) L4_NOTHROW
Get Kernel Info Page.
unsigned long l4_cap_idx_t
L4 Capability selector Type.
l4_cap_idx_t cap
The capability selector for the object.
L4 Kernel Interface Page.
l4_cap_idx_t rm
Region map object-capability.
unsigned long l4_umword_t
Unsigned machine word.
l4re_env_cap_entry_t()
Create an invalid entry.
Kernel Info Page access functions.
l4re_env_cap_entry_t const * l4re_env_get_cap_l(char const *name, unsigned l, l4re_env_t const *e) L4_NOTHROW
Get the full l4re_env_cap_entry_t for the object named name.
l4_addr_t first_free_utcb
First UTCB within the UTCB area available to the application.
l4re_env_cap_entry_t(char const *n, l4_cap_idx_t c, l4_umword_t f=0)
Create an entry with the name n, capability c, and flags f.
l4_cap_idx_t main_thread
Object-capability of the first user thread.
l4_cap_idx_t factory
Object-capability of the factory available to the task.
l4_cap_idx_t l4re_env_get_cap(char const *name) L4_NOTHROW
Get the capability selector for the object named name.
l4re_env_t * l4re_env(void) L4_NOTHROW
Get L4Re initial environment.
l4_cap_idx_t scheduler
Object capability for the scheduler set to use.
unsigned long l4_addr_t
Address type.
l4_cap_idx_t mem_alloc
Memory allocator object-capability.
Entry in the L4Re environment array for the named inital objects.
char name[16]
The name of the object.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
l4_cap_idx_t log
Logging object-capability.