25 char const *type)
const noexcept
28 auto call = f->create(mem, L4Re::Dataspace::Protocol);
37 static constexpr unsigned Prefix_len = 5;
39 auto len = __builtin_strlen(type);
40 if (len >
sizeof(type_buf) - Prefix_len - 1)
42 __builtin_memcpy(type_buf,
"type=", Prefix_len);
43 __builtin_memcpy(&type_buf[Prefix_len], type, len);
44 type_buf[Prefix_len + len] =
'\0';
@ Fixed_paddr
Allocate at fixed physical address.
l4_ret_t alloc(long size, L4::Cap< Dataspace > mem, unsigned long flags=0, unsigned long align=0, l4_addr_t paddr=0, char const *type=nullptr) const noexcept
Allocate anonymous memory.
C++ interface for capabilities.
l4_cap_idx_t cap() const noexcept
Return capability selector.
Common factory related definitions.
unsigned long l4_umword_t
Unsigned machine word.
unsigned long l4_addr_t
Address type.
signed long l4_mword_t
Signed machine word.
@ L4_EINVAL
Invalid argument.
l4_ret_t l4_error(l4_msgtag_t tag) L4_NOTHROW
Get IPC error code if any or message tag label otherwise for an IPC call.
l4_int16_t l4_ret_t
Return value of an IPC call as well as an RPC call.
Memory allocator interface.