rtapi_init(3rtapi)

rtapi_init3rtapi

Sets up rtapi

Usage

int rtapi_init(const char *modname)

Arguments

modname

The name of this rtapi module

Overview

rtapi_init sets up the RTAPI. It must be called by any module that intends to use the API, before any other RTAPI calls.

modname can optionally point to a string that identifies the module. The string will be truncated at RTAPI_NAME_LEN characters. If modname is NULL, the system will assign a name.

Realtime considerations

Call only from within non-realtime or realtime init/cleanup code, not from relatime tasks.

Return value

On success, returns a positive integer module ID, which is used for subsequent calls to rtapi_xxx_new, rtapi_xxx_delete, and rtapi_exit. On failure, returns an RTAPI error code.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

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