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