Loading...
Searching...
No Matches
namespace.h
Go to the documentation of this file.
/*
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/re/env.h>
#include <l4/sys/compiler.h>
enum l4re_ns_register_flags {
L4RE_NS_REGISTER_RO = L4_FPAGE_RO,
L4RE_NS_REGISTER_DIR = 0x10,
L4RE_NS_REGISTER_RW = L4_FPAGE_RX,
L4RE_NS_REGISTER_RWS = L4_FPAGE_RWX,
L4RE_NS_REGISTER_S = L4_FPAGE_W,
};
L4_BEGIN_DECLS
typedef l4_cap_idx_t l4re_namespace_t;
L4_CV long
l4re_ns_query_to_srv(l4re_namespace_t srv, char const *name,
l4_cap_idx_t const cap, int timeout) L4_NOTHROW;
L4_CV L4_INLINE long
l4re_ns_query_srv(l4re_namespace_t srv, char const *name,
l4_cap_idx_t const cap) L4_NOTHROW;
L4_CV long
l4re_ns_register_obj_srv(l4re_namespace_t srv, char const *name,
l4_cap_idx_t const obj, unsigned flags) L4_NOTHROW;
/****** Implementation ***********/
L4_CV L4_INLINE long
l4re_ns_query_srv(l4re_namespace_t srv, char const *name,
l4_cap_idx_t const cap) L4_NOTHROW
{
return l4re_ns_query_to_srv(srv, name, cap, 40000);
}
L4_END_DECLS
compiler.h
L4 compiler related defines.
env.h
Environment interface.
l4re_ns_query_srv
long l4re_ns_query_srv(l4re_namespace_t srv, char const *name, l4_cap_idx_t const cap) L4_NOTHROW
Query the name space for the object named by name.
Definition namespace.h:95
l4re_namespace_t
L4_BEGIN_DECLS typedef l4_cap_idx_t l4re_namespace_t
Namespace type.
Definition namespace.h:43
l4re_ns_register_obj_srv
long l4re_ns_register_obj_srv(l4re_namespace_t srv, char const *name, l4_cap_idx_t const obj, unsigned flags) L4_NOTHROW
Register an object with a name.
l4re_ns_query_to_srv
long l4re_ns_query_to_srv(l4re_namespace_t srv, char const *name, l4_cap_idx_t const cap, int timeout) L4_NOTHROW
Query the name space for the object named by name.
l4re_ns_register_flags
l4re_ns_register_flags
Namespace register flags.
Definition namespace.h:29
l4_cap_idx_t
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
L4_FPAGE_RWX
@ L4_FPAGE_RWX
Read-write-execute flexpage.
Definition __l4_fpage.h:125
L4_FPAGE_RX
@ L4_FPAGE_RX
Read-execute flexpage.
Definition __l4_fpage.h:124
L4_FPAGE_RO
@ L4_FPAGE_RO
Read-only flexpage.
Definition __l4_fpage.h:122
L4_FPAGE_W
@ L4_FPAGE_W
Writable flexpage.
Definition __l4_fpage.h:121
L4_CV
#define L4_CV
Define calling convention.
Definition linkage.h:33
L4_NOTHROW
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
L4_INLINE
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
L4_BEGIN_DECLS
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
L4_END_DECLS
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166