]> git.saurik.com Git - apple/xnu.git/blob - osfmk/man/device_reply_server.html
xnu-792.6.76.tar.gz
[apple/xnu.git] / osfmk / man / device_reply_server.html
1 <h2>device_reply_server</h2>
2 <hr>
3 <p>
4 <strong>Function</strong> - Handle incoming data from kernel device driver.
5 <h3>SYNOPSIS</h3>
6 <pre>
7 <strong>boolean_t device_reply_server</strong>
8 <strong>(mach_msg_header_t</strong> <var>request_msg</var>,
9 <strong>mach_msg_header_t</strong> <var>reply_msg</var><strong>);</strong>
10 </pre>
11 <h3>PARAMETERS</h3>
12 <dl>
13 <p>
14 <dt> <var>request_msg</var>
15 <dd>
16 [pointer to in structure]
17 The device driver message received from the
18 kernel.
19 <p>
20 <dt> <var>reply_msg</var>
21 <dd>
22 [out structure]
23 A reply message. No messages from a device driver
24 expect a direct reply, so this field is not used.
25 </dl>
26 <h3>DESCRIPTION</h3>
27 <p>
28 The <strong>device_reply_server</strong> function is the MIG generated server handling
29 function to handle messages from kernel device drivers. Such
30 messages were sent in response to the various
31 <strong>device_</strong>...<strong>_request</strong>...
32 calls. It is assumed when using
33 those calls that some task is listening for reply messages on the port named as a
34 reply port to those calls. The <strong>device_reply_server</strong>
35 function performs all
36 necessary argument handling for a kernel message and calls one
37 of the device server functions to interpret the message.
38 <h3>RETURN VALUES</h3>
39 <dl>
40 <p>
41 <dt> <strong>TRUE</strong>
42 <dd>
43 The message was handled and the appropriate function was called.
44 <p>
45 <dt> <strong>FALSE</strong>
46 <dd>
47 The message did not apply to this device handler interface and no other
48 action was taken.
49 </dl>
50 <h3>RELATED INFORMATION</h3>
51 <p>
52 Functions:
53 <a href="device_open.html"><strong>ds_device_open_reply<strong></a>,
54 <a href="device_write.html"><strong>ds_device_write_reply<strong></a>,
55 <a href="device_write_inband.html"><strong>ds_device_write_reply_inband<strong></a>,
56 <a href="device_read.html"><strong>ds_device_read_reply<strong></a>,
57 <a href="device_read_inband.html"><strong>ds_device_read_reply_inband<strong></a>,
58 <a href="device_read_overwrite.html"><strong>ds_device_read_reply_overwrite<strong></a>.