rtapi_task_self(3rtapi)

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).

  1. 12–13

From linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.