Next: Device Open, Up: Device Interface
Beside the usual synchronous interface, an asynchronous interface is provided. For this, the caller has to receive and handle the reply messages separately from the function call.
The function
device_reply_server
is produced by the remote procedure call generator to handle a received message. This function does all necessary argument handling, and actually calls one of the following functions:ds_device_open_reply
,ds_device_read_reply
,ds_device_read_reply_inband
,ds_device_write_reply
andds_device_write_reply_inband
.The in_msg argument is the message that has been received from the kernel. The out_msg is a reply message, but this is not used for this server.
The function returns
TRUE
to indicate that the message in question was applicable to this interface, and that the appropriate routine was called to interpret the message. It returnsFALSE
to indicate that the message did not apply to this interface, and that no other action was taken.