Xenomai API
2.6.5
|
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... | |
unsigned long long a4l_get_time | ( | void | ) |
Get the absolute time 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.
[in,out] | task | Task 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.
[in,out] | task | Task handle |
[in] | name | Optional task name |
[in] | proc | Procedure to be executed by the task |
[in] | arg | Custom argument passed to proc() on entry |
[in] | priority | Priority of the task |
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.
[in] | nsdelay | Amount of time expressed in nanoseconds during which the Analogy task must be sleeping. |