L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
namespace.h
Go to the documentation of this file.
1
5/*
6 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7 * Alexander Warg <warg@os.inf.tu-dresden.de>
8 * economic rights: Technische Universität Dresden (Germany)
9 *
10 * License: see LICENSE.spdx (in this directory or the directories above)
11 */
12#pragma once
13
20#include <l4/re/env.h>
21#include <l4/sys/compiler.h>
22
30 L4RE_NS_REGISTER_RO = L4_FPAGE_RO,
31 L4RE_NS_REGISTER_DIR = 0x10,
32 L4RE_NS_REGISTER_RW = L4_FPAGE_RX,
33 L4RE_NS_REGISTER_RWS = L4_FPAGE_RWX,
34 L4RE_NS_REGISTER_S = L4_FPAGE_W,
35};
36
38
44
45
46
55L4_CV long
57 l4_cap_idx_t const cap, int timeout) L4_NOTHROW;
58
76l4re_ns_query_srv(l4re_namespace_t srv, char const *name,
77 l4_cap_idx_t const cap) L4_NOTHROW;
78
86L4_CV long
88 l4_cap_idx_t const obj, unsigned flags) L4_NOTHROW;
89
90
91
92/****** Implementation ***********/
93
95l4re_ns_query_srv(l4re_namespace_t srv, char const *name,
96 l4_cap_idx_t const cap) L4_NOTHROW
97{
98 return l4re_ns_query_to_srv(srv, name, cap, 40000);
99}
100
101
L4 compiler related defines.
Environment interface.
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
L4_BEGIN_DECLS typedef l4_cap_idx_t l4re_namespace_t
Namespace type.
Definition namespace.h:43
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.
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
Namespace register flags.
Definition namespace.h:29
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
@ L4_FPAGE_RWX
Read-write-execute flexpage.
Definition __l4_fpage.h:125
@ L4_FPAGE_RX
Read-execute flexpage.
Definition __l4_fpage.h:124
@ L4_FPAGE_RO
Read-only flexpage
Definition __l4_fpage.h:122
@ L4_FPAGE_W
Writable flexpage.
Definition __l4_fpage.h:121
#define L4_CV
Define calling convention.
Definition linkage.h:33
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166