Skip to Content
OS X and iOS Kernel Programming
book

OS X and iOS Kernel Programming

by Ole Henry Halvorsen, Douglas Clarke
December 2011
Intermediate to advanced
485 pages
15h 47m
English
Apress
Content preview from OS X and iOS Kernel Programming

Serial Data Transfer

The remaining methods to be implemented from the IOSerialDriverSync interface are the data transfer methods. The serial driver will be provided with data to be transmitted over the serial port through the method enqueueData(), and the data that the driver has received from the serial port is provided to clients through the dequeueData() method.

When a user space process writes data to a serial port, it is first handled in the kernel by the IOSerialBSDClient class, which is responsible for passing the data on to the serial port driver. The IOSerialBSDClient will provide the data to the serial driver by calling its enqueueData() method, which has the following signature:

IOReturn  enqueueData(UInt8 *buffer, UInt32 size, UInt32 ...
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.
Start your free trial

You might also like

Linux Kernel Programming - Second Edition

Linux Kernel Programming - Second Edition

Kaiwan N. Billimoria
Linux Kernel Programming

Linux Kernel Programming

Kaiwan N. Billimoria

Publisher Resources

ISBN: 9781430235361Purchase book