Xenomai API  2.6.5
Misc services
Collaboration diagram for Misc services:

Functions

int a4l_task_init (a4l_task_t *task, const char *name, a4l_task_proc_t proc, void *arg, int priority)
 Intialise and start an Analogy task. More...
 
void a4l_task_destroy (a4l_task_t *task)
 Destroy an Analogy task. More...
 
int a4l_task_sleep (unsigned long long nsdelay)
 Make the current Analogy task passively wait a defined delay. More...
 
unsigned long long a4l_get_time (void)
 Get the absolute time in nanoseconds. More...
 

Detailed Description

Function Documentation

unsigned long long a4l_get_time ( void  )

Get the absolute time in nanoseconds.

Returns
the absolute time expressed in nanoseconds
void a4l_task_destroy ( a4l_task_t *  task)

Destroy an Analogy task.

This function belongs to a minimal set of task management services (with a4l_task_init() and a4l_task_sleep()). Such features are not critical for Analogy driver development.

Parameters
[in,out]taskTask handle
int a4l_task_init ( a4l_task_t *  task,
const char *  name,
a4l_task_proc_t  proc,
void *  arg,
int  priority 
)

Intialise and start an Analogy task.

This function belongs to a minimal set of task management services (with a4l_task_destroy() and a4l_task_sleep()). Such features are not critical for Analogy driver development.

Parameters
[in,out]taskTask handle
[in]nameOptional task name
[in]procProcedure to be executed by the task
[in]argCustom argument passed to proc() on entry
[in]priorityPriority of the task
Returns
0 on success, otherwise negative error code
int a4l_task_sleep ( unsigned long long  nsdelay)

Make the current Analogy task passively wait a defined delay.

This function belongs to a minimal set of task management services (with a4l_task_init() and a4l_task_destroy()). Such features are not critical for Analogy driver development.

Parameters
[in]nsdelayAmount of time expressed in nanoseconds during which the Analogy task must be sleeping.
Returns
0 on success, otherwise negative error code