---
name: "rtapi_byteorder"
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_byteorder"
---

# rtapi\_byteorder(3rtapi)

RTAPI wrappers for linux kernel functionality

## NAME

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

## SYNTAX

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

- RTAPI\_BIG\_ENDIAN

  Defined to 1 if the platform is big-endian, 0 otherwise

- RTAPI\_LITTLE\_ENDIAN

  Defined to 1 if the platform is little-endian, 0 otherwise

- RTAPI\_FLOAT\_BIG\_ENDIAN

  Defined to 1 if the platform double-precision value is big-endian, 0 otherwise.

## 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\_byteorder\_register always succeeds)

## REALTIME CONSIDERATIONS

May be used at any time.

## RETURN VALUE

As in Linux.

## SEE ALSO
