25 #include <l4/util/util.h> 38 Namespace::_query(
char const *name,
unsigned len,
47 while (_name.length > 0)
51 int err = query_t::call(ns, _name,
60 bool const partly = err & Partly_resolved;
63 *local_id = cap.
data();
67 if (partly && iterate)
78 int timeout,
l4_umword_t *local_id,
bool iterate)
const throw()
91 ret = _query(name, len, target, local_id, iterate);
120 bool iterate)
const throw()
122 return query(name, __builtin_strlen(name), target,
123 timeout, local_id, iterate);
Low-level assert implementation.
long query(char const *name, L4::Cap< void > const &cap, int timeout=To_default, l4_umword_t *local_id=0, bool iterate=true) const
Query the name space for a named object.
A receive item for receiving a single capability.
long register_obj(char const *name, L4::Ipc::Cap< void > obj, unsigned flags=Rw) const
Register an object with a name.
The receiver requests to receive a local ID instead of a mapping whenever possible.
int Opcode
Data type for RPC opcodes.
#define L4_UNLIKELY(x)
Expression is unlikely to execute.
l4_umword_t data() const
Return the raw flex page descriptor.
unsigned long l4_umword_t
Unsigned machine word.
#define l4_assert(expr)
Low-level assert.
void l4_sleep(int ms) L4_NOTHROW
Suspend thread for a period of ms milliseconds.
long unlink(char const *name)
Remove an entry from the name space.
#define L4_RPC_DEF(name)
Generate the definition of an RPC stub.
Cap< T > cap_cast(Cap< F > const &c)
static_cast for capabilities.
C++ interface for capabilities.
Array data type for dynamically sized arrays in RPCs.
bool id_received() const
Check if a label was received instead of a mapping.
Generic RPC wrapper for L4 flex-pages.