Xenomai  3.0.8
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 cobalt-core-tags "secondary-only"
Specific return values: none

Close
Tags cobalt-core-tags "secondary-only"
Specific return values: none

IOCTL
Tags cobalt-core-tags "task-unrestricted". See SERIOCTLs "below"
Specific return values: see below

Read
Tags cobalt-core-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 cobalt-core-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)