xref: /xnu-10063.141.1/osfmk/man/MO_default_server.html (revision d8b80295118ef25ac3a784134bcf95cd8e88109f)
1*d8b80295SApple OSS Distributions<h2>memory_object_default_server</h2>
2*d8b80295SApple OSS Distributions<hr>
3*d8b80295SApple OSS Distributions<p>
4*d8b80295SApple OSS Distributions<strong>Function</strong> - Handle kernel operation request targeted for the default pager.
5*d8b80295SApple OSS Distributions<h3>SYNOPSIS</h3>
6*d8b80295SApple OSS Distributions<pre>
7*d8b80295SApple OSS Distributions<strong>boolean_t	memory_object_default_server</strong>
8*d8b80295SApple OSS Distributions		<strong>(mach_msg_header_t</strong>	<var>request_msg</var>,
9*d8b80295SApple OSS Distributions		<strong>mach_msg_header_t</strong>	<var>reply_ms</var><strong>);</strong>
10*d8b80295SApple OSS Distributions</pre>
11*d8b80295SApple OSS Distributions<h3>PARAMETERS</h3>
12*d8b80295SApple OSS Distributions<dl>
13*d8b80295SApple OSS Distributions<p>
14*d8b80295SApple OSS Distributions<dt> <var>in_msg</var>
15*d8b80295SApple OSS Distributions<dd>
16*d8b80295SApple OSS Distributions[pointer to in structure]
17*d8b80295SApple OSS DistributionsThe memory manager message received from
18*d8b80295SApple OSS Distributionsthe kernel.
19*d8b80295SApple OSS Distributions<p>
20*d8b80295SApple OSS Distributions<dt> <var>out_msg</var>
21*d8b80295SApple OSS Distributions<dd>
22*d8b80295SApple OSS Distributions[out structure]
23*d8b80295SApple OSS DistributionsA reply message.  Note that no kernel messages to a
24*d8b80295SApple OSS Distributionsmemory manager expect a direct reply.
25*d8b80295SApple OSS Distributions</dl>
26*d8b80295SApple OSS Distributions<h3>DESCRIPTION</h3>
27*d8b80295SApple OSS Distributions<p>
28*d8b80295SApple OSS DistributionsThe <strong>memory_object_default_server</strong> function is the MIG generated server
29*d8b80295SApple OSS Distributionshandling function to handle messages from the kernel targeted to the default
30*d8b80295SApple OSS Distributionsmemory manager.  This server function only handles messages unique
31*d8b80295SApple OSS Distributionsto the default
32*d8b80295SApple OSS Distributionsmemory manager.  Messages that are common to all memory managers are
33*d8b80295SApple OSS Distributionshandled by <strong>memory_object_server</strong>.
34*d8b80295SApple OSS Distributions<p>
35*d8b80295SApple OSS DistributionsA \*Vmemory manager\*O
36*d8b80295SApple OSS Distributionsis a server task that responds to specific messages from the
37*d8b80295SApple OSS Distributionskernel in order to handle memory management functions for the kernel.  The
38*d8b80295SApple OSS Distributions<strong>memory_object_default_server</strong> function performs all necessary argument
39*d8b80295SApple OSS Distributionshandling for a kernel message and calls one of the default memory manager
40*d8b80295SApple OSS Distributionsfunctions.
41*d8b80295SApple OSS Distributions<h3>RETURN VALUES</h3>
42*d8b80295SApple OSS Distributions<dl>
43*d8b80295SApple OSS Distributions<p>
44*d8b80295SApple OSS Distributions<dt> <strong>TRUE</strong>
45*d8b80295SApple OSS Distributions<dd>
46*d8b80295SApple OSS DistributionsThe message was handled and the appropriate function was called.
47*d8b80295SApple OSS Distributions<p>
48*d8b80295SApple OSS Distributions<dt> <strong>FALSE</strong>
49*d8b80295SApple OSS Distributions<dd>
50*d8b80295SApple OSS DistributionsThe message did not apply to this memory management interface and
51*d8b80295SApple OSS Distributionsno other action was taken.
52*d8b80295SApple OSS Distributions</dl>
53*d8b80295SApple OSS Distributions<h3>RELATED INFORMATION</h3>
54*d8b80295SApple OSS Distributions<p>
55*d8b80295SApple OSS DistributionsFunctions:
56*d8b80295SApple OSS Distributions<a href="SMO_default_server.html"><strong>seqnos_memory_object_default_server<strong></a>,
57*d8b80295SApple OSS Distributions<a href="memory_object_server.html"><strong>memory_object_server<strong></a>,
58*d8b80295SApple OSS Distributions<a href="memory_object_create.html"><strong>memory_object_create<strong></a>,
59*d8b80295SApple OSS Distributions<a href="MO_data_initialize.html"><strong>memory_object_data_initialize<strong></a>,
60*d8b80295SApple OSS Distributions<a href="DP_object_create.html"><strong>default_pager_object_create<strong></a>,
61*d8b80295SApple OSS Distributions<a href="default_pager_info.html"><strong>default_pager_info<strong></a>.
62*d8b80295SApple OSS Distributions
63