Xenomai  3.0.5
Serial Devices

This is the common interface a RTDM-compliant serial device has to provide. More...

Collaboration diagram for Serial Devices:

This is the common interface a RTDM-compliant serial device has to provide.

Feel free to comment on this profile via the Xenomai mailing list xenom.nosp@m.ai@x.nosp@m.enoma.nosp@m.i.or.nosp@m.g or directly to the author jan.k.nosp@m.iszk.nosp@m.a@web.nosp@m..de.

Profile Revision: 3

Device Characteristics
Device Flags: RTDM_NAMED_DEVICE, RTDM_EXCLUSIVE

Device Class: RTDM_CLASS_SERIAL

Device Name: "/dev/rtdm/rtser<N>", N >= 0

Supported Operations
Open
Tags
secondary-only Specific return values: none

Close
Tags
secondary-only Specific return values: none

IOCTL
Tags
task-unrestricted. See below
Specific return values: see below

Read
Tags
mode-unrestricted Specific return values:
  • -ETIMEDOUT
  • -EINTR (interrupted explicitly or by signal)
  • -EAGAIN (no data available in non-blocking mode)
  • -EBADF (device has been closed while reading)
  • -EIO (hardware error or broken bit stream)

Write
Tags
mode-unrestricted Specific return values:
  • -ETIMEDOUT
  • -EINTR (interrupted explicitly or by signal)
  • -EAGAIN (no data written in non-blocking mode)
  • -EBADF (device has been closed while writing)