logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rtapi_task_self - Retrieve ID of current task

Description

rtapi_task_self  retrieves  the  current  task, or -EINVAL if not in a realtime task (e.g., in startup or
       shutdown code).

Name

       rtapi_task_self - Retrieve ID of current task

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)

LinuxCNC Documentation                             2015-04-18                            rtapi_task_self(3rtapi)

Syntax


       void rtapi_task_self()

See Also