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