Provided by: linuxcnc-uspace-dev_2.9.0~pre1+git20230208.f1270d6ed7-1_amd64 bug

NAME

       rtapi_task_self - Retrieve ID of current task

SYNTAX

       void rtapi_task_self()

DESCRIPTION

       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.

SEE ALSO

       rtapi_task_new(3rtapi)