22 #include <l4/sys/cxx/ipc_server_loop> 23 #include <l4/cxx/ipc_timeout_queue> 26 namespace L4Re {
namespace Util {
39 enum { _mem = 0, _ports = 0 };
64 while (_caps < d.
caps)
70 reinterpret_cast<Small_buf&
>(_brs[_caps])
71 = Small_buf(cap.
cap(), _cap_flags);
83 if (i < 0 || i >= _caps)
93 if (i < 0 || i >= _caps)
100 reinterpret_cast<Small_buf&
>(_brs[i])
101 = Small_buf(cap.
cap(), _cap_flags);
133 for (
unsigned i = 0; i <= _caps; ++i)
148 unsigned short _caps;
149 unsigned long _cap_flags;
Mix in for LOOP_HOOKS to always use compound reply and wait.
Low-level assert implementation.
void set_rcv_cap_flags(unsigned long flags)
Set the receive flags for the buffers.
int alloc_buffer_demand(Demand const &d)
Tells the server to allocate buffers for the given demand.
Data type for expressing the needed receive buffers at the server-side of an interface.
unsigned char ports
number of IO-port receive buffers.
Reply_mode
Reply mode for server loop.
Interface for server-loop related functions.
Br_manager()
Make a buffer-register (BR) manager.
L4::Cap< void > get_rcv_cap(int i) const
Get capability slot allocated to the given receive buffer.
int add_timeout(L4::Ipc_svr::Timeout *, l4_kernel_clock_t)
No timeouts handled by us.
A receive item for receiving a single capability.
l4_kernel_info_t * l4re_kip(void) L4_NOTHROW
Get Kernel Info Page.
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Encapsulation of the buffer-registers block in the UTCB.
Callback interface for Timeout_queue.
The receiver requests to receive a local ID instead of a mapping whenever possible.
Mix in for LOOP_HOOKS to use a 0 send and a infinite receive timeout.
l4_umword_t bdr
Buffer descriptor.
Total number of buffer registers (BRs) available.
unsigned char caps
number of capability receive buffers.
l4_cap_idx_t cap() const
Return capability selector.
_Cap_alloc & cap_alloc
Capability allocator.
unsigned long l4_umword_t
Unsigned machine word.
void setup_wait(l4_utcb_t *utcb, L4::Ipc_svr::Reply_mode)
setup_wait() used the server loop (L4::Server)
l4_uint64_t l4_kernel_clock_t
Kernel clock type.
unsigned char mem
number of memory receive buffers.
#define l4_assert(expr)
Low-level assert.
Predefined server-loop hooks for a server with using the Br_manager and a timeout queue...
Mask to get only the relevant bits of an l4_cap_idx_t.
L4::Cap< void > alloc()
Allocate a new capability slot.
int remove_timeout(L4::Ipc_svr::Timeout *)
No timeouts handled by us.
Buffer-register (BR) manager for L4::Server.
l4_cpu_time_t l4_kip_clock(l4_kernel_info_t *kip) L4_NOTHROW
Return clock value from the KIP.
Predefined server-loop hooks for a server loop using the Br_manager.
C++ interface for capabilities.
l4_umword_t br[L4_UTCB_GENERIC_BUFFERS_SIZE]
Buffer registers.
Mix in for LOOP_HOOKS to ignore IPC errors.
int realloc_rcv_cap(int i)
Allocate a new capability for the given receive buffer.
Loop hooks mixin for integrating a timeout queue into the server loop.
unsigned first_free_br() const
Used for assigning BRs for a timeout.