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