18 #ifndef _LIB_COBALT_INTERNAL_H
19 #define _LIB_COBALT_INTERNAL_H
22 #include <cobalt/sys/cobalt.h>
23 #include <boilerplate/ancillaries.h>
26 extern void *cobalt_umm_private;
28 extern void *cobalt_umm_shared;
30 void cobalt_sigshadow_install_once(
void);
33 struct cobalt_mutex_state *mutex_get_state(
struct cobalt_mutex_shadow *shadow)
35 if (shadow->attr.pshared)
36 return cobalt_umm_shared + shadow->state_offset;
38 return cobalt_umm_private + shadow->state_offset;
41 static inline atomic_t *mutex_get_ownerp(
struct cobalt_mutex_shadow *shadow)
43 return &mutex_get_state(shadow)->owner;
46 void cobalt_thread_init(
void);
48 int cobalt_thread_probe(pid_t pid);
50 void cobalt_print_init(
void);
52 void cobalt_print_init_atfork(
void);
54 void cobalt_ticks_init(
unsigned long long freq);
56 void cobalt_mutex_init(
void);
58 void cobalt_default_condattr_init(
void);
60 int cobalt_xlate_schedparam(
int policy,
61 const struct sched_param_ex *param_ex,
62 struct sched_param *param);
63 int cobalt_init(
void);
65 struct cobalt_featinfo;
67 void cobalt_check_features(
struct cobalt_featinfo *finfo);
69 extern struct sigaction __cobalt_orig_sigdebug;
Copyright © 2011 Gilles Chanteperdrix gilles.chanteperdrix@xenomai.org.
Definition: atomic.h:24