A serial port provides a simple means of low-bandwidth data transfer between devices. Although you can no longer find an RS-232 or RS-422 serial port on modern Macs, many USB devices present themselves as a serial port, so support for serial port drivers is still part of the Mac OS X operating system.
A user space application accesses a serial port through a device file in the /dev directory, as is standard for the UNIX environment.
A serial port driver is implemented in the I/O Kit by implementing a subclass of the IOSerialDriverSync interface. This interface contains methods for opening and closing the serial port, configuring the port, and reading and writing data.
The I/O Kit provides a class known as IOSerialBSDClient that publishes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.