xref: /xnu-10063.121.3/osfmk/man/mach_msg_descriptor.html (revision 2c2f96dc2b9a4408a43d3150ae9c105355ca3daa)
1*2c2f96dcSApple OSS Distributions<h2>mach_msg_descriptor</h2>
2*2c2f96dcSApple OSS Distributions<hr>
3*2c2f96dcSApple OSS Distributions<p>
4*2c2f96dcSApple OSS Distributions<strong>Structure</strong> - Specifies operations that must be performed on a given IPC message element.
5*2c2f96dcSApple OSS Distributions<h3>SYNOPSIS</h3>
6*2c2f96dcSApple OSS Distributions<pre>
7*2c2f96dcSApple OSS Distributions<strong>typedef struct</strong>
8*2c2f96dcSApple OSS Distributions<strong>{</strong>
9*2c2f96dcSApple OSS Distributions       <strong>void*</strong>                             <var>pad1</var><strong>;</strong>
10*2c2f96dcSApple OSS Distributions       <strong>mach_msg_size_t</strong>                   <var>pad2</var><strong>;</strong>
11*2c2f96dcSApple OSS Distributions       <strong>unsigned int</strong>                      <var>pad3</var><strong> : 24;</strong>
12*2c2f96dcSApple OSS Distributions       <strong>mach_msg_descriptor_type_t</strong>        <var>type</var><strong> : 8;</strong>
13*2c2f96dcSApple OSS Distributions<strong>} mach_msg_type_descriptor_t;</strong>
14*2c2f96dcSApple OSS Distributions
15*2c2f96dcSApple OSS Distributions<strong>typedef struct</strong>
16*2c2f96dcSApple OSS Distributions<strong>{</strong>
17*2c2f96dcSApple OSS Distributions       <strong>mach_port_t</strong>                       <var>name</var><strong>;</strong>
18*2c2f96dcSApple OSS Distributions       <strong>mach_msg_size_t</strong>                   <var>pad1</var><strong>;</strong>
19*2c2f96dcSApple OSS Distributions       <strong>unsigned int</strong>                      <var>pad2</var><strong> : 16;</strong>
20*2c2f96dcSApple OSS Distributions       <strong>mach_msg_type_name_t</strong>       <var>disposition</var><strong> : 8;</strong>
21*2c2f96dcSApple OSS Distributions       <strong>mach_msg_descriptor_type_t</strong>        <var>type</var><strong> : 8;</strong>
22*2c2f96dcSApple OSS Distributions<strong>} mach_msg_port_descriptor_t;</strong>
23*2c2f96dcSApple OSS Distributions
24*2c2f96dcSApple OSS Distributions<strong>typedef struct</strong>
25*2c2f96dcSApple OSS Distributions<strong>{</strong>
26*2c2f96dcSApple OSS Distributions       <strong>void*</strong>                          <var>address</var><strong>;</strong>
27*2c2f96dcSApple OSS Distributions       <strong>mach_msg_size_t</strong>                   <var>size</var><strong>;</strong>
28*2c2f96dcSApple OSS Distributions       <strong>boolean_t</strong>                   <var>deallocate</var><strong> : 8;</strong>
29*2c2f96dcSApple OSS Distributions       <strong>mach_msg_copy_options_t</strong>           <var>copy</var><strong> : 8;</strong>
30*2c2f96dcSApple OSS Distributions       <strong>unsigned int</strong>                      <var>pad1</var><strong> : 8;</strong>
31*2c2f96dcSApple OSS Distributions       <strong>mach_msg_descriptor_type_t</strong>        <var>type</var><strong> : 8;</strong>
32*2c2f96dcSApple OSS Distributions<strong>} mach_msg_ool_descriptor_t;</strong>
33*2c2f96dcSApple OSS Distributions
34*2c2f96dcSApple OSS Distributions<strong>typedef struct</strong>
35*2c2f96dcSApple OSS Distributions<strong>{</strong>
36*2c2f96dcSApple OSS Distributions       <strong>void*</strong>                           <var>address</var><strong>;</strong>
37*2c2f96dcSApple OSS Distributions       <strong>mach_msg_size_t</strong>                   <var>count</var><strong>;</strong>
38*2c2f96dcSApple OSS Distributions       <strong>boolean_t</strong>                    <var>deallocate</var><strong> : 8;</strong>
39*2c2f96dcSApple OSS Distributions       <strong>mach_msg_copy_options_t</strong>            <var>copy</var><strong> : 8;</strong>
40*2c2f96dcSApple OSS Distributions       <strong>mach_msg_type_name_t</strong>        <var>disposition</var><strong> : 8;</strong>
41*2c2f96dcSApple OSS Distributions       <strong>mach_msg_descriptor_type_t</strong>         <var>type</var><strong> : 8;</strong>
42*2c2f96dcSApple OSS Distributions<strong>} mach_msg_ool_ports_descriptor_t;</strong>
43*2c2f96dcSApple OSS Distributions
44*2c2f96dcSApple OSS Distributions<strong>typedef union</strong>
45*2c2f96dcSApple OSS Distributions<strong>{</strong>
46*2c2f96dcSApple OSS Distributions       <strong>mach_msg_port_descriptor_t</strong>             <var>port</var><strong>;</strong>
47*2c2f96dcSApple OSS Distributions       <strong>mach_msg_ool_descriptor_t</strong>       <var>out_of_line</var><strong>;</strong>
48*2c2f96dcSApple OSS Distributions       <strong>mach_msg_ool_ports_descriptor_t</strong>   <var>ool_ports</var><strong>;</strong>
49*2c2f96dcSApple OSS Distributions       <strong>mach_msg_type_descriptor_t</strong>             <var>type</var><strong>;</strong>
50*2c2f96dcSApple OSS Distributions<strong>} mach_msg_descriptor_t;</strong>
51*2c2f96dcSApple OSS Distributions</pre>
52*2c2f96dcSApple OSS Distributions<h3>FIELDS</h3>
53*2c2f96dcSApple OSS Distributions<dl>
54*2c2f96dcSApple OSS Distributions<dt> <var>name</var>
55*2c2f96dcSApple OSS Distributions<dd>
56*2c2f96dcSApple OSS DistributionsFor single port descriptors, the name of the port whose right is being
57*2c2f96dcSApple OSS Distributionssent.
58*2c2f96dcSApple OSS Distributions     <p>
59*2c2f96dcSApple OSS Distributions<dt> <var>disposition</var>
60*2c2f96dcSApple OSS Distributions<dd>
61*2c2f96dcSApple OSS DistributionsFor single port or out-of-line port array descriptors, the IPC processing
62*2c2f96dcSApple OSS Distributionsto be done for the rights for the named ports.
63*2c2f96dcSApple OSS Distributions     <p>
64*2c2f96dcSApple OSS Distributions<dt> <var>address</var>
65*2c2f96dcSApple OSS Distributions<dd>
66*2c2f96dcSApple OSS DistributionsFor out-of-line data or port array descriptors, the address of the
67*2c2f96dcSApple OSS Distributionsout-of-line data or port (name) array.
68*2c2f96dcSApple OSS Distributions     <p>
69*2c2f96dcSApple OSS Distributions<dt> <var>size</var>
70*2c2f96dcSApple OSS Distributions<dd>
71*2c2f96dcSApple OSS DistributionsFor out-of-line data descriptors, the size of the out-of-line region, in
72*2c2f96dcSApple OSS Distributionsbytes.
73*2c2f96dcSApple OSS Distributions     <p>
74*2c2f96dcSApple OSS Distributions<dt> <var>deallocate</var>
75*2c2f96dcSApple OSS Distributions<dd>
76*2c2f96dcSApple OSS DistributionsFor out-of-line data descriptors, true if the set of pages containing the
77*2c2f96dcSApple OSS Distributionsarray should be de-allocated when the message is sent.
78*2c2f96dcSApple OSS Distributions     <p>
79*2c2f96dcSApple OSS Distributions<dt> <var>copy</var>
80*2c2f96dcSApple OSS Distributions<dd>
81*2c2f96dcSApple OSS DistributionsFor out-of-line descriptors, a description of the method by which the
82*2c2f96dcSApple OSS Distributionsdata should be copied.
83*2c2f96dcSApple OSS Distributions     <p>
84*2c2f96dcSApple OSS Distributions<dt> <var>count</var>
85*2c2f96dcSApple OSS Distributions<dd>
86*2c2f96dcSApple OSS DistributionsFor out-of-line port array descriptors, the number of port names in the
87*2c2f96dcSApple OSS Distributionsarray.
88*2c2f96dcSApple OSS Distributions     <p>
89*2c2f96dcSApple OSS Distributions<dt> <var>type</var>
90*2c2f96dcSApple OSS Distributions<dd>
91*2c2f96dcSApple OSS DistributionsFor any type of descriptor, the type of descriptor.
92*2c2f96dcSApple OSS Distributions     <p>
93*2c2f96dcSApple OSS Distributions<dt> <var>port</var>
94*2c2f96dcSApple OSS Distributions<dd>
95*2c2f96dcSApple OSS DistributionsA descriptor that describes a single port right.
96*2c2f96dcSApple OSS Distributions     <p>
97*2c2f96dcSApple OSS Distributions<dt> <var>out_of_line</var>
98*2c2f96dcSApple OSS Distributions<dd>
99*2c2f96dcSApple OSS DistributionsA descriptor that describes an out-of-line data array.
100*2c2f96dcSApple OSS Distributions     <p>
101*2c2f96dcSApple OSS Distributions<dt> <var>ool_ports</var>
102*2c2f96dcSApple OSS Distributions<dd>
103*2c2f96dcSApple OSS DistributionsA descriptor that describes an out-of-line port array.
104*2c2f96dcSApple OSS Distributions</dl>
105*2c2f96dcSApple OSS Distributions<h3>DESCRIPTION</h3>
106*2c2f96dcSApple OSS Distributions<p>
107*2c2f96dcSApple OSS DistributionsA <strong>mach_msg_descriptor</strong> structure describes the processing
108*2c2f96dcSApple OSS Distributionsto be performed
109*2c2f96dcSApple OSS Distributionsfor an element of kernel-processed data in a Mach message.
110*2c2f96dcSApple OSS Distributions<h3>RELATED INFORMATION</h3>
111*2c2f96dcSApple OSS Distributions<p>
112*2c2f96dcSApple OSS DistributionsFunctions:
113*2c2f96dcSApple OSS Distributions<a href="mach_msg.html"><strong>mach_msg</strong></a>.
114*2c2f96dcSApple OSS Distributions<p>
115*2c2f96dcSApple OSS DistributionsData Structures:
116*2c2f96dcSApple OSS Distributions<a href="mach_msg_header.html"><strong>mach_msg_header</strong></a>.
117