---
name: "rtapi_device"
section: "3rtapi"
platform: "linux"
package: "linuxcnc-uspace-dev"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtapi_device"
---

# rtapi\_device(3rtapi)

RTAPI wrappers for linux kernel functionality

## NAME

rtapi\_device.h - RTAPI wrappers for linux kernel functionality

## SYNTAX

\#include \<rtapi\_device.h\>

struct rtapi\_device;

int rtapi\_dev\_set\_name(struct rtapi\_device \*dev, const char \*name, ...);

int rtapi\_device\_register(struct rtapi\_device \*dev);

int rtapi\_device\_unregister(struct rtapi\_device \*dev);

## DESCRIPTION

In kernel space, each rtapi\_xxx or RTAPI\_XXX identifier is mapped to the underlying kernel functionality, if available.

In userspace, or in kernels where the underlying functionality is not provided by a kernel, generally another implementation--possibly with reduced functionality--is provided.  (For example, the userspace implementation for rtapi\_device\_register always succeeds)

## REALTIME CONSIDERATIONS

Typically, these functions may be called from realtime init/cleanup code.

## RETURN VALUE

As in Linux.

## SEE ALSO
