base/include/rtai_posix.h File Reference

#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <semaphore.h>
#include <pthread.h>
#include <stdlib.h>
#include <asm/rtai_atomic.h>
#include <rtai_sem.h>

Include dependency graph for rtai_posix.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define SEM_VALUE_MAX   (SEM_TIMOUT - 1)
#define SEM_BINARY   (0x7FFFFFFF)
#define MAKE_HARD(hs)   do { if (hs) rt_make_hard_real_time(); } while (0)
#define pthread_cleanup_push_rt(routine, arg)
#define pthread_cleanup_pop_rt(execute)
#define pthread_cleanup_push_defer_rt(routine, arg)
#define pthread_cleanup_pop_restore_rt(execute)
#define pthread_attr_setdetachstate_rt(attr, detachstate)
#define pthread_detach_rt(thread)
#define pthread_getconcurrency_rt()
#define pthread_setconcurrency_rt(level)
#define pthread_mutexattr_init_rt(attr)
#define pthread_mutexattr_destroy_rt(attr)
#define pthread_mutexattr_getpshared_rt(attr, pshared)
#define pthread_mutexattr_setpshared_rt(attr, pshared)
#define pthread_mutexattr_settype_rt(attr, kind)
#define pthread_mutexattr_gettype_rt(attr, kind)
#define pthread_condattr_init_rt(attr)
#define pthread_condattr_destroy_rt(attr)
#define pthread_condattr_getpshared_rt(attr, pshared)
#define pthread_condattr_setpshared_rt(attr, pshared)
#define pthread_rwlockattr_init(attr)
#define pthread_rwlockattr_destroy(attr)
#define pthread_rwlockattr_getpshared(ttr, pshared)
#define pthread_rwlockattr_setpshared(attr, pshared)
#define pthread_rwlockattr_getkind_np(attr, pref)
#define pthread_rwlockattr_setkind_np(attr, pref)
#define pthread_self_rt   pthread_self
#define pthread_equal_rt   pthread_equal
#define pthread_attr_init_rt   pthread_attr_init
#define pthread_attr_destroy_rt   pthread_attr_destroy
#define pthread_attr_getdetachstate_rt   pthread_attr_getdetachstate
#define pthread_attr_setschedpolicy_rt   pthread_attr_setschedpolicy
#define pthread_attr_getschedpolicy_rt   pthread_attr_getschedpolicy
#define pthread_attr_setschedparam_rt   pthread_attr_setschedparam
#define pthread_attr_getschedparam_rt   pthread_attr_getschedparam
#define pthread_attr_setinheritsched_rt   pthread_attr_setinheritsched
#define pthread_attr_getinheritsched_rt   pthread_attr_getinheritsched
#define pthread_attr_setscope_rt   pthread_attr_setscope
#define pthread_attr_getscope_rt   pthread_attr_getscope
#define pthread_attr_setstackaddr_rt   pthread_attr_setstackaddr
#define pthread_attr_getstackaddr_rt   pthread_attr_getstackaddr
#define pthread_attr_setstacksize_rt   pthread_attr_setstacksize
#define pthread_attr_getstacksize_rt   pthread_attr_getstacksize
#define pthread_setcancelstate_rt   pthread_setcancelstate
#define pthread_setcanceltype_rt   pthread_setcanceltype

Functions

int MAKE_SOFT (void)
void count2timespec (RTIME rt, struct timespec *t)
void nanos2timespec (RTIME rt, struct timespec *t)
RTIME timespec2count (const struct timespec *t)
RTIME timespec2nanos (const struct timespec *t)
sem_t * sem_open_rt (const char *name, int oflags, int value, int type)
int sem_init_rt (sem_t *sem, int pshared, unsigned int value)
int sem_close_rt (sem_t *sem)
int sem_destroy_rt (sem_t *sem)
int pthread_create_rt (pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
int pthread_cancel_rt (pthread_t thread)
int pthread_sigmask_rt (int how, const sigset_t *newmask, sigset_t *oldmask)
int pthread_kill_rt (pthread_t thread, int signo)
int sigwait_rt (const sigset_t *set, int *sig)
pthread_mutex_t * pthread_mutex_open_rt (const char *name)
int pthread_mutex_init_rt (pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr)
int pthread_mutex_close_rt (pthread_mutex_t *mutex)
int pthread_mutex_destroy_rt (pthread_mutex_t *mutex)
pthread_cond_t * pthread_cond_open_rt (const char *name)
int pthread_cond_init_rt (pthread_cond_t *cond, pthread_condattr_t *cond_attr)
int pthread_cond_destroy_rt (pthread_cond_t *cond)
int pthread_cond_close_rt (pthread_cond_t *cond)
void pthread_testcancel_rt (void)
int pthread_yield (void)
int pthread_yield_rt (void)
void pthread_exit_rt (void *retval)
int pthread_join_rt (pthread_t thread, void **thread_return)
int sem_wait_rt (sem_t *sem)
int sem_trywait_rt (sem_t *sem)
int sem_timedwait_rt (sem_t *sem, const struct timespec *abstime)
int sem_post_rt (sem_t *sem)
int sem_getvalue_rt (sem_t *sem, int *sval)
int pthread_mutex_lock_rt (pthread_mutex_t *mutex)
int pthread_mutex_trylock_rt (pthread_mutex_t *mutex)
int pthread_mutex_unlock_rt (pthread_mutex_t *mutex)
int pthread_cond_signal_rt (pthread_cond_t *cond)
int pthread_cond_broadcast_rt (pthread_cond_t *cond)
int pthread_cond_wait_rt (pthread_cond_t *cond, pthread_mutex_t *mutex)
int pthread_cond_timedwait_rt (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
int pthread_rwlock_init_rt (pthread_rwlock_t *rwlock, pthread_rwlockattr_t *attr)
int pthread_rwlock_close_rt (pthread_rwlock_t *rwlock)
int pthread_rwlock_destroy_rt (pthread_rwlock_t *rwlock)
int pthread_rwlock_rdlock_rt (pthread_rwlock_t *rwlock)
int pthread_rwlock_tryrdlock_rt (pthread_rwlock_t *rwlock)
int pthread_rwlock_wrlock_rt (pthread_rwlock_t *rwlock)
int pthread_rwlock_trywrlock_rt (pthread_rwlock_t *rwlock)
int pthread_rwlock_unlock_rt (pthread_rwlock_t *rwlock)
void clock_gettime_rt (int clockid, struct timespec *current_time)
int nanosleep_rt (const struct timespec *rqtp, struct timespec *rmtp)


Define Documentation

#define MAKE_HARD hs   )     do { if (hs) rt_make_hard_real_time(); } while (0)
 

Definition at line 561 of file rtai_posix.h.

Referenced by pthread_cancel_rt(), pthread_create_rt(), pthread_join_rt(), pthread_kill_rt(), pthread_mutex_close_rt(), pthread_mutex_init_rt(), pthread_mutex_open_rt(), pthread_rwlock_close_rt(), pthread_rwlock_init_rt(), pthread_sigmask_rt(), sem_close_rt(), sem_init_rt(), sem_open_rt(), and sigwait_rt().

#define pthread_attr_destroy_rt   pthread_attr_destroy
 

Definition at line 884 of file rtai_posix.h.

#define pthread_attr_getdetachstate_rt   pthread_attr_getdetachstate
 

Definition at line 885 of file rtai_posix.h.

#define pthread_attr_getinheritsched_rt   pthread_attr_getinheritsched
 

Definition at line 891 of file rtai_posix.h.

#define pthread_attr_getschedparam_rt   pthread_attr_getschedparam
 

Definition at line 889 of file rtai_posix.h.

#define pthread_attr_getschedpolicy_rt   pthread_attr_getschedpolicy
 

Definition at line 887 of file rtai_posix.h.

#define pthread_attr_getscope_rt   pthread_attr_getscope
 

Definition at line 893 of file rtai_posix.h.

#define pthread_attr_getstackaddr_rt   pthread_attr_getstackaddr
 

Definition at line 899 of file rtai_posix.h.

#define pthread_attr_getstacksize_rt   pthread_attr_getstacksize
 

Definition at line 905 of file rtai_posix.h.

#define pthread_attr_init_rt   pthread_attr_init
 

Definition at line 883 of file rtai_posix.h.

#define pthread_attr_setdetachstate_rt attr,
detachstate   ) 
 

Definition at line 846 of file rtai_posix.h.

#define pthread_attr_setinheritsched_rt   pthread_attr_setinheritsched
 

Definition at line 890 of file rtai_posix.h.

#define pthread_attr_setschedparam_rt   pthread_attr_setschedparam
 

Definition at line 888 of file rtai_posix.h.

#define pthread_attr_setschedpolicy_rt   pthread_attr_setschedpolicy
 

Definition at line 886 of file rtai_posix.h.

#define pthread_attr_setscope_rt   pthread_attr_setscope
 

Definition at line 892 of file rtai_posix.h.

#define pthread_attr_setstackaddr_rt   pthread_attr_setstackaddr
 

Definition at line 898 of file rtai_posix.h.

#define pthread_attr_setstacksize_rt   pthread_attr_setstacksize
 

Definition at line 904 of file rtai_posix.h.

#define pthread_cleanup_pop_restore_rt execute   ) 
 

Value:

__hs_hs_hs__ = MAKE_SOFT(); \ pthread_cleanup_pop_restore_np(execute); \ MAKE_HARD(__hs_hs_hs__); \ } \ } while (0)
Definition at line 702 of file rtai_posix.h.

#define pthread_cleanup_pop_rt execute   ) 
 

Value:

__hs_hs_hs__ = MAKE_SOFT(); \ pthread_cleanup_pop(execute); \ MAKE_HARD(__hs_hs_hs__); \ } \ } while (0)
Definition at line 687 of file rtai_posix.h.

#define pthread_cleanup_push_defer_rt routine,
arg   ) 
 

Value:

do { \ {\ int __hs_hs_hs__; \ __hs_hs_hs__ = MAKE_SOFT(); \ pthread_cleanup_push_defer_np(routine, arg); \ MAKE_HARD(__hs_hs_hs__);
Definition at line 694 of file rtai_posix.h.

#define pthread_cleanup_push_rt routine,
arg   ) 
 

Value:

do { \ {\ int __hs_hs_hs__; \ __hs_hs_hs__ = MAKE_SOFT(); \ pthread_cleanup_push(routine, arg); \ MAKE_HARD(__hs_hs_hs__);
Definition at line 679 of file rtai_posix.h.

#define pthread_condattr_destroy_rt attr   ) 
 

Definition at line 859 of file rtai_posix.h.

#define pthread_condattr_getpshared_rt attr,
pshared   ) 
 

Definition at line 860 of file rtai_posix.h.

#define pthread_condattr_init_rt attr   ) 
 

Definition at line 858 of file rtai_posix.h.

#define pthread_condattr_setpshared_rt attr,
pshared   ) 
 

Definition at line 861 of file rtai_posix.h.

#define pthread_detach_rt thread   ) 
 

Definition at line 847 of file rtai_posix.h.

#define pthread_equal_rt   pthread_equal
 

Definition at line 882 of file rtai_posix.h.

 
#define pthread_getconcurrency_rt  ) 
 

Definition at line 848 of file rtai_posix.h.

#define pthread_mutexattr_destroy_rt attr   ) 
 

Definition at line 852 of file rtai_posix.h.

#define pthread_mutexattr_getpshared_rt attr,
pshared   ) 
 

Definition at line 853 of file rtai_posix.h.

#define pthread_mutexattr_gettype_rt attr,
kind   ) 
 

Definition at line 856 of file rtai_posix.h.

#define pthread_mutexattr_init_rt attr   ) 
 

Definition at line 851 of file rtai_posix.h.

#define pthread_mutexattr_setpshared_rt attr,
pshared   ) 
 

Definition at line 854 of file rtai_posix.h.

#define pthread_mutexattr_settype_rt attr,
kind   ) 
 

Definition at line 855 of file rtai_posix.h.

#define pthread_rwlockattr_destroy attr   ) 
 

Definition at line 869 of file rtai_posix.h.

#define pthread_rwlockattr_getkind_np attr,
pref   ) 
 

Definition at line 872 of file rtai_posix.h.

#define pthread_rwlockattr_getpshared ttr,
pshared   ) 
 

Definition at line 870 of file rtai_posix.h.

#define pthread_rwlockattr_init attr   ) 
 

Definition at line 868 of file rtai_posix.h.

#define pthread_rwlockattr_setkind_np attr,
pref   ) 
 

Definition at line 873 of file rtai_posix.h.

#define pthread_rwlockattr_setpshared attr,
pshared   ) 
 

Definition at line 871 of file rtai_posix.h.

#define pthread_self_rt   pthread_self
 

Definition at line 881 of file rtai_posix.h.

#define pthread_setcancelstate_rt   pthread_setcancelstate
 

Definition at line 911 of file rtai_posix.h.

#define pthread_setcanceltype_rt   pthread_setcanceltype
 

Definition at line 912 of file rtai_posix.h.

#define pthread_setconcurrency_rt level   ) 
 

Definition at line 849 of file rtai_posix.h.

#define SEM_BINARY   (0x7FFFFFFF)
 

Definition at line 543 of file rtai_posix.h.

Referenced by pthread_cond_init_rt(), pthread_cond_open_rt(), sem_init_rt(), and sem_open_rt().

#define SEM_VALUE_MAX   (SEM_TIMOUT - 1)
 

Definition at line 542 of file rtai_posix.h.

Referenced by sem_init_rt(), and sem_timedwait_rt().


Function Documentation

void clock_gettime_rt int  clockid,
struct timespec *  current_time
[inline]
 

Definition at line 1194 of file rtai_posix.h.

References count2timespec(), and rt_get_time().

Here is the call graph for this function:

void count2timespec RTIME  rt,
struct timespec *  t
[inline]
 

Definition at line 567 of file rtai_posix.h.

References count2nano(), and RTIME.

Referenced by clock_gettime_rt(), nanosleep_rt(), and rt_nanosleep().

Here is the call graph for this function:

int MAKE_SOFT void   )  [inline, static]
 

Definition at line 552 of file rtai_posix.h.

References rt_buddy, rt_is_hard_real_time(), and rt_make_soft_real_time().

Referenced by pthread_cancel_rt(), pthread_create_rt(), pthread_exit_rt(), pthread_join_rt(), pthread_kill_rt(), pthread_mutex_close_rt(), pthread_mutex_init_rt(), pthread_mutex_open_rt(), pthread_rwlock_close_rt(), pthread_rwlock_init_rt(), pthread_sigmask_rt(), pthread_testcancel_rt(), sem_close_rt(), sem_init_rt(), sem_open_rt(), and sigwait_rt().

Here is the call graph for this function:

void nanos2timespec RTIME  rt,
struct timespec *  t
[inline]
 

Definition at line 573 of file rtai_posix.h.

References RTIME.

int nanosleep_rt const struct timespec *  rqtp,
struct timespec *  rmtp
[inline]
 

Definition at line 1199 of file rtai_posix.h.

References count2timespec(), rt_get_time(), rt_sleep_until(), RTIME, and timespec2count().

Here is the call graph for this function:

int pthread_cancel_rt pthread_t  thread  )  [inline]
 

Definition at line 670 of file rtai_posix.h.

References MAKE_HARD, and MAKE_SOFT().

Here is the call graph for this function:

int pthread_cond_broadcast_rt pthread_cond_t *  cond  )  [inline]
 

Definition at line 1019 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM_BROADCAST, and SIZARG.

Here is the call graph for this function:

int pthread_cond_close_rt pthread_cond_t *  cond  )  [inline]
 

Definition at line 815 of file rtai_posix.h.

References sem_close_rt().

Here is the call graph for this function:

int pthread_cond_destroy_rt pthread_cond_t *  cond  )  [inline]
 

Definition at line 810 of file rtai_posix.h.

References sem_close_rt().

Here is the call graph for this function:

int pthread_cond_init_rt pthread_cond_t *  cond,
pthread_condattr_t *  cond_attr
[inline]
 

Definition at line 805 of file rtai_posix.h.

References SEM_BINARY, and sem_init_rt().

Here is the call graph for this function:

pthread_cond_t* pthread_cond_open_rt const char *  name  )  [inline]
 

Definition at line 800 of file rtai_posix.h.

References pthread_cond_t, SEM_BINARY, and sem_open_rt().

Here is the call graph for this function:

int pthread_cond_signal_rt pthread_cond_t *  cond  )  [inline]
 

Definition at line 1013 of file rtai_posix.h.

References BIDX, COND_SIGNAL, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int pthread_cond_timedwait_rt pthread_cond_t *  cond,
pthread_mutex_t *  mutex,
const struct timespec *  abstime
[inline]
 

Definition at line 1031 of file rtai_posix.h.

References BIDX, COND_WAIT_UNTIL, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, SEM_TIMOUT, SIZARG, and timespec2count().

Here is the call graph for this function:

int pthread_cond_wait_rt pthread_cond_t *  cond,
pthread_mutex_t *  mutex
[inline]
 

Definition at line 1025 of file rtai_posix.h.

References BIDX, COND_WAIT, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int pthread_create_rt pthread_t *  thread,
pthread_attr_t *  attr,
void *(*  start_routine)(void *),
void *  arg
[inline]
 

Definition at line 661 of file rtai_posix.h.

References MAKE_HARD, and MAKE_SOFT().

Here is the call graph for this function:

void pthread_exit_rt void *  retval  )  [inline]
 

Definition at line 939 of file rtai_posix.h.

References MAKE_SOFT(), rt_buddy, and rt_task_delete().

Here is the call graph for this function:

int pthread_join_rt pthread_t  thread,
void **  thread_return
[inline]
 

Definition at line 946 of file rtai_posix.h.

References MAKE_HARD, and MAKE_SOFT().

Here is the call graph for this function:

int pthread_kill_rt pthread_t  thread,
int  signo
[inline]
 

Definition at line 718 of file rtai_posix.h.

References MAKE_HARD, and MAKE_SOFT().

Here is the call graph for this function:

int pthread_mutex_close_rt pthread_mutex_t *  mutex  )  [inline]
 

Definition at line 773 of file rtai_posix.h.

References atomic_dec_and_test, BIDX, rtai_lxrt_t::i, LOW, LXRT_SEM_DELETE, MAKE_HARD, MAKE_SOFT(), num2nam(), rt_get_name(), rtai_lxrt(), SEM_WAIT_IF, and SIZARG.

Referenced by pthread_mutex_destroy_rt().

Here is the call graph for this function:

int pthread_mutex_destroy_rt pthread_mutex_t *  mutex  )  [inline]
 

Definition at line 795 of file rtai_posix.h.

References pthread_mutex_close_rt().

Here is the call graph for this function:

int pthread_mutex_init_rt pthread_mutex_t *  mutex,
const pthread_mutexattr_t *  mutexattr
[inline]
 

Definition at line 762 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, LXRT_SEM_INIT, MAKE_HARD, MAKE_SOFT(), RES_SEM, rt_get_name(), rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int pthread_mutex_lock_rt pthread_mutex_t *  mutex  )  [inline]
 

Definition at line 991 of file rtai_posix.h.

References sem_wait_rt().

Here is the call graph for this function:

pthread_mutex_t* pthread_mutex_open_rt const char *  name  )  [inline]
 

Definition at line 737 of file rtai_posix.h.

References atomic_inc(), BIDX, rtai_lxrt_t::i, LOW, LXRT_SEM_INIT, MAKE_HARD, MAKE_SOFT(), nam2num(), pthread_mutex_t, RES_SEM, rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int pthread_mutex_trylock_rt pthread_mutex_t *  mutex  )  [inline]
 

Definition at line 1003 of file rtai_posix.h.

References sem_trywait_rt().

Here is the call graph for this function:

int pthread_mutex_unlock_rt pthread_mutex_t *  mutex  )  [inline]
 

Definition at line 1008 of file rtai_posix.h.

References sem_post_rt().

Here is the call graph for this function:

int pthread_rwlock_close_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1084 of file rtai_posix.h.

References atomic_dec_and_test, BIDX, rtai_lxrt_t::i, LOW, LXRT_RWL_DELETE, MAKE_HARD, MAKE_SOFT(), num2nam(), rt_get_name(), rtai_lxrt(), RWL_RDLOCK_IF, RWL_UNLOCK, RWL_WRLOCK_IF, and SIZARG.

Referenced by pthread_rwlock_destroy_rt().

Here is the call graph for this function:

int pthread_rwlock_destroy_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1112 of file rtai_posix.h.

References pthread_rwlock_close_rt().

Here is the call graph for this function:

int pthread_rwlock_init_rt pthread_rwlock_t *  rwlock,
pthread_rwlockattr_t *  attr
[inline]
 

Definition at line 1073 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, LXRT_RWL_INIT, MAKE_HARD, MAKE_SOFT(), rt_get_name(), rtai_lxrt(), and SIZARG.

Here is the call graph for this function:

int pthread_rwlock_rdlock_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1117 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RWL_RDLOCK, and SIZARG.

Here is the call graph for this function:

int pthread_rwlock_tryrdlock_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1123 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RWL_RDLOCK_IF, and SIZARG.

Here is the call graph for this function:

int pthread_rwlock_trywrlock_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1143 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RWL_WRLOCK_IF, and SIZARG.

Here is the call graph for this function:

int pthread_rwlock_unlock_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1157 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RWL_UNLOCK, and SIZARG.

Here is the call graph for this function:

int pthread_rwlock_wrlock_rt pthread_rwlock_t *  rwlock  )  [inline]
 

Definition at line 1137 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RWL_WRLOCK, and SIZARG.

Here is the call graph for this function:

int pthread_sigmask_rt int  how,
const sigset_t *  newmask,
sigset_t *  oldmask
[inline]
 

Definition at line 709 of file rtai_posix.h.

References MAKE_HARD, and MAKE_SOFT().

Here is the call graph for this function:

void pthread_testcancel_rt void   )  [inline]
 

Definition at line 914 of file rtai_posix.h.

References MAKE_SOFT(), rt_buddy, and rt_task_delete().

Here is the call graph for this function:

int pthread_yield void   ) 
 

Referenced by pthread_yield_rt().

int pthread_yield_rt void   )  [inline]
 

Definition at line 929 of file rtai_posix.h.

References BIDX, pthread_yield(), rt_buddy, rt_is_hard_real_time(), rtai_lxrt(), SIZARG, and YIELD.

Here is the call graph for this function:

int sem_close_rt sem_t *  sem  )  [inline]
 

Definition at line 633 of file rtai_posix.h.

References atomic_dec_and_test, BIDX, errno, rtai_lxrt_t::i, LOW, LXRT_SEM_DELETE, MAKE_HARD, MAKE_SOFT(), num2nam(), rt_get_name(), rtai_lxrt(), SEM_WAIT_IF, and SIZARG.

Referenced by pthread_cond_close_rt(), pthread_cond_destroy_rt(), and sem_destroy_rt().

Here is the call graph for this function:

int sem_destroy_rt sem_t *  sem  )  [inline]
 

Definition at line 656 of file rtai_posix.h.

References sem_close_rt().

Here is the call graph for this function:

int sem_getvalue_rt sem_t *  sem,
int *  sval
[inline]
 

Definition at line 984 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM_COUNT, and SIZARG.

Here is the call graph for this function:

int sem_init_rt sem_t *  sem,
int  pshared,
unsigned int  value
[inline]
 

Definition at line 618 of file rtai_posix.h.

References BIDX, BIN_SEM, CNT_SEM, errno, rtai_lxrt_t::i, LOW, LXRT_SEM_INIT, MAKE_HARD, MAKE_SOFT(), PRIO_Q, rt_get_name(), rtai_lxrt(), SEM_BINARY, SEM_VALUE_MAX, and SIZARG.

Referenced by pthread_cond_init_rt().

Here is the call graph for this function:

sem_t* sem_open_rt const char *  name,
int  oflags,
int  value,
int  type
[inline]
 

Definition at line 593 of file rtai_posix.h.

References atomic_inc(), BIDX, BIN_SEM, CNT_SEM, rtai_lxrt_t::i, LOW, LXRT_SEM_INIT, MAKE_HARD, MAKE_SOFT(), nam2num(), PRIO_Q, rtai_lxrt(), SEM_BINARY, and SIZARG.

Referenced by pthread_cond_open_rt().

Here is the call graph for this function:

int sem_post_rt sem_t *  sem  )  [inline]
 

Definition at line 978 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM_SIGNAL, and SIZARG.

Referenced by pthread_mutex_unlock_rt().

Here is the call graph for this function:

int sem_timedwait_rt sem_t *  sem,
const struct timespec *  abstime
[inline]
 

Definition at line 972 of file rtai_posix.h.

References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), RTIME, SEM_VALUE_MAX, SEM_WAIT_UNTIL, SIZARG, and timespec2count().

Here is the call graph for this function:

int sem_trywait_rt sem_t *  sem  )  [inline]
 

Definition at line 962 of file rtai_posix.h.

References BIDX, errno, rtai_lxrt_t::i, LOW, rtai_lxrt(), SEM_WAIT_IF, and SIZARG.

Referenced by pthread_mutex_trylock_rt().

Here is the call graph for this function:

int sem_wait_rt sem_t *  sem  )  [inline]
 

Definition at line 955 of file rtai_posix.h.

References BIDX, rtai_lxrt(), SEM_WAIT, and SIZARG.

Referenced by pthread_mutex_lock_rt().

Here is the call graph for this function:

int sigwait_rt const sigset_t *  set,
int *  sig
[inline]
 

Definition at line 728 of file rtai_posix.h.

References MAKE_HARD, and MAKE_SOFT().

Here is the call graph for this function:

RTIME timespec2count const struct timespec *  t  )  [inline]
 

Definition at line 579 of file rtai_posix.h.

References nano2count(), and RTIME.

Referenced by _mq_timedreceive(), _mq_timedsend(), nanosleep_rt(), pthread_cond_timedwait_rt(), rt_nanosleep(), and sem_timedwait_rt().

Here is the call graph for this function:

RTIME timespec2nanos const struct timespec *  t  )  [inline]
 

Definition at line 584 of file rtai_posix.h.

References RTIME.


Generated on Thu Nov 20 11:53:41 2008 for RTAI API by doxygen 1.3.8