osfmk/man/device_reply_server.html
Function - Handle incoming data from kernel device driver.
**boolean\_t device\_reply\_server**** (mach\_msg\_header\_t **request\_msg,** mach\_msg\_header\_t **reply\_msg** );**
request_msg[pointer to in structure] The device driver message received from the kernel.
reply_msg[out structure] A reply message. No messages from a device driver expect a direct reply, so this field is not used.
The device_reply_server function is the MIG generated server handling function to handle messages from kernel device drivers. Such messages were sent in response to the various device_... _request... calls. It is assumed when using those calls that some task is listening for reply messages on the port named as a reply port to those calls. The device_reply_server function performs all necessary argument handling for a kernel message and calls one of the device server functions to interpret the message.
TRUE The message was handled and the appropriate function was called.
FALSE The message did not apply to this device handler interface and no other action was taken.
Functions: ds_device_open_reply, ds_device_write_reply, ds_device_write_reply_inband, ds_device_read_reply, ds_device_read_reply_inband, ds_device_read_reply_overwrite.