rtapi_task_self3rtapi
Retrieve id of current task
Usage
void rtapi_task_self()
Overview
rtapi_task_self retrieves the current task, or -EINVAL if not in a realtime task (e.g., in startup or shutdown code).
Realtime considerations
May be called from init/cleanup code, and from within realtime tasks.
Return value
The task number previously returned by rtapi_task_new or -EINVAL.
Releases
Unchanged in 2 releases since Debian 12 (Bookworm).