LinuxCNC Documentation

SYNTAX

int rtapi_is_kernelspace();
int rtapi_is_realtime();

BESCHREIBUNG

rtapi_is_kernelspace() returns nonzero when rtapi modules run in kernel space (e.g., under RTAI) and zero when they run in userspace (e.g., under uspace).

rtapi_is_realtime() returns nonzero when capable of running with realtime guarantees. For rtai, this always returns nonzero (but actually loading realtime modules will fail if not running under the appropriate kernel). For uspace, this returns nonzero when the running kernel indicates it is capable of realtime performance. If rtapi_app is not setuid root, this returns nonzero even though rtapi_app will not be able to obtain realtime scheduling or hardware access, so e.g., attempting to loadrt a hardware driver will fail.

REALTIME CONSIDERATIONS

Kann vom Nicht-Echtzeit- oder vom Echtzeit-Setup-Code aufgerufen werden. rtapi_is_realtime() kann Dateisystem-E/A (engl. I/O) durchführen.

RETURN VALUE

Null für falsch, ungleich Null für wahr.