Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
/*
* (c) 2003-2009 Author(s)
* economic rights: Technische Universität Dresden (Germany)
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#ifndef __L4_THREAD_H
#define __L4_THREAD_H
#include <l4/sys/compiler.h>
#include <l4/sys/types.h>
#include <l4/sys/scheduler.h>
L4_BEGIN_DECLS
L4_CV long
l4util_create_thread(l4_cap_idx_t id, l4_utcb_t *thread_utcb,
l4_cap_idx_t factory,
l4_umword_t pc, l4_umword_t sp, l4_cap_idx_t pager,
l4_cap_idx_t task,
l4_cap_idx_t scheduler, l4_sched_param_t scp) L4_NOTHROW;
L4_END_DECLS
#ifndef L4UTIL_THREAD_FUNC
#define __L4UTIL_THREAD_FUNC(name) void L4_NORETURN name(void)
#define L4UTIL_THREAD_FUNC(name) __L4UTIL_THREAD_FUNC(name)
#define __L4UTIL_THREAD_STATIC_FUNC(name) static L4_NORETURN void name(void)
#define L4UTIL_THREAD_STATIC_FUNC(name) __L4UTIL_THREAD_STATIC_FUNC(name)
#endif
#endif /* __L4_THREAD_H */
compiler.h
L4 compiler related defines.
l4_umword_t
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
l4_cap_idx_t
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
l4_utcb_t
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
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_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
types.h
Common L4 ABI Data Types.
scheduler.h
Scheduler object functions.
l4_sched_param_t
Scheduler parameter set.
Definition scheduler.h:174