LXRT is a module that allows you to use all the services made available by RTAI and its schedulers in user space, both for soft and hard real time. At the moment it is a feature youll find nowhere but with RTAI. For an explanation of how it works see Pierre Cloutiers LXRT-INFORMED FAQs, and the explanation of the implementation of hard real time in user space (contributed by: Pierre Cloutier, Paolo Mantegazza, Steve Papacharalambous).
LXRT-INFORMED should be the production version of LXRT, the latter being the development version. So it can happen that LXRT-INFORMED could be lagging slightly behind LXRT. If you need to hurry to the services not yet ported to LXRT-INFORMED do it without pain. Even if you are likely to miss some useful services found only in LXRT-INFORMED, we release only when a feature is relatively stable.
From what said above there should be no need for anything specific as all the functions you can use in user space have been already documented in this manual. There are however a few exceptions that need to be explained.
Note also that, as already done for the shared memory services in user space, the function calls for Linux processes are inlined in the file rtai_lxrt.h. This approach has been preferred to a library since it is simpler, more effective, the calls are short and simple so that, even if it is likely that there can be more than just a few per process, they could never be charged of making codes too bigger. Also common to shared memory is the use of unsigned int to identify LXRT objects. If you want to use string identifiers the same support functions, i.e. nam2num() and num2nam(), can be used.
Files | |
file | rtai_lxrt.h |
LXRT main header. | |
file | rtai_mbx.h |
file | rtai_nam2num.h |
Conversion between characters strings and unsigned long identifiers. | |
file | rtai_registry.h |
file | rtai_sem.h |
file | api.c |
Common scheduling function. | |
Data Structures | |
struct | mode_regs |
struct | linux_syscalls_list |
Defines | |
#define | YIELD 0 |
#define | SUSPEND 1 |
#define | RESUME 2 |
#define | MAKE_PERIODIC 3 |
#define | WAIT_PERIOD 4 |
#define | SLEEP 5 |
#define | SLEEP_UNTIL 6 |
#define | START_TIMER 7 |
#define | STOP_TIMER 8 |
#define | GET_TIME 9 |
#define | COUNT2NANO 10 |
#define | NANO2COUNT 11 |
#define | BUSY_SLEEP 12 |
#define | SET_PERIODIC_MODE 13 |
#define | SET_ONESHOT_MODE 14 |
#define | SIGNAL_HANDLER 15 |
#define | TASK_USE_FPU 16 |
#define | GET_TASK_INFO 17 |
#define | HARD_TIMER_COUNT 18 |
#define | GET_TIME_NS 19 |
#define | GET_CPU_TIME_NS 20 |
#define | SET_RUNNABLE_ON_CPUS 21 |
#define | SET_RUNNABLE_ON_CPUID 22 |
#define | GET_TIMER_CPU 23 |
#define | START_RT_APIC_TIMERS 24 |
#define | HARD_TIMER_COUNT_CPUID 25 |
#define | COUNT2NANO_CPUID 26 |
#define | NANO2COUNT_CPUID 27 |
#define | GET_TIME_CPUID 28 |
#define | GET_TIME_NS_CPUID 29 |
#define | MAKE_PERIODIC_NS 30 |
#define | SET_SCHED_POLICY 31 |
#define | SET_RESUME_END 32 |
#define | SPV_RMS 33 |
#define | WAKEUP_SLEEPING 34 |
#define | CHANGE_TASK_PRIO 35 |
#define | SET_RESUME_TIME 36 |
#define | SET_PERIOD 37 |
#define | HARD_TIMER_RUNNING 38 |
#define | TYPED_SEM_INIT 39 |
#define | SEM_DELETE 40 |
#define | NAMED_SEM_INIT 41 |
#define | NAMED_SEM_DELETE 42 |
#define | SEM_SIGNAL 43 |
#define | SEM_WAIT 44 |
#define | SEM_WAIT_IF 45 |
#define | SEM_WAIT_UNTIL 46 |
#define | SEM_WAIT_TIMED 47 |
#define | SEM_BROADCAST 48 |
#define | SEM_WAIT_BARRIER 49 |
#define | SEM_COUNT 50 |
#define | COND_WAIT 51 |
#define | COND_WAIT_UNTIL 52 |
#define | COND_WAIT_TIMED 53 |
#define | RWL_INIT 54 |
#define | RWL_DELETE 55 |
#define | NAMED_RWL_INIT 56 |
#define | NAMED_RWL_DELETE 57 |
#define | RWL_RDLOCK 58 |
#define | RWL_RDLOCK_IF 59 |
#define | RWL_RDLOCK_UNTIL 60 |
#define | RWL_RDLOCK_TIMED 61 |
#define | RWL_WRLOCK 62 |
#define | RWL_WRLOCK_IF 63 |
#define | RWL_WRLOCK_UNTIL 64 |
#define | RWL_WRLOCK_TIMED 65 |
#define | RWL_UNLOCK 66 |
#define | SPL_INIT 67 |
#define | SPL_DELETE 68 |
#define | NAMED_SPL_INIT 69 |
#define | NAMED_SPL_DELETE 70 |
#define | SPL_LOCK 71 |
#define | SPL_LOCK_IF 72 |
#define | SPL_LOCK_TIMED 73 |
#define | SPL_UNLOCK 74 |
#define | TYPED_MBX_INIT 75 |
#define | MBX_DELETE 76 |
#define | NAMED_MBX_INIT 77 |
#define | NAMED_MBX_DELETE 78 |
#define | MBX_SEND 79 |
#define | MBX_SEND_WP 80 |
#define | MBX_SEND_IF 81 |
#define | MBX_SEND_UNTIL 82 |
#define | MBX_SEND_TIMED 83 |
#define | MBX_RECEIVE 84 |
#define | MBX_RECEIVE_WP 85 |
#define | MBX_RECEIVE_IF 86 |
#define | MBX_RECEIVE_UNTIL 87 |
#define | MBX_RECEIVE_TIMED 88 |
#define | MBX_EVDRP 89 |
#define | MBX_OVRWR_SEND 90 |
#define | SENDMSG 91 |
#define | SEND_IF 92 |
#define | SEND_UNTIL 93 |
#define | SEND_TIMED 94 |
#define | RECEIVEMSG 95 |
#define | RECEIVE_IF 96 |
#define | RECEIVE_UNTIL 97 |
#define | RECEIVE_TIMED 98 |
#define | RPCMSG 99 |
#define | RPC_IF 100 |
#define | RPC_UNTIL 101 |
#define | RPC_TIMED 102 |
#define | EVDRP 103 |
#define | ISRPC 104 |
#define | RETURNMSG 105 |
#define | RPCX 106 |
#define | RPCX_IF 107 |
#define | RPCX_UNTIL 108 |
#define | RPCX_TIMED 109 |
#define | SENDX 110 |
#define | SENDX_IF 111 |
#define | SENDX_UNTIL 112 |
#define | SENDX_TIMED 113 |
#define | RETURNX 114 |
#define | RECEIVEX 115 |
#define | RECEIVEX_IF 116 |
#define | RECEIVEX_UNTIL 117 |
#define | RECEIVEX_TIMED 118 |
#define | EVDRPX 119 |
#define | PROXY_ATTACH 120 |
#define | PROXY_DETACH 121 |
#define | PROXY_TRIGGER 122 |
#define | RT_SEND 123 |
#define | RT_RECEIVE 124 |
#define | RT_CRECEIVE 125 |
#define | RT_REPLY 126 |
#define | RT_PROXY_ATTACH 127 |
#define | RT_PROXY_DETACH 128 |
#define | RT_TRIGGER 129 |
#define | RT_NAME_ATTACH 130 |
#define | RT_NAME_DETACH 131 |
#define | RT_NAME_LOCATE 132 |
#define | BITS_INIT 133 |
#define | BITS_DELETE 134 |
#define | NAMED_BITS_INIT 135 |
#define | NAMED_BITS_DELETE 136 |
#define | BITS_GET 137 |
#define | BITS_RESET 138 |
#define | BITS_SIGNAL 139 |
#define | BITS_WAIT 140 |
#define | BITS_WAIT_IF 141 |
#define | BITS_WAIT_UNTIL 142 |
#define | BITS_WAIT_TIMED 143 |
#define | TBX_INIT 144 |
#define | TBX_DELETE 145 |
#define | NAMED_TBX_INIT 146 |
#define | NAMED_TBX_DELETE 147 |
#define | TBX_SEND 148 |
#define | TBX_SEND_IF 149 |
#define | TBX_SEND_UNTIL 150 |
#define | TBX_SEND_TIMED 151 |
#define | TBX_RECEIVE 152 |
#define | TBX_RECEIVE_IF 153 |
#define | TBX_RECEIVE_UNTIL 154 |
#define | TBX_RECEIVE_TIMED 155 |
#define | TBX_BROADCAST 156 |
#define | TBX_BROADCAST_IF 157 |
#define | TBX_BROADCAST_UNTIL 158 |
#define | TBX_BROADCAST_TIMED 159 |
#define | TBX_URGENT 160 |
#define | TBX_URGENT_IF 161 |
#define | TBX_URGENT_UNTIL 162 |
#define | TBX_URGENT_TIMED 163 |
#define | MQ_OPEN 164 |
#define | MQ_RECEIVE 165 |
#define | MQ_SEND 166 |
#define | MQ_CLOSE 167 |
#define | MQ_GETATTR 168 |
#define | MQ_SETATTR 169 |
#define | MQ_NOTIFY 170 |
#define | MQ_UNLINK 171 |
#define | MQ_TIMEDRECEIVE 172 |
#define | MQ_TIMEDSEND 173 |
#define | NAMED_TASK_INIT 174 |
#define | NAMED_TASK_INIT_CPUID 175 |
#define | NAMED_TASK_DELETE 176 |
#define | GET_ADR 177 |
#define | GET_NAME 178 |
#define | NETRPC 179 |
#define | SEND_REQ_REL_PORT 180 |
#define | DDN2NL 181 |
#define | SET_THIS_NODE 182 |
#define | FIND_ASGN_STUB 183 |
#define | REL_STUB 184 |
#define | WAITING_RETURN 185 |
#define | COND_SIGNAL 186 |
#define | SHM_ALLOC 187 |
#define | SHM_FREE 188 |
#define | SHM_SIZE 189 |
#define | HEAP_SET 190 |
#define | HEAP_ALLOC 191 |
#define | HEAP_FREE 192 |
#define | HEAP_NAMED_ALLOC 193 |
#define | HEAP_NAMED_FREE 194 |
#define | MALLOC 195 |
#define | FREE 196 |
#define | NAMED_MALLOC 197 |
#define | NAMED_FREE 198 |
#define | SUSPEND_IF 199 |
#define | SUSPEND_UNTIL 200 |
#define | SUSPEND_TIMED 201 |
#define | IRQ_WAIT 202 |
#define | IRQ_WAIT_IF 203 |
#define | IRQ_WAIT_UNTIL 204 |
#define | IRQ_WAIT_TIMED 205 |
#define | IRQ_SIGNAL 206 |
#define | REQUEST_IRQ_TASK 207 |
#define | RELEASE_IRQ_TASK 208 |
#define | SCHED_LOCK 209 |
#define | SCHED_UNLOCK 210 |
#define | PEND_LINUX_IRQ 211 |
#define | SET_LINUX_SYSCALL_MODE 212 |
#define | REQUEST_RTC 214 |
#define | RELEASE_RTC 215 |
#define | RT_GETTID 216 |
#define | SET_NETRPC_TIMEOUT 217 |
#define | GET_REAL_TIME 218 |
#define | GET_REAL_TIME_NS 219 |
#define | MQ_REG_USP_NOTIFIER 220 |
#define | RT_SIGNAL_HELPER 221 |
#define | RT_SIGNAL_WAITSIG 222 |
#define | RT_SIGNAL_REQUEST 223 |
#define | RT_SIGNAL_RELEASE 224 |
#define | RT_SIGNAL_ENABLE 225 |
#define | RT_SIGNAL_DISABLE 226 |
#define | RT_SIGNAL_TRIGGER 227 |
#define | SEM_RT_POLL 228 |
#define | RT_POLL_NETRPC 229 |
#define | MAX_LXRT_FUN 230 |
#define | RT_INITTICKQUEUE 69 |
#define | RT_RELEASETICKQUEUE 70 |
#define | RT_QDYNALLOC 71 |
#define | RT_QDYNFREE 72 |
#define | RT_QDYNINIT 73 |
#define | RT_QBLKWAIT 74 |
#define | RT_QBLKREPEAT 75 |
#define | RT_QBLKSOON 76 |
#define | RT_QBLKDEQUEUE 77 |
#define | RT_QBLKCANCEL 78 |
#define | RT_QSYNC 79 |
#define | RT_QRECEIVE 80 |
#define | RT_QLOOP 81 |
#define | RT_QSTEP 82 |
#define | RT_QBLKBEFORE 83 |
#define | RT_QBLKAFTER 84 |
#define | RT_QBLKUNHOOK 85 |
#define | RT_QBLKRELEASE 86 |
#define | RT_QBLKCOMPLETE 87 |
#define | RT_QHOOKFLUSH 88 |
#define | RT_QBLKATHEAD 89 |
#define | RT_QBLKATTAIL 90 |
#define | RT_QHOOKINIT 91 |
#define | RT_QHOOKRELEASE 92 |
#define | RT_QBLKSCHEDULE 93 |
#define | RT_GETTICKQUEUEHOOK 94 |
#define | RT_BOOM 95 |
#define | RTAI_MALLOC 96 |
#define | RT_FREE 97 |
#define | RT_MMGR_STATS 98 |
#define | RT_STOMP 99 |
#define | RT_VC_ATTACH 100 |
#define | RT_VC_RELEASE 101 |
#define | RT_VC_RESERVE 102 |
#define | RT_GET_LINUX_SIGNAL 103 |
#define | RT_GET_ERRNO 104 |
#define | RT_SET_LINUX_SIGNAL_HANDLER 105 |
#define | LXRT_GET_ADR 1000 |
#define | LXRT_GET_NAME 1001 |
#define | LXRT_TASK_INIT 1002 |
#define | LXRT_TASK_DELETE 1003 |
#define | LXRT_SEM_INIT 1004 |
#define | LXRT_SEM_DELETE 1005 |
#define | LXRT_MBX_INIT 1006 |
#define | LXRT_MBX_DELETE 1007 |
#define | MAKE_SOFT_RT 1008 |
#define | MAKE_HARD_RT 1009 |
#define | PRINT_TO_SCREEN 1010 |
#define | NONROOT_HRT 1011 |
#define | RT_BUDDY 1012 |
#define | HRT_USE_FPU 1013 |
#define | USP_SIGHDL 1014 |
#define | GET_USP_FLAGS 1015 |
#define | SET_USP_FLAGS 1016 |
#define | GET_USP_FLG_MSK 1017 |
#define | SET_USP_FLG_MSK 1018 |
#define | IS_HARD 1019 |
#define | LINUX_SERVER_INIT 1020 |
#define | ALLOC_REGISTER 1021 |
#define | DELETE_DEREGISTER 1022 |
#define | FORCE_TASK_SOFT 1023 |
#define | PRINTK 1024 |
#define | GET_EXECTIME 1025 |
#define | GET_TIMEORIG 1026 |
#define | LXRT_RWL_INIT 1027 |
#define | LXRT_RWL_DELETE 1028 |
#define | LXRT_SPL_INIT 1029 |
#define | LXRT_SPL_DELETE 1030 |
#define | FORCE_SOFT 0x80000000 |
#define | GT_NR_SYSCALLS (1 << 11) |
#define | ENCODE_LXRT_REQ(dynx, srq, lsize) (((dynx) << 24) | ((srq) << 12) | GT_NR_SYSCALLS | (lsize)) |
#define | SRQ(x) (((x) >> 12) & 0xFFF) |
#define | NARG(x) ((x) & (GT_NR_SYSCALLS - 1)) |
#define | INDX(x) (((x) >> 24) & 0xF) |
#define | SYNC_LINUX_SYSCALL 1 |
#define | ASYNC_LINUX_SYSCALL 0 |
#define | SRV_NSYSCALL_REGS 7 |
#define | PAC_NSYSCALL_ARGS 6 |
#define | rt_grow_and_lock_stack(incr) do { } while (0) |
#define | BIDX 0 |
#define | SIZARG sizeof(arg) |
#define | RT_THREAD_STACK_MIN 64*1024 |
#define | rt_sync_async_linux_syscall_server_create(task, mode, cbfun, nr_calls) rt_create_linux_syscall_server(task, mode, cbfun, nr_calls) |
#define | rt_linux_syscall_server_create(task) rt_sync_async_linux_syscall_server_create(task, SYNC_LINUX_SYSCALL, NULL, 1); |
#define | rt_task_delete(task) rt_thread_delete(task) |
#define | rt_named_task_init(task_name, thread, data, stack_size, prio, uses_fpu, signal) rt_task_init(nam2num(task_name), thread, data, stack_size, prio, uses_fpu, signal) |
#define | rt_named_task_init_cpuid(task_name, thread, data, stack_size, prio, uses_fpu, signal, run_on_cpu) rt_task_init_cpuid(nam2num(task_name), thread, data, stack_size, prio, uses_fpu, signal, run_on_cpu) |
#define | VSNPRINTF_BUF_SIZE 256 |
#define | rt_buddy() rt_agent() |
#define | rt_is_soft_real_time(rt_task) (!rt_is_hard_real_time((rt_task))) |
#define | rt_task_wakeup_sleeping(task) rt_task_masked_unblock(task, RT_SCHED_DELAYED) |
#define | rt_mbx_init(name, size) rt_typed_mbx_init(name, size, FIFO_Q) |
Initialize mailbox. | |
#define | rt_sem_init(name, value) rt_typed_sem_init(name, value, CNT_SEM) |
Initialize a counting semaphore. | |
#define | rt_cond_init(name) rt_typed_sem_init(name, 0, BIN_SEM) |
Initialize a condition variable. | |
Functions | |
static void * | rt_get_adr (unsigned long name) |
Get an object address by its name. | |
static unsigned long | rt_get_name (void *adr) |
Get an object name by its address. | |
static RT_TASK * | rt_task_init_schmod (unsigned long name, int priority, int stack_size, int max_msg_size, int policy, int cpus_allowed) |
static int | rt_clone (void *fun, void *args, long stack_size, unsigned long flags) |
static long | rt_thread_create (void *fun, void *args, int stack_size) |
static int | rt_thread_join (long thread) |
static int | rt_thread_delete (RT_TASK *task) |
static void | linux_syscall_server_fun (struct linux_syscalls_list *list) |
static void | rt_set_linux_syscall_mode (int mode, void(*callback_fun)(long, long)) |
static int | rt_create_linux_syscall_server (RT_TASK *task, int mode, void(*callback_fun)(long, long), int nr_bufd_async_calls) |
static RT_TASK * | rt_thread_init (unsigned long name, int priority, int max_msg_size, int policy, int cpus_allowed) |
static RT_TASK * | rt_task_init (unsigned long name, int priority, int stack_size, int max_msg_size) |
Create an RTAI task extension for a Linux process/task in user space. | |
static void | rt_set_sched_policy (RT_TASK *task, int policy, int rr_quantum_ns) |
static int | rt_change_prio (RT_TASK *task, int priority) |
static void | rt_make_soft_real_time (void) |
Return a hard real time Linux process, or pthread to the standard Linux behavior. | |
static int | rt_task_yield (void) |
static int | rt_task_suspend (RT_TASK *task) |
static int | rt_task_suspend_if (RT_TASK *task) |
static int | rt_task_suspend_until (RT_TASK *task, RTIME time) |
static int | rt_task_suspend_timed (RT_TASK *task, RTIME delay) |
static int | rt_task_resume (RT_TASK *task) |
static void | rt_sched_lock (void) |
static void | rt_sched_unlock (void) |
static void | rt_pend_linux_irq (unsigned irq) |
static int | rt_irq_wait (unsigned irq) |
static int | rt_irq_wait_if (unsigned irq) |
static int | rt_irq_wait_until (unsigned irq, RTIME time) |
static int | rt_irq_wait_timed (unsigned irq, RTIME delay) |
static int | rt_irq_signal (unsigned irq) |
static int | rt_request_irq_task (unsigned irq, void *handler, int type, int affine2task) |
static int | rt_release_irq_task (unsigned irq) |
static int | rt_task_make_periodic (RT_TASK *task, RTIME start_time, RTIME period) |
static int | rt_task_make_periodic_relative_ns (RT_TASK *task, RTIME start_delay, RTIME period) |
static int | rt_task_wait_period (void) |
static int | rt_sleep (RTIME delay) |
static int | rt_sleep_until (RTIME time) |
static int | rt_is_hard_timer_running (void) |
static RTIME | start_rt_timer (int period) |
static void | stop_rt_timer (void) |
static void | rt_request_rtc (int rtc_freq, void *handler) |
static void | rt_release_rtc (void) |
static RTIME | rt_get_time (void) |
static RTIME | rt_get_real_time (void) |
static RTIME | rt_get_real_time_ns (void) |
static RTIME | count2nano (RTIME count) |
static RTIME | nano2count (RTIME nanos) |
static void | rt_busy_sleep (int ns) |
static void | rt_set_periodic_mode (void) |
static void | rt_set_oneshot_mode (void) |
static int | rt_task_signal_handler (RT_TASK *task, void(*handler)(void)) |
static int | rt_task_use_fpu (RT_TASK *task, int use_fpu_flag) |
static int | rt_buddy_task_use_fpu (RT_TASK *task, int use_fpu_flag) |
static int | rt_task_get_info (RT_TASK *task, RT_TASK_INFO *task_info) |
static int | rt_get_priorities (RT_TASK *task, int *priority, int *base_priority) |
static int | rt_hard_timer_tick (void) |
static RTIME | rt_get_time_ns (void) |
static RTIME | rt_get_cpu_time_ns (void) |
static void | rt_set_runnable_on_cpus (RT_TASK *task, unsigned long cpu_mask) |
static void | rt_set_runnable_on_cpuid (RT_TASK *task, unsigned int cpuid) |
static int | rt_get_timer_cpu (void) |
static void | start_rt_apic_timers (struct apic_timer_setup_data *setup_mode, unsigned int rcvr_jiffies_cpuid) |
static int | rt_hard_timer_tick_cpuid (int cpuid) |
static RTIME | count2nano_cpuid (RTIME count, unsigned int cpuid) |
static RTIME | nano2count_cpuid (RTIME nanos, unsigned int cpuid) |
static RTIME | rt_get_time_cpuid (unsigned int cpuid) |
static RTIME | rt_get_time_ns_cpuid (unsigned int cpuid) |
static void | rt_boom (void) |
static void | rt_mmgr_stats (void) |
static void | rt_stomp (void) |
static int | rt_get_linux_signal (RT_TASK *task) |
static int | rt_get_errno (RT_TASK *task) |
static int | rt_set_linux_signal_handler (RT_TASK *task, void(*handler)(int sig)) |
static int | rtai_print_to_screen (const char *format,...) |
static int | rt_printk (const char *format,...) |
static int | rt_usp_signal_handler (void(*handler)(void)) |
static unsigned long | rt_get_usp_flags (RT_TASK *rt_task) |
static unsigned long | rt_get_usp_flags_mask (RT_TASK *rt_task) |
static void | rt_set_usp_flags (RT_TASK *rt_task, unsigned long flags) |
static void | rt_set_usp_flags_mask (unsigned long flags_mask) |
static RT_TASK * | rt_force_task_soft (int pid) |
static RT_TASK * | rt_agent (void) |
static int | rt_gettid (void) |
static void | rt_make_hard_real_time (void) |
Give a Linux process, or pthread, hard real time execution capabilities allowing full kernel preemption. | |
static void | rt_allow_nonroot_hrt (void) |
Allows a non root user to use the Linux POSIX soft real time process management and memory lock functions, and allows it to do any input-output operation from user space. | |
static int | rt_is_hard_real_time (RT_TASK *rt_task) |
static void | rt_task_set_resume_end_times (RTIME resume, RTIME end) |
static int | rt_set_resume_time (RT_TASK *rt_task, RTIME new_resume_time) |
static int | rt_set_period (RT_TASK *rt_task, RTIME new_period) |
static void | rt_spv_RMS (int cpuid) |
static int | rt_task_masked_unblock (RT_TASK *task, unsigned long mask) |
static void | rt_get_exectime (RT_TASK *task, RTIME *exectime) |
static void | rt_gettimeorig (RTIME time_orig[]) |
static RT_TASK * | ftask_init (unsigned long name, int priority) |
static RTIME | start_ftimer (long period, long ftick_freq) |
static RTIME | stop_ftimer (void) |
int | rt_register (unsigned long name, void *adr, int type, struct task_struct *t) |
Register an object. | |
int | rt_drg_on_name (unsigned long name) |
Deregister an object by its name. | |
int | rt_drg_on_adr (void *adr) |
Deregister an object by its address. |
#define ALLOC_REGISTER 1021 |
Definition at line 404 of file rtai_lxrt.h.
#define ASYNC_LINUX_SYSCALL 0 |
#define BIDX 0 |
Definition at line 595 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_broadcast(), __wrap_pthread_cond_destroy(), __wrap_pthread_cond_init(), __wrap_pthread_cond_signal(), __wrap_pthread_cond_timedwait(), __wrap_pthread_cond_wait(), __wrap_pthread_mutex_destroy(), __wrap_pthread_mutex_init(), __wrap_pthread_mutex_lock(), __wrap_pthread_mutex_trylock(), __wrap_pthread_mutex_unlock(), __wrap_pthread_rwlock_destroy(), __wrap_pthread_rwlock_init(), __wrap_pthread_rwlock_rdlock(), __wrap_pthread_rwlock_tryrdlock(), __wrap_pthread_rwlock_trywrlock(), __wrap_pthread_rwlock_unlock(), __wrap_pthread_rwlock_wrlock(), __wrap_sem_close(), __wrap_sem_destroy(), __wrap_sem_getvalue(), __wrap_sem_init(), __wrap_sem_open(), __wrap_sem_post(), __wrap_sem_timedwait(), __wrap_sem_trywait(), __wrap_sem_wait(), _rt_shm_alloc(), count2nano(), count2nano_cpuid(), ftask_init(), linux_syscall_server_fun(), nano2count(), nano2count_cpuid(), pthread_gettid_np(), pthread_make_periodic_np(), pthread_wait_period_np(), rt_agent(), rt_Alias_attach(), rt_allow_nonroot_hrt(), rt_boom(), rt_buddy_task_use_fpu(), rt_busy_sleep(), rt_change_prio(), rt_cond_signal(), rt_cond_wait(), rt_cond_wait_timed(), rt_cond_wait_until(), rt_create_linux_syscall_server(), rt_Creceive(), rt_evdrp(), rt_evdrpx(), rt_force_task_soft(), rt_free(), rt_get_adr(), rt_get_cpu_time_ns(), rt_get_errno(), rt_get_exectime(), rt_get_linux_signal(), rt_get_name(), rt_get_real_time(), rt_get_real_time_ns(), rt_get_time(), rt_get_time_cpuid(), rt_get_time_ns(), rt_get_time_ns_cpuid(), rt_get_timer_cpu(), rt_get_usp_flags(), rt_get_usp_flags_mask(), rt_GetTickQueueHook(), rt_gettid(), rt_gettimeorig(), rt_halloc(), rt_hard_timer_tick(), rt_hard_timer_tick_cpuid(), rt_hfree(), rt_InitTickQueue(), rt_irq_signal(), rt_irq_wait(), rt_irq_wait_if(), rt_irq_wait_timed(), rt_irq_wait_until(), rt_is_hard_real_time(), rt_is_hard_timer_running(), rt_isrpc(), rt_make_hard_real_time(), rt_make_soft_real_time(), rt_malloc(), rt_mbx_delete(), rt_mbx_evdrp(), rt_mbx_ovrwr_send(), rt_mbx_receive(), rt_mbx_receive_if(), rt_mbx_receive_timed(), rt_mbx_receive_until(), rt_mbx_receive_wp(), rt_mbx_send(), rt_mbx_send_if(), rt_mbx_send_timed(), rt_mbx_send_until(), rt_mbx_send_wp(), rt_mmgr_stats(), rt_msg_broadcast(), rt_msg_broadcast_if(), rt_msg_broadcast_timed(), rt_msg_broadcast_until(), rt_msg_evdrp(), rt_msg_receive(), rt_msg_receive_if(), rt_msg_receive_timed(), rt_msg_receive_until(), rt_msg_send(), rt_msg_send_if(), rt_msg_send_timed(), rt_msg_send_until(), rt_msgq_delete(), rt_msgq_init(), rt_Name_detach(), rt_Name_locate(), rt_named_free(), rt_named_halloc(), rt_named_hfree(), rt_named_malloc(), rt_named_mbx_delete(), rt_named_msgq_delete(), rt_named_msgq_init(), rt_named_rwl_delete(), rt_named_rwl_init(), rt_named_sem_delete(), rt_named_spl_delete(), rt_named_spl_init(), rt_pend_linux_irq(), rt_poll(), rt_printk(), rt_Proxy_attach(), rt_proxy_attach(), rt_Proxy_detach(), rt_proxy_detach(), rt_qBlkAfter(), rt_qBlkAtHead(), rt_qBlkAtTail(), rt_qBlkBefore(), rt_qBlkCancel(), rt_qBlkComplete(), rt_qBlkDequeue(), rt_qBlkRelease(), rt_qBlkRepeat(), rt_qBlkSchedule(), rt_qBlkSoon(), rt_qBlkUnhook(), rt_qBlkWait(), rt_qDynAlloc(), rt_qDynFree(), rt_qDynInit(), rt_qHookFlush(), rt_qHookInit(), rt_qHookRelease(), rt_qLoop(), rt_qReceive(), rt_qStep(), rt_qSync(), rt_Receive(), rt_receive(), rt_receive_if(), rt_receive_timed(), rt_receive_until(), rt_receivex(), rt_receivex_if(), rt_receivex_timed(), rt_receivex_until(), rt_release_irq_task(), rt_release_rtc(), rt_ReleaseTickQueue(), rt_Reply(), rt_request_irq_task(), rt_request_rtc(), rt_return(), rt_returnx(), rt_rpc(), rt_rpc_if(), rt_rpc_timed(), rt_rpc_until(), rt_rpcx(), rt_rpcx_if(), rt_rpcx_timed(), rt_rpcx_until(), rt_rwl_delete(), rt_rwl_rdlock(), rt_rwl_rdlock_if(), rt_rwl_rdlock_timed(), rt_rwl_rdlock_until(), rt_rwl_unlock(), rt_rwl_wrlock(), rt_rwl_wrlock_if(), rt_rwl_wrlock_timed(), rt_rwl_wrlock_until(), rt_sched_lock(), rt_sched_unlock(), rt_sem_broadcast(), rt_sem_count(), rt_sem_delete(), rt_sem_signal(), rt_sem_wait(), rt_sem_wait_barrier(), rt_sem_wait_if(), rt_sem_wait_timed(), rt_sem_wait_until(), rt_Send(), rt_send(), rt_send_if(), rt_send_timed(), rt_send_until(), rt_sendx(), rt_sendx_if(), rt_sendx_timed(), rt_sendx_until(), rt_set_linux_signal_handler(), rt_set_linux_syscall_mode(), rt_set_oneshot_mode(), rt_set_period(), rt_set_periodic_mode(), rt_set_resume_time(), rt_set_runnable_on_cpuid(), rt_set_runnable_on_cpus(), rt_set_sched_policy(), rt_set_usp_flags(), rt_set_usp_flags_mask(), rt_shm_free(), rt_sleep(), rt_sleep_until(), rt_spl_delete(), rt_spl_init(), rt_spl_lock(), rt_spl_lock_if(), rt_spl_lock_timed(), rt_spl_unlock(), rt_spv_RMS(), rt_stomp(), rt_task_get_info(), rt_task_init_schmod(), rt_task_make_periodic(), rt_task_make_periodic_relative_ns(), rt_task_masked_unblock(), rt_task_resume(), rt_task_set_resume_end_times(), rt_task_signal_handler(), rt_task_suspend(), rt_task_suspend_if(), rt_task_suspend_timed(), rt_task_suspend_until(), rt_task_use_fpu(), rt_task_wait_period(), rt_task_yield(), rt_thread_create(), rt_thread_delete(), rt_Trigger(), rt_trigger(), rt_typed_mbx_init(), rt_typed_named_mbx_init(), rt_typed_named_sem_init(), rt_typed_rwl_init(), rt_typed_sem_init(), rt_usp_signal_handler(), rt_vc_attach(), rt_vc_release(), rt_vc_reserve(), rtai_print_to_screen(), start_ftimer(), start_rt_apic_timers(), start_rt_timer(), stop_ftimer(), and stop_rt_timer().
#define BITS_DELETE 134 |
#define BITS_GET 137 |
#define BITS_INIT 133 |
#define BITS_RESET 138 |
#define BITS_SIGNAL 139 |
#define BITS_WAIT 140 |
#define BITS_WAIT_IF 141 |
#define BITS_WAIT_TIMED 143 |
#define BITS_WAIT_UNTIL 142 |
#define BUSY_SLEEP 12 |
#define CHANGE_TASK_PRIO 35 |
#define COND_SIGNAL 186 |
Definition at line 286 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_signal(), and rt_cond_signal().
#define COND_WAIT 51 |
Definition at line 126 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_wait(), and rt_cond_wait().
#define COND_WAIT_TIMED 53 |
#define COND_WAIT_UNTIL 52 |
Definition at line 127 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_timedwait(), and rt_cond_wait_until().
#define COUNT2NANO 10 |
#define COUNT2NANO_CPUID 26 |
#define DDN2NL 181 |
#define DELETE_DEREGISTER 1022 |
Definition at line 405 of file rtai_lxrt.h.
#define EVDRP 103 |
#define EVDRPX 119 |
#define FIND_ASGN_STUB 183 |
#define FORCE_SOFT 0x80000000 |
Definition at line 415 of file rtai_lxrt.h.
Referenced by check_to_soften_harden(), and handle_lxrt_request().
#define FORCE_TASK_SOFT 1023 |
Definition at line 406 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_force_task_soft().
#define FREE 196 |
#define GET_ADR 177 |
#define GET_CPU_TIME_NS 20 |
Definition at line 93 of file rtai_lxrt.h.
Referenced by RT_get_cpu_time_ns(), and rt_get_cpu_time_ns().
#define GET_EXECTIME 1025 |
Definition at line 408 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_get_exectime().
#define GET_NAME 178 |
Definition at line 274 of file rtai_lxrt.h.
#define GET_REAL_TIME 218 |
#define GET_REAL_TIME_NS 219 |
#define GET_TASK_INFO 17 |
#define GET_TIME 9 |
#define GET_TIME_CPUID 28 |
#define GET_TIME_NS 19 |
#define GET_TIME_NS_CPUID 29 |
Definition at line 102 of file rtai_lxrt.h.
Referenced by RT_get_time_ns_cpuid(), and rt_get_time_ns_cpuid().
#define GET_TIMEORIG 1026 |
Definition at line 409 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_gettimeorig().
#define GET_TIMER_CPU 23 |
#define GET_USP_FLAGS 1015 |
Definition at line 398 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_get_usp_flags().
#define GET_USP_FLG_MSK 1017 |
Definition at line 400 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_get_usp_flags_mask().
#define GT_NR_SYSCALLS (1 << 11) |
Definition at line 419 of file rtai_lxrt.h.
#define HARD_TIMER_COUNT 18 |
#define HARD_TIMER_COUNT_CPUID 25 |
#define HARD_TIMER_RUNNING 38 |
#define HEAP_ALLOC 191 |
#define HEAP_FREE 192 |
#define HEAP_NAMED_ALLOC 193 |
#define HEAP_NAMED_FREE 194 |
#define HEAP_SET 190 |
#define HRT_USE_FPU 1013 |
Definition at line 396 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_task_use_fpu().
#define INDX | ( | x | ) | (((x) >> 24) & 0xF) |
#define IRQ_SIGNAL 206 |
#define IRQ_WAIT 202 |
#define IRQ_WAIT_IF 203 |
#define IRQ_WAIT_TIMED 205 |
#define IRQ_WAIT_UNTIL 204 |
#define IS_HARD 1019 |
Definition at line 402 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), rt_is_hard_real_time(), rt_thread_create(), start_rt_timer(), and stop_rt_timer().
#define ISRPC 104 |
#define LINUX_SERVER_INIT 1020 |
Definition at line 403 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and linux_syscall_server_fun().
#define LXRT_GET_ADR 1000 |
#define LXRT_GET_NAME 1001 |
#define LXRT_MBX_DELETE 1007 |
Definition at line 390 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_mbx_delete().
#define LXRT_MBX_INIT 1006 |
Definition at line 389 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_typed_mbx_init().
#define LXRT_RWL_DELETE 1028 |
Definition at line 411 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_destroy(), handle_lxrt_request(), and rt_rwl_delete().
#define LXRT_RWL_INIT 1027 |
Definition at line 410 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_init(), handle_lxrt_request(), and rt_typed_rwl_init().
#define LXRT_SEM_DELETE 1005 |
Definition at line 388 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_sem_delete().
#define LXRT_SEM_INIT 1004 |
Definition at line 387 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_typed_sem_init().
#define LXRT_SPL_DELETE 1030 |
Definition at line 413 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_spl_delete().
#define LXRT_SPL_INIT 1029 |
#define LXRT_TASK_DELETE 1003 |
Definition at line 386 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_thread_delete().
#define LXRT_TASK_INIT 1002 |
Definition at line 385 of file rtai_lxrt.h.
Referenced by ftask_init(), handle_lxrt_request(), and rt_task_init_schmod().
#define MAKE_HARD_RT 1009 |
Definition at line 392 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), rt_make_hard_real_time(), rt_thread_create(), start_rt_timer(), and stop_rt_timer().
#define MAKE_PERIODIC 3 |
#define MAKE_PERIODIC_NS 30 |
Definition at line 103 of file rtai_lxrt.h.
Referenced by pthread_make_periodic_np(), and rt_task_make_periodic_relative_ns().
#define MAKE_SOFT_RT 1008 |
Definition at line 391 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), rt_make_soft_real_time(), rt_thread_create(), start_rt_timer(), and stop_rt_timer().
#define MALLOC 195 |
#define MAX_LXRT_FUN 230 |
#define MBX_DELETE 76 |
Definition at line 153 of file rtai_lxrt.h.
#define MBX_EVDRP 89 |
#define MBX_OVRWR_SEND 90 |
Definition at line 167 of file rtai_lxrt.h.
Referenced by RT_mbx_ovrwr_send(), and rt_mbx_ovrwr_send().
#define MBX_RECEIVE 84 |
Definition at line 161 of file rtai_lxrt.h.
Referenced by rt_get_net_rpc_ret(), RT_mbx_receive(), and rt_mbx_receive().
#define MBX_RECEIVE_IF 86 |
Definition at line 163 of file rtai_lxrt.h.
Referenced by rt_get_net_rpc_ret(), RT_mbx_receive_if(), and rt_mbx_receive_if().
#define MBX_RECEIVE_TIMED 88 |
Definition at line 165 of file rtai_lxrt.h.
Referenced by rt_get_net_rpc_ret(), RT_mbx_receive_timed(), and rt_mbx_receive_timed().
#define MBX_RECEIVE_UNTIL 87 |
Definition at line 164 of file rtai_lxrt.h.
Referenced by rt_get_net_rpc_ret(), RT_mbx_receive_until(), and rt_mbx_receive_until().
#define MBX_RECEIVE_WP 85 |
Definition at line 162 of file rtai_lxrt.h.
Referenced by rt_get_net_rpc_ret(), RT_mbx_receive_wp(), and rt_mbx_receive_wp().
#define MBX_SEND 79 |
#define MBX_SEND_IF 81 |
#define MBX_SEND_TIMED 83 |
Definition at line 160 of file rtai_lxrt.h.
Referenced by RT_mbx_send_timed(), and rt_mbx_send_timed().
#define MBX_SEND_UNTIL 82 |
Definition at line 159 of file rtai_lxrt.h.
Referenced by RT_mbx_send_until(), and rt_mbx_send_until().
#define MBX_SEND_WP 80 |
#define MQ_CLOSE 167 |
#define MQ_GETATTR 168 |
#define MQ_NOTIFY 170 |
#define MQ_OPEN 164 |
#define MQ_RECEIVE 165 |
#define MQ_REG_USP_NOTIFIER 220 |
#define MQ_SEND 166 |
#define MQ_SETATTR 169 |
#define MQ_TIMEDRECEIVE 172 |
#define MQ_TIMEDSEND 173 |
#define MQ_UNLINK 171 |
#define NAMED_BITS_DELETE 136 |
Definition at line 224 of file rtai_lxrt.h.
#define NAMED_BITS_INIT 135 |
Definition at line 223 of file rtai_lxrt.h.
#define NAMED_FREE 198 |
#define NAMED_MALLOC 197 |
#define NAMED_MBX_DELETE 78 |
Definition at line 155 of file rtai_lxrt.h.
Referenced by krtai_objects_release(), RT_named_mbx_delete(), and rt_named_mbx_delete().
#define NAMED_MBX_INIT 77 |
Definition at line 154 of file rtai_lxrt.h.
Referenced by RT_typed_named_mbx_init(), and rt_typed_named_mbx_init().
#define NAMED_RWL_DELETE 57 |
Definition at line 132 of file rtai_lxrt.h.
Referenced by krtai_objects_release(), and rt_named_rwl_delete().
#define NAMED_RWL_INIT 56 |
#define NAMED_SEM_DELETE 42 |
Definition at line 117 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_destroy(), __wrap_pthread_mutex_destroy(), __wrap_sem_close(), __wrap_sem_destroy(), krtai_objects_release(), rt_named_sem_delete(), and RT_named_sem_delete().
#define NAMED_SEM_INIT 41 |
Definition at line 116 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_init(), __wrap_pthread_mutex_init(), __wrap_sem_init(), __wrap_sem_open(), rt_typed_named_sem_init(), and RT_typed_named_sem_init().
#define NAMED_SPL_DELETE 70 |
Definition at line 145 of file rtai_lxrt.h.
Referenced by krtai_objects_release(), and rt_named_spl_delete().
#define NAMED_SPL_INIT 69 |
#define NAMED_TASK_DELETE 176 |
Definition at line 270 of file rtai_lxrt.h.
#define NAMED_TASK_INIT 174 |
Definition at line 268 of file rtai_lxrt.h.
#define NAMED_TASK_INIT_CPUID 175 |
Definition at line 269 of file rtai_lxrt.h.
#define NAMED_TBX_DELETE 147 |
Definition at line 237 of file rtai_lxrt.h.
#define NAMED_TBX_INIT 146 |
Definition at line 236 of file rtai_lxrt.h.
#define NANO2COUNT 11 |
#define NANO2COUNT_CPUID 27 |
#define NARG | ( | x | ) | ((x) & (GT_NR_SYSCALLS - 1)) |
#define NETRPC 179 |
Definition at line 277 of file rtai_lxrt.h.
Referenced by RT_get_adr(), RT_get_cpu_time_ns(), RT_get_time_ns(), RT_get_time_ns_cpuid(), RT_isrpc(), RT_mbx_evdrp(), RT_mbx_ovrwr_send(), RT_mbx_receive(), RT_mbx_receive_if(), RT_mbx_receive_timed(), RT_mbx_receive_until(), RT_mbx_receive_wp(), RT_mbx_send(), RT_mbx_send_if(), RT_mbx_send_timed(), RT_mbx_send_until(), RT_mbx_send_wp(), RT_named_mbx_delete(), RT_named_sem_delete(), RT_rpc(), RT_rpc_if(), RT_rpc_timed(), RT_rpc_until(), RT_rpcx(), RT_rpcx_if(), RT_rpcx_timed(), RT_rpcx_until(), RT_sem_broadcast(), RT_sem_signal(), RT_sem_wait(), RT_sem_wait_if(), RT_sem_wait_timed(), RT_sem_wait_until(), RT_send(), RT_send_if(), RT_send_timed(), RT_send_until(), RT_sendx(), RT_sendx_if(), RT_sendx_timed(), RT_sendx_until(), RT_sleep(), RT_sleep_until(), rt_sync_net_rpc(), RT_task_resume(), RT_task_suspend(), RT_typed_named_mbx_init(), and RT_typed_named_sem_init().
#define NONROOT_HRT 1011 |
Definition at line 394 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_allow_nonroot_hrt().
#define PAC_NSYSCALL_ARGS 6 |
Definition at line 430 of file rtai_lxrt.h.
#define PEND_LINUX_IRQ 211 |
#define PRINT_TO_SCREEN 1010 |
Definition at line 393 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rtai_print_to_screen().
#define PRINTK 1024 |
#define PROXY_ATTACH 120 |
#define PROXY_DETACH 121 |
Definition at line 204 of file rtai_lxrt.h.
Referenced by krtai_objects_release(), lxrt_Proxy_detach(), and rt_proxy_detach().
#define PROXY_TRIGGER 122 |
#define RECEIVE_IF 96 |
#define RECEIVE_TIMED 98 |
#define RECEIVE_UNTIL 97 |
#define RECEIVEMSG 95 |
#define RECEIVEX 115 |
#define RECEIVEX_IF 116 |
#define RECEIVEX_TIMED 118 |
#define RECEIVEX_UNTIL 117 |
#define REL_STUB 184 |
#define RELEASE_IRQ_TASK 208 |
#define RELEASE_RTC 215 |
#define REQUEST_IRQ_TASK 207 |
#define REQUEST_RTC 214 |
#define RESUME 2 |
Definition at line 75 of file rtai_lxrt.h.
Referenced by linux_syscall_server_fun(), RT_task_resume(), and rt_task_resume().
#define RETURNMSG 105 |
#define RETURNX 114 |
#define RPC_IF 100 |
#define RPC_TIMED 102 |
#define RPC_UNTIL 101 |
#define RPCMSG 99 |
#define RPCX 106 |
#define RPCX_IF 107 |
#define RPCX_TIMED 109 |
#define RPCX_UNTIL 108 |
#define RT_BOOM 95 |
#define rt_buddy | ( | ) | rt_agent() |
Definition at line 1309 of file rtai_lxrt.h.
Referenced by MAKE_SOFT(), mq_notify(), pthread_setschedparam_np(), rt_request_signal(), and rt_request_signal_mq().
#define RT_BUDDY 1012 |
Definition at line 395 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), rt_agent(), rt_create_linux_syscall_server(), and rt_task_use_fpu().
#define rt_cond_init | ( | name | ) | rt_typed_sem_init(name, 0, BIN_SEM) |
Initialize a condition variable.
Allocates and initializes a condition variable to be referred by name.
name | name of the condition variable. |
Definition at line 381 of file rtai_sem.h.
#define RT_CRECEIVE 125 |
#define RT_FREE 97 |
Definition at line 370 of file rtai_lxrt.h.
#define RT_GET_ERRNO 104 |
#define RT_GET_LINUX_SIGNAL 103 |
#define RT_GETTICKQUEUEHOOK 94 |
#define RT_GETTID 216 |
#define rt_grow_and_lock_stack | ( | incr | ) | do { } while (0) |
Definition at line 591 of file rtai_lxrt.h.
Referenced by pthread_setschedparam_np(), signal_suprt_fun(), and support_tasklet().
#define RT_INITTICKQUEUE 69 |
#define rt_is_soft_real_time | ( | rt_task | ) | (!rt_is_hard_real_time((rt_task))) |
Definition at line 1365 of file rtai_lxrt.h.
#define rt_linux_syscall_server_create | ( | task | ) | rt_sync_async_linux_syscall_server_create(task, SYNC_LINUX_SYSCALL, NULL, 1); |
Definition at line 754 of file rtai_lxrt.h.
#define rt_mbx_init | ( | name, | |||
size | ) | rt_typed_mbx_init(name, size, FIFO_Q) |
Initialize mailbox.
Initializes a mailbox referred to by name of size size.
It is important to remark that the returned task pointer cannot be used directly, they are for kernel space data, but just passed as arguments when needed.
A 0 value is returned if it was not possible to setup the semaphore or something using the same name was found.
Definition at line 179 of file rtai_mbx.h.
#define RT_MMGR_STATS 98 |
#define RT_NAME_ATTACH 130 |
#define RT_NAME_DETACH 131 |
#define RT_NAME_LOCATE 132 |
#define rt_named_task_init | ( | task_name, | |||
thread, | |||||
data, | |||||
stack_size, | |||||
prio, | |||||
uses_fpu, | |||||
signal | ) | rt_task_init(nam2num(task_name), thread, data, stack_size, prio, uses_fpu, signal) |
Definition at line 1144 of file rtai_lxrt.h.
#define rt_named_task_init_cpuid | ( | task_name, | |||
thread, | |||||
data, | |||||
stack_size, | |||||
prio, | |||||
uses_fpu, | |||||
signal, | |||||
run_on_cpu | ) | rt_task_init_cpuid(nam2num(task_name), thread, data, stack_size, prio, uses_fpu, signal, run_on_cpu) |
Definition at line 1147 of file rtai_lxrt.h.
#define RT_POLL_NETRPC 229 |
Definition at line 335 of file rtai_lxrt.h.
#define RT_PROXY_ATTACH 127 |
#define RT_PROXY_DETACH 128 |
#define RT_QBLKAFTER 84 |
#define RT_QBLKATHEAD 89 |
#define RT_QBLKATTAIL 90 |
#define RT_QBLKBEFORE 83 |
#define RT_QBLKCANCEL 78 |
#define RT_QBLKCOMPLETE 87 |
#define RT_QBLKDEQUEUE 77 |
#define RT_QBLKRELEASE 86 |
#define RT_QBLKREPEAT 75 |
#define RT_QBLKSCHEDULE 93 |
#define RT_QBLKSOON 76 |
#define RT_QBLKUNHOOK 85 |
#define RT_QBLKWAIT 74 |
#define RT_QDYNALLOC 71 |
#define RT_QDYNFREE 72 |
#define RT_QDYNINIT 73 |
#define RT_QHOOKFLUSH 88 |
#define RT_QHOOKINIT 91 |
#define RT_QHOOKRELEASE 92 |
#define RT_QLOOP 81 |
#define RT_QRECEIVE 80 |
#define RT_QSTEP 82 |
#define RT_QSYNC 79 |
#define RT_RECEIVE 124 |
#define RT_RELEASETICKQUEUE 70 |
#define RT_REPLY 126 |
#define rt_sem_init | ( | name, | |||
value | ) | rt_typed_sem_init(name, value, CNT_SEM) |
Initialize a counting semaphore.
Allocates and initializes a semaphore to be referred by name.
name | name of the semaphore. | |
value | is the initial value of the semaphore |
Definition at line 295 of file rtai_sem.h.
#define RT_SEND 123 |
#define RT_SET_LINUX_SIGNAL_HANDLER 105 |
#define RT_SIGNAL_DISABLE 226 |
#define RT_SIGNAL_ENABLE 225 |
#define RT_SIGNAL_HELPER 221 |
Definition at line 326 of file rtai_lxrt.h.
Referenced by rt_request_signal(), and rt_request_signal_mq().
#define RT_SIGNAL_RELEASE 224 |
#define RT_SIGNAL_REQUEST 223 |
Definition at line 328 of file rtai_lxrt.h.
Referenced by signal_suprt_fun(), and signal_suprt_fun_mq().
#define RT_SIGNAL_TRIGGER 227 |
#define RT_SIGNAL_WAITSIG 222 |
Definition at line 327 of file rtai_lxrt.h.
Referenced by signal_suprt_fun(), and signal_suprt_fun_mq().
#define RT_STOMP 99 |
#define rt_sync_async_linux_syscall_server_create | ( | task, | |||
mode, | |||||
cbfun, | |||||
nr_calls | ) | rt_create_linux_syscall_server(task, mode, cbfun, nr_calls) |
Definition at line 752 of file rtai_lxrt.h.
Definition at line 847 of file rtai_lxrt.h.
Referenced by __rtai_netrpc_exit(), __rtai_tasklets_exit(), __rtai_wd_exit(), gvb_stub(), lxrt_killall(), main(), rt_named_task_delete(), rt_named_task_init(), rt_named_task_init_cpuid(), rt_Proxy_detach(), rt_proxy_detach(), rt_sem_delete(), rt_sem_signal(), signal_suprt_fun(), signal_suprt_fun_mq(), smpproof_task_delete(), support_posix_timer(), support_tasklet(), and user_srq().
Definition at line 1397 of file rtai_lxrt.h.
#define RT_THREAD_STACK_MIN 64*1024 |
Definition at line 659 of file rtai_lxrt.h.
Referenced by rt_create_linux_syscall_server(), and rt_thread_create().
#define RT_TRIGGER 129 |
#define RT_VC_ATTACH 100 |
#define RT_VC_RELEASE 101 |
#define RT_VC_RESERVE 102 |
#define RTAI_MALLOC 96 |
Definition at line 369 of file rtai_lxrt.h.
#define RWL_DELETE 55 |
Definition at line 130 of file rtai_lxrt.h.
#define RWL_INIT 54 |
#define RWL_RDLOCK 58 |
Definition at line 133 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_rdlock(), and rt_rwl_rdlock().
#define RWL_RDLOCK_IF 59 |
Definition at line 134 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_tryrdlock(), and rt_rwl_rdlock_if().
#define RWL_RDLOCK_TIMED 61 |
#define RWL_RDLOCK_UNTIL 60 |
#define RWL_UNLOCK 66 |
Definition at line 141 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_unlock(), and rt_rwl_unlock().
#define RWL_WRLOCK 62 |
Definition at line 137 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_wrlock(), and rt_rwl_wrlock().
#define RWL_WRLOCK_IF 63 |
Definition at line 138 of file rtai_lxrt.h.
Referenced by __wrap_pthread_rwlock_trywrlock(), and rt_rwl_wrlock_if().
#define RWL_WRLOCK_TIMED 65 |
#define RWL_WRLOCK_UNTIL 64 |
#define SCHED_LOCK 209 |
#define SCHED_UNLOCK 210 |
#define SEM_BROADCAST 48 |
Definition at line 123 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_broadcast(), rt_sem_broadcast(), and RT_sem_broadcast().
#define SEM_COUNT 50 |
Definition at line 125 of file rtai_lxrt.h.
Referenced by __wrap_sem_getvalue(), and rt_sem_count().
#define SEM_DELETE 40 |
Definition at line 115 of file rtai_lxrt.h.
#define SEM_RT_POLL 228 |
#define SEM_SIGNAL 43 |
Definition at line 118 of file rtai_lxrt.h.
Referenced by __wrap_pthread_mutex_destroy(), __wrap_pthread_mutex_unlock(), __wrap_sem_post(), rt_sem_signal(), RT_sem_signal(), and sched_sem_signal().
#define SEM_WAIT 44 |
Definition at line 119 of file rtai_lxrt.h.
Referenced by __wrap_pthread_mutex_lock(), __wrap_sem_wait(), rt_sem_wait(), and RT_sem_wait().
#define SEM_WAIT_BARRIER 49 |
#define SEM_WAIT_IF 45 |
Definition at line 120 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_destroy(), __wrap_pthread_mutex_destroy(), __wrap_pthread_mutex_trylock(), __wrap_sem_close(), __wrap_sem_destroy(), __wrap_sem_trywait(), rt_sem_wait_if(), and RT_sem_wait_if().
#define SEM_WAIT_TIMED 47 |
Definition at line 122 of file rtai_lxrt.h.
Referenced by rt_sem_wait_timed(), and RT_sem_wait_timed().
#define SEM_WAIT_UNTIL 46 |
Definition at line 121 of file rtai_lxrt.h.
Referenced by __wrap_sem_timedwait(), rt_sem_wait_until(), and RT_sem_wait_until().
#define SEND_IF 92 |
#define SEND_REQ_REL_PORT 180 |
#define SEND_TIMED 94 |
#define SEND_UNTIL 93 |
#define SENDMSG 91 |
#define SENDX 110 |
#define SENDX_IF 111 |
#define SENDX_TIMED 113 |
#define SENDX_UNTIL 112 |
#define SET_LINUX_SYSCALL_MODE 212 |
#define SET_NETRPC_TIMEOUT 217 |
#define SET_ONESHOT_MODE 14 |
#define SET_PERIOD 37 |
#define SET_PERIODIC_MODE 13 |
Definition at line 86 of file rtai_lxrt.h.
Referenced by rt_set_periodic_mode(), and start_ftimer().
#define SET_RESUME_END 32 |
#define SET_RESUME_TIME 36 |
#define SET_RUNNABLE_ON_CPUID 22 |
#define SET_RUNNABLE_ON_CPUS 21 |
#define SET_SCHED_POLICY 31 |
#define SET_THIS_NODE 182 |
#define SET_USP_FLAGS 1016 |
Definition at line 399 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_set_usp_flags().
#define SET_USP_FLG_MSK 1018 |
Definition at line 401 of file rtai_lxrt.h.
Referenced by handle_lxrt_request(), and rt_set_usp_flags_mask().
#define SHM_ALLOC 187 |
#define SHM_FREE 188 |
#define SHM_SIZE 189 |
#define SIGNAL_HANDLER 15 |
#define SIZARG sizeof(arg) |
Definition at line 596 of file rtai_lxrt.h.
Referenced by __wrap_pthread_cond_broadcast(), __wrap_pthread_cond_destroy(), __wrap_pthread_cond_init(), __wrap_pthread_cond_signal(), __wrap_pthread_cond_timedwait(), __wrap_pthread_cond_wait(), __wrap_pthread_mutex_destroy(), __wrap_pthread_mutex_init(), __wrap_pthread_mutex_lock(), __wrap_pthread_mutex_trylock(), __wrap_pthread_mutex_unlock(), __wrap_pthread_rwlock_destroy(), __wrap_pthread_rwlock_init(), __wrap_pthread_rwlock_rdlock(), __wrap_pthread_rwlock_tryrdlock(), __wrap_pthread_rwlock_trywrlock(), __wrap_pthread_rwlock_unlock(), __wrap_pthread_rwlock_wrlock(), __wrap_sem_close(), __wrap_sem_destroy(), __wrap_sem_getvalue(), __wrap_sem_init(), __wrap_sem_open(), __wrap_sem_post(), __wrap_sem_timedwait(), __wrap_sem_trywait(), __wrap_sem_wait(), __wrap_timer_create(), __wrap_timer_getoverrun(), __wrap_timer_gettime(), __wrap_timer_settime(), _rt_shm_alloc(), count2nano(), count2nano_cpuid(), ftask_init(), mq_close(), mq_getattr(), mq_notify(), mq_open(), mq_receive(), mq_send(), mq_setattr(), mq_timedreceive(), mq_timedsend(), mq_unlink(), nano2count(), nano2count_cpuid(), pthread_gettid_np(), pthread_make_periodic_np(), pthread_wait_period_np(), rt_agent(), rt_Alias_attach(), rt_allow_nonroot_hrt(), rt_bits_delete(), rt_bits_init(), rt_bits_reset(), rt_bits_signal(), rt_bits_wait(), rt_bits_wait_if(), rt_bits_wait_timed(), rt_bits_wait_until(), rt_boom(), rt_buddy_task_use_fpu(), rt_busy_sleep(), rt_change_prio(), rt_cond_signal(), rt_cond_wait(), rt_cond_wait_timed(), rt_cond_wait_until(), rt_Creceive(), rt_delete_tasklet(), rt_disable_signal(), rt_enable_signal(), rt_evdrp(), rt_evdrpx(), rt_exec_tasklet(), rt_force_task_soft(), rt_free(), RT_get_adr(), rt_get_adr(), rt_get_bits(), RT_get_cpu_time_ns(), rt_get_cpu_time_ns(), rt_get_errno(), rt_get_exectime(), rt_get_linux_signal(), rt_get_name(), rt_get_real_time(), rt_get_real_time_ns(), rt_get_time(), rt_get_time_cpuid(), RT_get_time_ns(), rt_get_time_ns(), RT_get_time_ns_cpuid(), rt_get_time_ns_cpuid(), rt_get_timer_cpu(), rt_get_timer_overrun(), rt_get_timer_times(), rt_get_usp_flags(), rt_get_usp_flags_mask(), rt_GetTickQueueHook(), rt_gettid(), rt_gettimeorig(), rt_halloc(), rt_hard_timer_tick(), rt_hard_timer_tick_cpuid(), rt_hfree(), rt_init_tasklet(), rt_InitTickQueue(), rt_insert_tasklet(), rt_insert_timer(), rt_irq_signal(), rt_irq_wait(), rt_irq_wait_if(), rt_irq_wait_timed(), rt_irq_wait_until(), rt_is_hard_real_time(), rt_is_hard_timer_running(), RT_isrpc(), rt_isrpc(), rt_make_hard_real_time(), rt_make_soft_real_time(), rt_malloc(), rt_mbx_delete(), RT_mbx_evdrp(), rt_mbx_evdrp(), RT_mbx_ovrwr_send(), rt_mbx_ovrwr_send(), RT_mbx_receive(), rt_mbx_receive(), RT_mbx_receive_if(), rt_mbx_receive_if(), RT_mbx_receive_timed(), rt_mbx_receive_timed(), RT_mbx_receive_until(), rt_mbx_receive_until(), RT_mbx_receive_wp(), rt_mbx_receive_wp(), RT_mbx_send(), rt_mbx_send(), RT_mbx_send_if(), rt_mbx_send_if(), RT_mbx_send_timed(), rt_mbx_send_timed(), RT_mbx_send_until(), rt_mbx_send_until(), RT_mbx_send_wp(), rt_mbx_send_wp(), rt_mmgr_stats(), rt_msg_broadcast(), rt_msg_broadcast_if(), rt_msg_broadcast_timed(), rt_msg_broadcast_until(), rt_msg_evdrp(), rt_msg_receive(), rt_msg_receive_if(), rt_msg_receive_timed(), rt_msg_receive_until(), rt_msg_send(), rt_msg_send_if(), rt_msg_send_timed(), rt_msg_send_until(), rt_msgq_delete(), rt_msgq_init(), rt_Name_detach(), rt_Name_locate(), rt_named_free(), rt_named_halloc(), rt_named_hfree(), rt_named_malloc(), RT_named_mbx_delete(), rt_named_mbx_delete(), rt_named_msgq_delete(), rt_named_msgq_init(), rt_named_rwl_delete(), rt_named_rwl_init(), rt_named_sem_delete(), RT_named_sem_delete(), rt_named_spl_delete(), rt_named_spl_init(), rt_pend_linux_irq(), rt_poll(), rt_printk(), rt_Proxy_attach(), rt_proxy_attach(), rt_Proxy_detach(), rt_proxy_detach(), rt_qBlkAfter(), rt_qBlkAtHead(), rt_qBlkAtTail(), rt_qBlkBefore(), rt_qBlkCancel(), rt_qBlkComplete(), rt_qBlkDequeue(), rt_qBlkRelease(), rt_qBlkRepeat(), rt_qBlkSchedule(), rt_qBlkSoon(), rt_qBlkUnhook(), rt_qBlkWait(), rt_qDynAlloc(), rt_qDynFree(), rt_qDynInit(), rt_qHookFlush(), rt_qHookInit(), rt_qHookRelease(), rt_qLoop(), rt_qReceive(), rt_qStep(), rt_qSync(), rt_Receive(), rt_receive(), rt_receive_if(), rt_receive_timed(), rt_receive_until(), rt_receivex(), rt_receivex_if(), rt_receivex_timed(), rt_receivex_until(), rt_release_irq_task(), rt_release_rtc(), rt_release_signal(), rt_ReleaseTickQueue(), rt_remove_tasklet(), rt_remove_timer(), rt_Reply(), rt_request_irq_task(), rt_request_rtc(), rt_return(), rt_returnx(), RT_rpc(), rt_rpc(), RT_rpc_if(), rt_rpc_if(), RT_rpc_timed(), rt_rpc_timed(), RT_rpc_until(), rt_rpc_until(), RT_rpcx(), rt_rpcx(), RT_rpcx_if(), rt_rpcx_if(), RT_rpcx_timed(), rt_rpcx_timed(), RT_rpcx_until(), rt_rpcx_until(), rt_rwl_delete(), rt_rwl_rdlock(), rt_rwl_rdlock_if(), rt_rwl_rdlock_timed(), rt_rwl_rdlock_until(), rt_rwl_unlock(), rt_rwl_wrlock(), rt_rwl_wrlock_if(), rt_rwl_wrlock_timed(), rt_rwl_wrlock_until(), rt_sched_lock(), rt_sched_unlock(), rt_sem_broadcast(), RT_sem_broadcast(), rt_sem_count(), rt_sem_delete(), rt_sem_signal(), RT_sem_signal(), rt_sem_wait(), RT_sem_wait(), rt_sem_wait_barrier(), rt_sem_wait_if(), RT_sem_wait_if(), rt_sem_wait_timed(), RT_sem_wait_timed(), rt_sem_wait_until(), RT_sem_wait_until(), RT_send(), rt_Send(), rt_send(), RT_send_if(), rt_send_if(), RT_send_timed(), rt_send_timed(), RT_send_until(), rt_send_until(), RT_sendx(), rt_sendx(), RT_sendx_if(), rt_sendx_if(), RT_sendx_timed(), rt_sendx_timed(), RT_sendx_until(), rt_sendx_until(), rt_set_linux_signal_handler(), rt_set_linux_syscall_mode(), rt_set_oneshot_mode(), rt_set_period(), rt_set_periodic_mode(), rt_set_resume_time(), rt_set_runnable_on_cpuid(), rt_set_runnable_on_cpus(), rt_set_sched_policy(), rt_set_tasklet_data(), rt_set_tasklet_handler(), rt_set_tasklet_priority(), rt_set_timer_firing_time(), rt_set_timer_period(), rt_set_timer_priority(), rt_set_usp_flags(), rt_set_usp_flags_mask(), rt_shm_free(), RT_sleep(), rt_sleep(), RT_sleep_until(), rt_sleep_until(), rt_spl_delete(), rt_spl_init(), rt_spl_lock(), rt_spl_lock_if(), rt_spl_lock_timed(), rt_spl_unlock(), rt_spv_RMS(), rt_stomp(), rt_sync_net_rpc(), rt_task_get_info(), rt_task_init_schmod(), rt_task_make_periodic(), rt_task_make_periodic_relative_ns(), rt_task_masked_unblock(), RT_task_resume(), rt_task_resume(), rt_task_set_resume_end_times(), rt_task_signal_handler(), RT_task_suspend(), rt_task_suspend(), rt_task_suspend_if(), rt_task_suspend_timed(), rt_task_suspend_until(), rt_task_use_fpu(), rt_task_wait_period(), rt_task_yield(), rt_tasklet_use_fpu(), rt_thread_create(), rt_thread_delete(), rt_Trigger(), rt_trigger(), rt_trigger_signal(), rt_typed_mbx_init(), RT_typed_named_mbx_init(), rt_typed_named_mbx_init(), rt_typed_named_sem_init(), RT_typed_named_sem_init(), rt_typed_rwl_init(), rt_typed_sem_init(), rt_usp_signal_handler(), rt_vc_attach(), rt_vc_release(), rt_vc_reserve(), rt_wdset_grace(), rt_wdset_gracediv(), rt_wdset_limit(), rt_wdset_policy(), rt_wdset_safety(), rt_wdset_slip(), rt_wdset_stretch(), rtai_print_to_screen(), rtf_create(), rtf_create_named_lxrt(), rtf_destroy(), rtf_get(), rtf_get_avbs(), rtf_get_frbs(), rtf_get_if(), rtf_getfifobyname_lxrt(), rtf_named_create_lxrt(), rtf_ovrwr_put(), rtf_put(), rtf_put_if(), rtf_reset_lxrt(), rtf_resize_lxrt(), rtf_sem_destroy_lxrt(), rtf_sem_init_lxrt(), rtf_sem_post_lxrt(), rtf_sem_trywait_lxrt(), start_ftimer(), start_rt_apic_timers(), start_rt_timer(), stop_ftimer(), and stop_rt_timer().
#define SLEEP 5 |
#define SLEEP_UNTIL 6 |
#define SPL_DELETE 68 |
Definition at line 143 of file rtai_lxrt.h.
#define SPL_INIT 67 |
#define SPL_LOCK 71 |
#define SPL_LOCK_IF 72 |
#define SPL_LOCK_TIMED 73 |
#define SPL_UNLOCK 74 |
#define SPV_RMS 33 |
#define SRQ | ( | x | ) | (((x) >> 12) & 0xFFF) |
#define SRV_NSYSCALL_REGS 7 |
Definition at line 429 of file rtai_lxrt.h.
#define START_RT_APIC_TIMERS 24 |
#define START_TIMER 7 |
#define STOP_TIMER 8 |
#define SUSPEND 1 |
Definition at line 74 of file rtai_lxrt.h.
Referenced by linux_syscall_server_fun(), rt_create_linux_syscall_server(), RT_task_suspend(), and rt_task_suspend().
#define SUSPEND_IF 199 |
#define SUSPEND_TIMED 201 |
#define SUSPEND_UNTIL 200 |
#define SYNC_LINUX_SYSCALL 1 |
Definition at line 426 of file rtai_lxrt.h.
Referenced by linux_syscall_server_fun(), and rt_exec_linux_syscall().
#define TASK_USE_FPU 16 |
Definition at line 89 of file rtai_lxrt.h.
Referenced by rt_buddy_task_use_fpu(), and rt_task_use_fpu().
#define TBX_BROADCAST 156 |
Definition at line 246 of file rtai_lxrt.h.
#define TBX_BROADCAST_IF 157 |
Definition at line 247 of file rtai_lxrt.h.
#define TBX_BROADCAST_TIMED 159 |
Definition at line 249 of file rtai_lxrt.h.
#define TBX_BROADCAST_UNTIL 158 |
Definition at line 248 of file rtai_lxrt.h.
#define TBX_DELETE 145 |
Definition at line 235 of file rtai_lxrt.h.
#define TBX_INIT 144 |
Definition at line 234 of file rtai_lxrt.h.
#define TBX_RECEIVE 152 |
Definition at line 242 of file rtai_lxrt.h.
#define TBX_RECEIVE_IF 153 |
Definition at line 243 of file rtai_lxrt.h.
#define TBX_RECEIVE_TIMED 155 |
Definition at line 245 of file rtai_lxrt.h.
#define TBX_RECEIVE_UNTIL 154 |
Definition at line 244 of file rtai_lxrt.h.
#define TBX_SEND 148 |
Definition at line 238 of file rtai_lxrt.h.
#define TBX_SEND_IF 149 |
Definition at line 239 of file rtai_lxrt.h.
#define TBX_SEND_TIMED 151 |
Definition at line 241 of file rtai_lxrt.h.
#define TBX_SEND_UNTIL 150 |
Definition at line 240 of file rtai_lxrt.h.
#define TBX_URGENT 160 |
Definition at line 250 of file rtai_lxrt.h.
#define TBX_URGENT_IF 161 |
Definition at line 251 of file rtai_lxrt.h.
#define TBX_URGENT_TIMED 163 |
Definition at line 253 of file rtai_lxrt.h.
#define TBX_URGENT_UNTIL 162 |
Definition at line 252 of file rtai_lxrt.h.
#define TYPED_MBX_INIT 75 |
#define TYPED_SEM_INIT 39 |
#define USP_SIGHDL 1014 |
#define VSNPRINTF_BUF_SIZE 256 |
#define WAIT_PERIOD 4 |
Definition at line 77 of file rtai_lxrt.h.
Referenced by pthread_wait_period_np(), and rt_task_wait_period().
#define WAITING_RETURN 185 |
#define WAKEUP_SLEEPING 34 |
#define YIELD 0 |
Definition at line 1040 of file rtai_lxrt.h.
References BIDX, COUNT2NANO, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by __wrap_clock_getres(), count2timespec(), main(), and spv().
Here is the call graph for this function:
Definition at line 1180 of file rtai_lxrt.h.
References BIDX, COUNT2NANO_CPUID, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by start_slipping_badtask(), and stretch_badtask().
Here is the call graph for this function:
static RT_TASK* ftask_init | ( | unsigned long | name, | |
int | priority | |||
) | [inline, static] |
Definition at line 1413 of file rtai_lxrt.h.
References BIDX, LOW, LXRT_TASK_INIT, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.
Here is the call graph for this function:
static void linux_syscall_server_fun | ( | struct linux_syscalls_list * | list | ) | [static] |
Definition at line 698 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, linux_syscalls_list::in, LINUX_SERVER_INIT, LOW, mlockall, mode_regs::mode, linux_syscalls_list::out, RESUME, rt_thread_delete(), rtai_lxrt(), RTE_LOWERR, linux_syscalls_list::serv, SUSPEND, and SYNC_LINUX_SYSCALL.
Referenced by rt_create_linux_syscall_server().
Here is the call graph for this function:
Definition at line 1046 of file rtai_lxrt.h.
References BIDX, NANO2COUNT, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by __rtai_wd_init(), hard_stub_fun(), main(), RT_mbx_receive_timed(), RT_mbx_receive_until(), RT_mbx_send_timed(), RT_mbx_send_until(), RT_receive_timed(), RT_receive_until(), RT_receivex_timed(), RT_receivex_until(), RT_rpc_timed(), RT_rpc_until(), RT_rpcx_timed(), RT_rpcx_until(), RT_sem_wait_timed(), RT_sem_wait_until(), RT_send_timed(), RT_send_until(), RT_sendx_timed(), RT_sendx_until(), RT_sleep(), RT_sleep_until(), soft_stub_fun(), start_rt_apic_timers(), timespec2count(), and user_srq().
Here is the call graph for this function:
Definition at line 1186 of file rtai_lxrt.h.
References BIDX, NANO2COUNT_CPUID, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by __rtai_wd_init(), rt_set_sched_policy(), and rt_task_make_periodic_relative_ns().
Here is the call graph for this function:
static RT_TASK* rt_agent | ( | void | ) | [inline, static] |
Definition at line 1303 of file rtai_lxrt.h.
References BIDX, dummy(), LOW, RT_BUDDY, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.
Here is the call graph for this function:
static void rt_allow_nonroot_hrt | ( | void | ) | [inline, static] |
Allows a non root user to use the Linux POSIX soft real time process management and memory lock functions, and allows it to do any input-output operation from user space.
Only the process itself can use this functions, it is not possible to impose the related transition from another process.
Definition at line 1353 of file rtai_lxrt.h.
References BIDX, dummy(), NONROOT_HRT, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_boom | ( | void | ) | [inline, static] |
Definition at line 1204 of file rtai_lxrt.h.
References BIDX, dummy(), RT_BOOM, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_buddy_task_use_fpu | ( | RT_TASK * | task, | |
int | use_fpu_flag | |||
) | [inline, static] |
Definition at line 1090 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, task, and TASK_USE_FPU.
Here is the call graph for this function:
static void rt_busy_sleep | ( | int | ns | ) | [inline, static] |
Definition at line 1052 of file rtai_lxrt.h.
References BIDX, BUSY_SLEEP, rtai_lxrt(), and SIZARG.
Referenced by __rtai_wd_exit().
Here is the call graph for this function:
static int rt_change_prio | ( | RT_TASK * | task, | |
int | priority | |||
) | [inline, static] |
Definition at line 816 of file rtai_lxrt.h.
References BIDX, CHANGE_TASK_PRIO, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and task.
Referenced by pthread_setschedparam_np().
Here is the call graph for this function:
static int rt_clone | ( | void * | fun, | |
void * | args, | |||
long | stack_size, | |||
unsigned long | flags | |||
) | [inline, static] |
Definition at line 648 of file rtai_lxrt.h.
static int rt_create_linux_syscall_server | ( | RT_TASK * | task, | |
int | mode, | |||
void(*)(long, long) | callback_fun, | |||
int | nr_bufd_async_calls | |||
) | [inline, static] |
Definition at line 736 of file rtai_lxrt.h.
References BIDX, linux_syscalls_list::callback_fun, linux_syscall_server_fun(), LOW, linux_syscalls_list::mode, linux_syscalls_list::nr, RT_BUDDY, rt_thread_create(), RT_THREAD_STACK_MIN, rtai_lxrt(), SUSPEND, linux_syscalls_list::task, and task.
Here is the call graph for this function:
int rt_drg_on_adr | ( | void * | adr | ) |
Deregister an object by its address.
rt_drg_on_adr deregisters the object identified by its adr.
Definition at line 1827 of file api.c.
References drg_on_adr().
Referenced by __task_delete(), handle_lxrt_request(), krtai_objects_release(), rt_bits_delete_u(), rt_named_bits_delete(), and rt_named_task_delete().
Here is the call graph for this function:
int rt_drg_on_name | ( | unsigned long | name | ) |
Deregister an object by its name.
rt_drg_on_name deregisters the object identified by its name.
Definition at line 1814 of file api.c.
References drg_on_name().
Here is the call graph for this function:
static RT_TASK* rt_force_task_soft | ( | int | pid | ) | [inline, static] |
Definition at line 1297 of file rtai_lxrt.h.
References BIDX, FORCE_TASK_SOFT, LOW, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.
Here is the call graph for this function:
static void* rt_get_adr | ( | unsigned long | name | ) | [inline, static] |
Get an object address by its name.
rt_get_adr returns the address associated to name.
Definition at line 609 of file rtai_lxrt.h.
References BIDX, LOW, LXRT_GET_ADR, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.
Referenced by __task_init(), _rt_shm_free(), handle_lxrt_request(), pthread_get_adr_np(), rt_bits_init_u(), RT_get_adr(), rt_Name_locate(), rt_named_bits_init(), rt_named_task_init(), rt_named_task_init_cpuid(), rt_set_heap(), and rtai_shm_f_mmap().
Here is the call graph for this function:
static RTIME rt_get_cpu_time_ns | ( | void | ) | [inline, static] |
Definition at line 1138 of file rtai_lxrt.h.
References BIDX, dummy(), GET_CPU_TIME_NS, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by RT_get_cpu_time_ns().
Here is the call graph for this function:
static int rt_get_errno | ( | RT_TASK * | task | ) | [inline, static] |
Definition at line 1228 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, RT_GET_ERRNO, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
Definition at line 1399 of file rtai_lxrt.h.
References BIDX, GET_EXECTIME, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
static int rt_get_linux_signal | ( | RT_TASK * | task | ) | [inline, static] |
Definition at line 1222 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, RT_GET_LINUX_SIGNAL, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
static unsigned long rt_get_name | ( | void * | adr | ) | [inline, static] |
Get an object name by its address.
rt_get_name returns the name pointed by the address adr.
Definition at line 623 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, LXRT_GET_NAME, rtai_lxrt(), and SIZARG.
Referenced by __wrap_pthread_cond_init(), __wrap_pthread_mutex_init(), __wrap_pthread_rwlock_init(), __wrap_sem_close(), __wrap_sem_init(), handle_lxrt_request(), pthread_get_name_np(), pthread_setschedparam_np(), rt_named_hfree_typed(), rt_task_init_schmod(), rt_typed_sem_init(), signal_suprt_fun(), and signal_suprt_fun_mq().
Here is the call graph for this function:
static int rt_get_priorities | ( | RT_TASK * | task, | |
int * | priority, | |||
int * | base_priority | |||
) | [inline, static] |
Definition at line 1115 of file rtai_lxrt.h.
References rt_task_info::base_priority, rt_task_info::priority, rt_task_get_info(), and task.
Here is the call graph for this function:
static RTIME rt_get_real_time | ( | void | ) | [inline, static] |
Definition at line 1028 of file rtai_lxrt.h.
References BIDX, dummy(), GET_REAL_TIME, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by __wrap_clock_gettime(), and __wrap_clock_nanosleep().
Here is the call graph for this function:
static RTIME rt_get_real_time_ns | ( | void | ) | [inline, static] |
Definition at line 1034 of file rtai_lxrt.h.
References BIDX, dummy(), GET_REAL_TIME_NS, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static RTIME rt_get_time | ( | void | ) | [inline, static] |
Definition at line 1022 of file rtai_lxrt.h.
References BIDX, dummy(), GET_TIME, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by __wrap_clock_gettime(), __wrap_clock_nanosleep(), __wrap_nanosleep(), main(), rt_get_timer_times(), rt_nanosleep(), rt_ptimer_settime(), rt_timers_manager(), spv(), and user_srq().
Here is the call graph for this function:
static RTIME rt_get_time_cpuid | ( | unsigned int | cpuid | ) | [inline, static] |
Definition at line 1192 of file rtai_lxrt.h.
References BIDX, GET_TIME_CPUID, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by __rtai_wd_init(), rt_task_make_periodic_relative_ns(), and watchdog().
Here is the call graph for this function:
static RTIME rt_get_time_ns | ( | void | ) | [inline, static] |
Definition at line 1132 of file rtai_lxrt.h.
References BIDX, dummy(), GET_TIME_NS, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by RT_get_time_ns().
Here is the call graph for this function:
static RTIME rt_get_time_ns_cpuid | ( | unsigned int | cpuid | ) | [inline, static] |
Definition at line 1198 of file rtai_lxrt.h.
References BIDX, GET_TIME_NS_CPUID, rtai_lxrt_t::rt, rtai_lxrt(), and SIZARG.
Referenced by RT_get_time_ns_cpuid().
Here is the call graph for this function:
static int rt_get_timer_cpu | ( | void | ) | [inline, static] |
Definition at line 1162 of file rtai_lxrt.h.
References BIDX, dummy(), GET_TIMER_CPU, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static unsigned long rt_get_usp_flags | ( | RT_TASK * | rt_task | ) | [inline, static] |
Definition at line 1273 of file rtai_lxrt.h.
References BIDX, GET_USP_FLAGS, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
static unsigned long rt_get_usp_flags_mask | ( | RT_TASK * | rt_task | ) | [inline, static] |
Definition at line 1279 of file rtai_lxrt.h.
References BIDX, GET_USP_FLG_MSK, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
static int rt_gettid | ( | void | ) | [inline, static] |
Definition at line 1311 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt_t::i, LOW, RT_GETTID, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_gettimeorig | ( | RTIME | time_orig[] | ) | [inline, static] |
Definition at line 1407 of file rtai_lxrt.h.
References BIDX, GET_TIMEORIG, rtai_lxrt(), and SIZARG.
Referenced by __wrap_clock_settime(), handle_lxrt_request(), and start_rt_timer().
Here is the call graph for this function:
static int rt_hard_timer_tick | ( | void | ) | [inline, static] |
Definition at line 1126 of file rtai_lxrt.h.
References BIDX, dummy(), HARD_TIMER_COUNT, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_hard_timer_tick_cpuid | ( | int | cpuid | ) | [inline, static] |
Definition at line 1174 of file rtai_lxrt.h.
References BIDX, HARD_TIMER_COUNT_CPUID, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_irq_signal | ( | unsigned | irq | ) | [inline, static] |
Definition at line 927 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, IRQ_SIGNAL, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_irq_wait | ( | unsigned | irq | ) | [inline, static] |
Definition at line 903 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, IRQ_WAIT, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_irq_wait_if | ( | unsigned | irq | ) | [inline, static] |
Definition at line 909 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, IRQ_WAIT_IF, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_irq_wait_timed | ( | unsigned | irq, | |
RTIME | delay | |||
) | [inline, static] |
Definition at line 921 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, IRQ_WAIT_TIMED, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_irq_wait_until | ( | unsigned | irq, | |
RTIME | time | |||
) | [inline, static] |
Definition at line 915 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, IRQ_WAIT_UNTIL, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_is_hard_real_time | ( | RT_TASK * | rt_task | ) | [inline, static] |
Definition at line 1359 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, IS_HARD, LOW, rtai_lxrt(), SIZARG, and task.
Referenced by MAKE_SOFT(), and rt_init_tasklet().
Here is the call graph for this function:
static int rt_is_hard_timer_running | ( | void | ) | [inline, static] |
Definition at line 976 of file rtai_lxrt.h.
References BIDX, dummy(), HARD_TIMER_RUNNING, rtai_lxrt_t::i, LOW, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_make_hard_real_time | ( | void | ) | [inline, static] |
Give a Linux process, or pthread, hard real time execution capabilities allowing full kernel preemption.
rt_make_hard_real_time makes the soft Linux POSIX real time process, from which it is called, a hard real time LXRT process. It is important to remark that this function must be used only with soft Linux POSIX processes having their memory locked in memory. See Linux man pages.
Only the process itself can use this functions, it is not possible to impose the related transition from another process.
Note that processes made hard real time should avoid making any Linux System call that can lead to a task switch as Linux cannot run anymore processes that are made hard real time. To interact with Linux you should couple the process that was made hard real time with a Linux buddy server, either standard or POSIX soft real time. To communicate and synchronize with the buddy you can use the wealth of available RTAI, and its schedulers, services.
After all it is pure nonsense to use a non hard real time Operating System, i.e. Linux, from within hard real time processes.
Definition at line 1339 of file rtai_lxrt.h.
References BIDX, dummy(), MAKE_HARD_RT, rtai_lxrt(), and SIZARG.
Referenced by handle_lxrt_request(), main(), pthread_hard_real_time_np(), pthread_setschedparam_np(), rt_init_tasklet(), signal_suprt_fun(), signal_suprt_fun_mq(), support_posix_timer(), and support_tasklet().
Here is the call graph for this function:
static void rt_make_soft_real_time | ( | void | ) | [inline, static] |
Return a hard real time Linux process, or pthread to the standard Linux behavior.
rt_make_soft_real_time returns to soft Linux POSIX real time a process, from which it is called, that was made hard real time by a call to rt_make_hard_real_time.
Only the process itself can use this functions, it is not possible to impose the related transition from another process.
Definition at line 834 of file rtai_lxrt.h.
References BIDX, dummy(), MAKE_SOFT_RT, rtai_lxrt(), and SIZARG.
Referenced by handle_lxrt_request(), main(), MAKE_SOFT(), pthread_setschedparam_np(), pthread_soft_real_time_np(), rt_init_tasklet(), rt_thread_delete(), signal_suprt_fun(), signal_suprt_fun_mq(), support_posix_timer(), and support_tasklet().
Here is the call graph for this function:
static void rt_mmgr_stats | ( | void | ) | [inline, static] |
Definition at line 1210 of file rtai_lxrt.h.
References BIDX, dummy(), RT_MMGR_STATS, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_pend_linux_irq | ( | unsigned | irq | ) | [inline, static] |
Definition at line 897 of file rtai_lxrt.h.
References BIDX, PEND_LINUX_IRQ, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_printk | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Definition at line 1254 of file rtai_lxrt.h.
References args, BIDX, PRINTK, rtai_lxrt(), SIZARG, and VSNPRINTF_BUF_SIZE.
Here is the call graph for this function:
int rt_register | ( | unsigned long | name, | |
void * | adr, | |||
int | type, | |||
struct task_struct * | t | |||
) |
Register an object.
rt_register registers the object to be identified with name, which is pointed by adr.
Definition at line 1797 of file api.c.
References get_adr(), and registr().
Referenced by __rtai_shm_init(), __task_init(), _rt_named_msgq_init(), _rt_named_rwl_init(), _rt_named_spl_init(), _rt_shm_alloc(), _rt_typed_named_mbx_init(), _rt_typed_named_sem_init(), handle_lxrt_request(), rt_bits_init_u(), rt_named_bits_init(), rt_named_halloc_typed(), rt_named_task_init(), and rt_named_task_init_cpuid().
Here is the call graph for this function:
static int rt_release_irq_task | ( | unsigned | irq | ) | [inline, static] |
Definition at line 940 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, RELEASE_IRQ_TASK, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_release_rtc | ( | void | ) | [inline, static] |
Definition at line 1016 of file rtai_lxrt.h.
References BIDX, dummy(), RELEASE_RTC, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_request_irq_task | ( | unsigned | irq, | |
void * | handler, | |||
int | type, | |||
int | affine2task | |||
) | [inline, static] |
Definition at line 933 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, REQUEST_IRQ_TASK, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_request_rtc | ( | int | rtc_freq, | |
void * | handler | |||
) | [inline, static] |
Definition at line 1010 of file rtai_lxrt.h.
References BIDX, REQUEST_RTC, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static void rt_sched_lock | ( | void | ) | [inline, static] |
Definition at line 885 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt(), SCHED_LOCK, and SIZARG.
Here is the call graph for this function:
static void rt_sched_unlock | ( | void | ) | [inline, static] |
Definition at line 891 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt(), SCHED_UNLOCK, and SIZARG.
Here is the call graph for this function:
static int rt_set_linux_signal_handler | ( | RT_TASK * | task, | |
void(*)(int sig) | handler | |||
) | [inline, static] |
Definition at line 1234 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, RT_SET_LINUX_SIGNAL_HANDLER, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
static void rt_set_linux_syscall_mode | ( | int | mode, | |
void(*)(long, long) | callback_fun | |||
) | [inline, static] |
Definition at line 730 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_LINUX_SYSCALL_MODE, and SIZARG.
Here is the call graph for this function:
static void rt_set_oneshot_mode | ( | void | ) | [inline, static] |
Definition at line 1064 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt(), SET_ONESHOT_MODE, and SIZARG.
Referenced by main(), start_rt_apic_timers(), start_rt_timer(), and user_srq().
Here is the call graph for this function:
Definition at line 1379 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SET_PERIOD, and SIZARG.
Here is the call graph for this function:
static void rt_set_periodic_mode | ( | void | ) | [inline, static] |
Definition at line 1058 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt(), SET_PERIODIC_MODE, and SIZARG.
Referenced by __rtai_wd_init().
Here is the call graph for this function:
Definition at line 1373 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SET_RESUME_TIME, and SIZARG.
Here is the call graph for this function:
static void rt_set_runnable_on_cpuid | ( | RT_TASK * | task, | |
unsigned int | cpuid | |||
) | [inline, static] |
Definition at line 1156 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_RUNNABLE_ON_CPUID, SIZARG, and task.
Referenced by rt_set_runnable_on_cpus().
Here is the call graph for this function:
static void rt_set_runnable_on_cpus | ( | RT_TASK * | task, | |
unsigned long | cpu_mask | |||
) | [inline, static] |
Definition at line 1150 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_RUNNABLE_ON_CPUS, SIZARG, and task.
Here is the call graph for this function:
static void rt_set_sched_policy | ( | RT_TASK * | task, | |
int | policy, | |||
int | rr_quantum_ns | |||
) | [inline, static] |
Definition at line 810 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_SCHED_POLICY, SIZARG, task, and linux_syscalls_list::task.
Referenced by pthread_setschedparam_np().
Here is the call graph for this function:
static void rt_set_usp_flags | ( | RT_TASK * | rt_task, | |
unsigned long | flags | |||
) | [inline, static] |
Definition at line 1285 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_USP_FLAGS, SIZARG, and task.
Here is the call graph for this function:
static void rt_set_usp_flags_mask | ( | unsigned long | flags_mask | ) | [inline, static] |
Definition at line 1291 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_USP_FLG_MSK, and SIZARG.
Here is the call graph for this function:
static int rt_sleep | ( | RTIME | delay | ) | [inline, static] |
Definition at line 964 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and SLEEP.
Referenced by RT_sleep(), and RT_sleep_until().
Here is the call graph for this function:
static int rt_sleep_until | ( | RTIME | time | ) | [inline, static] |
Definition at line 970 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and SLEEP_UNTIL.
Referenced by __wrap_clock_nanosleep(), __wrap_nanosleep(), rt_nanosleep(), and rt_timers_manager().
Here is the call graph for this function:
static void rt_spv_RMS | ( | int | cpuid | ) | [inline, static] |
Definition at line 1385 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SIZARG, and SPV_RMS.
Here is the call graph for this function:
static void rt_stomp | ( | void | ) | [inline, static] |
Definition at line 1216 of file rtai_lxrt.h.
References BIDX, dummy(), RT_STOMP, rtai_lxrt(), and SIZARG.
Here is the call graph for this function:
static int rt_task_get_info | ( | RT_TASK * | task, | |
RT_TASK_INFO * | task_info | |||
) | [inline, static] |
Definition at line 1104 of file rtai_lxrt.h.
References BIDX, GET_TASK_INFO, LOW, rtai_lxrt(), SIZARG, and task.
Referenced by rt_get_priorities().
Here is the call graph for this function:
static RT_TASK* rt_task_init | ( | unsigned long | name, | |
int | priority, | |||
int | stack_size, | |||
int | max_msg_size | |||
) | [inline, static] |
Create an RTAI task extension for a Linux process/task in user space.
rt_task_init extends the Linux task structure, making it possible to use RTAI APIs that wants to access RTAI scheduler services. It needs no task function as none is used, but it does need to setup an RTAI task structure and initialize it appropriately as the provided services are carried out as if the Linux process has become an RTAI task also. Because of that it requires less arguments and returns the pointer to the RTAI task extension that is to be used in related calls.
name | is a unique identifier that is possibly used to ease referencing the RTAI task extension of a peer Linux process. | |
priority | is the priority of the RTAI task extension. | |
stack_size,a | legacy parameter used nomore; kept for portability reasons only. (It was just what is implied by such a name and referred to the stack size used by the buddy in the very first implementation of LXRT). | |
max_msg_size | is a hint for the size of the most lengthy intertask message that is likely to be exchanged. |
It is important to remark that the returned task pointers cannot be used directly, they are for kernel space data, but just passed as arguments when needed.
On failure a NULL value is returned if it was not possible to setup the RTAI task extension or something using the same name was found.
Definition at line 805 of file rtai_lxrt.h.
References rt_task_init_schmod().
Referenced by port_server_fun(), and rt_named_task_init().
Here is the call graph for this function:
static RT_TASK* rt_task_init_schmod | ( | unsigned long | name, | |
int | priority, | |||
int | stack_size, | |||
int | max_msg_size, | |||
int | policy, | |||
int | cpus_allowed | |||
) | [inline, static] |
Definition at line 629 of file rtai_lxrt.h.
References BIDX, LOW, LXRT_TASK_INIT, mlockall, rt_get_name(), rtai_iopl, rtai_lxrt(), SIZARG, and rtai_lxrt_t::v.
Referenced by main(), pthread_setschedparam_np(), rt_task_init(), and rt_thread_init().
Here is the call graph for this function:
static int rt_task_make_periodic | ( | RT_TASK * | task, | |
RTIME | start_time, | |||
RTIME | period | |||
) | [inline, static] |
Definition at line 946 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, MAKE_PERIODIC, rtai_lxrt(), SIZARG, and task.
Referenced by __rtai_wd_init(), main(), and user_srq().
Here is the call graph for this function:
static int rt_task_make_periodic_relative_ns | ( | RT_TASK * | task, | |
RTIME | start_delay, | |||
RTIME | period | |||
) | [inline, static] |
Definition at line 952 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, MAKE_PERIODIC_NS, rtai_lxrt(), SIZARG, and task.
Here is the call graph for this function:
static int rt_task_masked_unblock | ( | RT_TASK * | task, | |
unsigned long | mask | |||
) | [inline, static] |
Definition at line 1391 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, task, and WAKEUP_SLEEPING.
Referenced by __task_delete(), port_server_fun(), rt_signal_wake_up(), and soft_kthread_delete().
Here is the call graph for this function:
static int rt_task_resume | ( | RT_TASK * | task | ) | [inline, static] |
Definition at line 879 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, RESUME, rtai_lxrt(), SIZARG, and task.
Referenced by __rtai_netrpc_init(), __rtai_tasklets_init(), check_slipping_badtask(), kthread_m(), lxrt_exit(), port_server_fun(), rt_delete_tasklet(), rt_exec_linux_syscall(), rt_exec_tasklet(), rt_ptimer_delete(), rt_request_signal(), rt_request_signal_(), rt_request_signal_mq(), RT_task_resume(), rt_timers_manager(), rt_Trigger(), rt_trigger(), signal_suprt_fun_mq(), smpproof_task_delete(), and smpproof_task_suspend().
Here is the call graph for this function:
Definition at line 1367 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SET_RESUME_END, and SIZARG.
Here is the call graph for this function:
static int rt_task_signal_handler | ( | RT_TASK * | task, | |
void(*)(void) | handler | |||
) | [inline, static] |
Definition at line 1070 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIGNAL_HANDLER, SIZARG, and task.
Here is the call graph for this function:
static int rt_task_suspend | ( | RT_TASK * | task | ) | [inline, static] |
Definition at line 855 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, SUSPEND, and task.
Referenced by dummy(), get_kthread(), hard_stub_fun(), kthread_fun(), lxrt_handle_trap(), Proxy_Task(), proxy_task(), rt_exec_linux_syscall(), rt_request_signal(), rt_request_signal_mq(), rt_signal_helper(), RT_task_suspend(), smpproof_task_suspend(), spv(), support_posix_timer(), support_tasklet(), and thread_fun().
Here is the call graph for this function:
static int rt_task_suspend_if | ( | RT_TASK * | task | ) | [inline, static] |
Definition at line 861 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, SUSPEND_IF, and task.
Here is the call graph for this function:
Definition at line 873 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, SUSPEND_TIMED, and task.
Here is the call graph for this function:
Definition at line 867 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, SUSPEND_UNTIL, and task.
Referenced by rt_task_suspend_timed().
Here is the call graph for this function:
static int rt_task_use_fpu | ( | RT_TASK * | task, | |
int | use_fpu_flag | |||
) | [inline, static] |
Definition at line 1076 of file rtai_lxrt.h.
References BIDX, HRT_USE_FPU, rtai_lxrt_t::i, LOW, RT_BUDDY, rtai_lxrt(), SIZARG, task, and TASK_USE_FPU.
Referenced by rt_tasklet_use_fpu().
Here is the call graph for this function:
static int rt_task_wait_period | ( | void | ) | [inline, static] |
Definition at line 958 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and WAIT_PERIOD.
Referenced by main(), spv(), and watchdog().
Here is the call graph for this function:
static int rt_task_yield | ( | void | ) | [inline, static] |
Definition at line 849 of file rtai_lxrt.h.
References BIDX, dummy(), rtai_lxrt_t::i, LOW, rtai_lxrt(), SIZARG, and YIELD.
Here is the call graph for this function:
static long rt_thread_create | ( | void * | fun, | |
void * | args, | |||
int | stack_size | |||
) | [inline, static] |
Definition at line 663 of file rtai_lxrt.h.
References BIDX, IS_HARD, LOW, MAKE_HARD_RT, MAKE_SOFT_RT, RT_THREAD_STACK_MIN, rtai_lxrt(), and SIZARG.
Referenced by __wrap_timer_create(), rt_create_linux_syscall_server(), rt_init_tasklet(), rt_request_signal(), and rt_request_signal_mq().
Here is the call graph for this function:
static int rt_thread_delete | ( | RT_TASK * | task | ) | [inline, static] |
Definition at line 840 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, LOW, LXRT_TASK_DELETE, rt_make_soft_real_time(), rtai_lxrt(), SIZARG, and task.
Referenced by linux_syscall_server_fun().
Here is the call graph for this function:
static RT_TASK* rt_thread_init | ( | unsigned long | name, | |
int | priority, | |||
int | max_msg_size, | |||
int | policy, | |||
int | cpus_allowed | |||
) | [inline, static] |
Definition at line 756 of file rtai_lxrt.h.
References rt_task_init_schmod().
Referenced by signal_suprt_fun(), signal_suprt_fun_mq(), support_posix_timer(), and support_tasklet().
Here is the call graph for this function:
static int rt_thread_join | ( | long | thread | ) | [inline, static] |
Definition at line 686 of file rtai_lxrt.h.
Referenced by __wrap_timer_delete(), and rt_delete_tasklet().
static int rt_usp_signal_handler | ( | void(*)(void) | handler | ) | [inline, static] |
Definition at line 1267 of file rtai_lxrt.h.
References BIDX, rtai_lxrt_t::i, rtai_lxrt(), SIZARG, and USP_SIGHDL.
Here is the call graph for this function:
static int rtai_print_to_screen | ( | const char * | format, | |
... | ||||
) | [inline, static] |
Definition at line 1241 of file rtai_lxrt.h.
References args, BIDX, PRINT_TO_SCREEN, rtai_lxrt(), SIZARG, and VSNPRINTF_BUF_SIZE.
Referenced by dump_malloc_stats(), and handle_lxrt_request().
Here is the call graph for this function:
static RTIME start_ftimer | ( | long | period, | |
long | ftick_freq | |||
) | [inline, static] |
Definition at line 1419 of file rtai_lxrt.h.
References BIDX, REQUEST_RTC, rtai_lxrt_t::rt, rtai_lxrt(), SET_ONESHOT_MODE, SET_PERIODIC_MODE, SIZARG, and START_TIMER.
Here is the call graph for this function:
static void start_rt_apic_timers | ( | struct apic_timer_setup_data * | setup_mode, | |
unsigned int | rcvr_jiffies_cpuid | |||
) | [inline, static] |
Definition at line 1168 of file rtai_lxrt.h.
References BIDX, rtai_lxrt(), SIZARG, and START_RT_APIC_TIMERS.
Here is the call graph for this function:
static RTIME start_rt_timer | ( | int | period | ) | [inline, static] |
Definition at line 982 of file rtai_lxrt.h.
References BIDX, IS_HARD, LOW, MAKE_HARD_RT, MAKE_SOFT_RT, rtai_lxrt_t::rt, rtai_lxrt(), SIZARG, and START_TIMER.
Referenced by __rtai_wd_init(), main(), start_rt_apic_timers(), and user_srq().
Here is the call graph for this function:
static RTIME stop_ftimer | ( | void | ) | [inline, static] |
Definition at line 1431 of file rtai_lxrt.h.
References BIDX, dummy(), RELEASE_RTC, rtai_lxrt_t::rt, rtai_lxrt(), SIZARG, and STOP_TIMER.
Here is the call graph for this function:
static void stop_rt_timer | ( | void | ) | [inline, static] |
Definition at line 998 of file rtai_lxrt.h.
References BIDX, IS_HARD, LOW, MAKE_HARD_RT, MAKE_SOFT_RT, rtai_lxrt(), SIZARG, and STOP_TIMER.
Referenced by __rtai_wd_exit(), lxrt_killall(), main(), rt_set_oneshot_mode(), rt_set_periodic_mode(), and user_srq().
Here is the call graph for this function: