L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
ipc.h
1
6/*
7 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
8 * Alexander Warg <warg@os.inf.tu-dresden.de>
9 * economic rights: Technische Universität Dresden (Germany)
10 *
11 * License: see LICENSE.spdx (in this directory or the directories above)
12 */
13#pragma once
14
15#include <l4/sys/compiler.h>
16
18
19struct __l4_sys_syscall_res
20{
21 l4_mword_t tag;
22 l4_umword_t label;
23};
24
25extern struct __l4_sys_syscall_res
26__l4_sys_syscall(l4_mword_t tag,
27 l4_umword_t slabel,
28 l4_umword_t dest,
29 l4_umword_t timeout) L4_NOTHROW;
30
32
35 l4_umword_t flags,
36 l4_umword_t slabel,
37 l4_msgtag_t tag,
38 l4_umword_t *rlabel,
40{
41 // No need for memory clobbers. The compiler has to assume that all global
42 // data is read/written because __l4_sys_syscall is implemented in a
43 // different translation unit.
44 struct __l4_sys_syscall_res res
45 = __l4_sys_syscall(tag.raw, slabel, dest | flags, timeout.raw);
46
47 (void)utcb;
48
49 if (rlabel)
50 *rlabel = res.label;
51 tag.raw = res.tag;
52
53 return tag;
54}
L4 compiler related defines.
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
signed long l4_mword_t
Signed machine word.
Definition l4int.h:37
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:352
l4_msgtag_t l4_ipc(l4_cap_idx_t dest, l4_utcb_t *utcb, l4_umword_t flags, l4_umword_t slabel, l4_msgtag_t tag, l4_umword_t *rlabel, l4_timeout_t timeout) L4_NOTHROW
Generic L4 object invocation.
Definition ipc.h:19
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
#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
Message tag data structure.
Definition types.h:266
Timeout pair.
Definition __timeout.h:53