This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
ACKNOWLEDGMENTS: Pierre Cloutier (pcloutier@poseidoncontrols.com) has suggested the 6 characters names and fixed many inconsistencies within this file.
Include dependency graph for rtai_lxrt.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void * | rt_get_adr (unsigned long name) |
Get an object address by its name. | |
unsigned long | rt_get_name (void *adr) |
Get an object name by its address. | |
RT_TASK * | rt_task_init (int name, int priority, int stack_size, int max_msg_size) |
Create a new real time task in user space. | |
int | rt_change_prio (RT_TASK *task, int priority) |
Change a task priority. | |
void | rt_make_soft_real_time (void) |
Return a hard real time Linux process, or pthread to the standard Linux behavior. | |
int | rt_task_delete (RT_TASK *task) |
int | rt_task_yield (void) |
Yield the current task. | |
int | rt_task_suspend (RT_TASK *task) |
rt_task_suspend suspends execution of the task task. | |
int | rt_task_resume (RT_TASK *task) |
Resume a task. | |
int | rt_task_make_periodic (RT_TASK *task, RTIME start_time, RTIME period) |
Make a task run periodically. | |
int | rt_task_make_periodic_relative_ns (RT_TASK *task, RTIME start_delay, RTIME period) |
Make a task run periodically. | |
void | rt_task_wait_period (void) |
Wait till next period. | |
void | rt_sleep (RTIME delay) |
Delay/suspend execution for a while. | |
void | rt_sleep_until (RTIME time) |
Delay/suspend execution for a while. | |
RTIME | start_rt_timer (int period) |
Start timer. | |
void | stop_rt_timer (void) |
Stop timer. | |
RTIME | rt_get_time (void) |
Get the current time. | |
RTIME | count2nano (RTIME count) |
Convert internal count units to nanoseconds. | |
RTIME | nano2count (RTIME nanos) |
Convert nanoseconds to internal count units. | |
void | rt_busy_sleep (int ns) |
Delay/suspend execution for a while. | |
void | rt_set_periodic_mode (void) |
Set timer mode. | |
void | rt_set_oneshot_mode (void) |
Set timer mode. | |
int | rt_task_signal_handler (RT_TASK *task, void(*handler)(void)) |
Set the signal handler of a task. | |
int | rt_task_use_fpu (RT_TASK *task, int use_fpu_flag) |
int | rt_linux_use_fpu (int use_fpu_flag) |
Set indication of FPU usage. | |
void | rt_preempt_always (int yes_no) |
Enable hard preemption. | |
RTIME | rt_get_time_ns (void) |
Get the current time. | |
RTIME | rt_get_cpu_time_ns (void) |
Get the current time. | |
void | rt_set_runnable_on_cpus (RT_TASK *task, unsigned long cpu_mask) |
Assign CPUs to a task. | |
void | rt_set_runnable_on_cpuid (RT_TASK *task, unsigned int cpuid) |
Assign CPUs to a task. | |
void | start_rt_apic_timers (struct apic_timer_setup_data *setup_mode, unsigned int rcvr_jiffies_cpuid) |
Start local apic timer. | |
void | rt_preempt_always_cpuid (int yes_no, unsigned int cpuid) |
Enable hard preemption. | |
RTIME | count2nano_cpuid (RTIME count, unsigned int cpuid) |
Convert internal count units to nanoseconds. | |
RTIME | nano2count_cpuid (RTIME nanos, unsigned int cpuid) |
Convert nanoseconds to internal count units. | |
RTIME | rt_get_time_cpuid (unsigned int cpuid) |
Get the current time. | |
RTIME | rt_get_time_ns_cpuid (unsigned int cpuid) |
Get the current time. | |
void | rt_make_hard_real_time (void) |
Give a Linux process, or pthread, hard real time execution capabilities allowing full kernel preemption. | |
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. |