1*a1e26a70SApple OSS Distributions<h2>default_pager_object_create</h2> 2*a1e26a70SApple OSS Distributions<hr> 3*a1e26a70SApple OSS Distributions<p> 4*a1e26a70SApple OSS Distributions<strong>Server Interface</strong> - Initialize a non-persistent memory object suitable for sharing between tasks. 5*a1e26a70SApple OSS Distributions<h3>SYNOPSIS</h3> 6*a1e26a70SApple OSS Distributions<pre> 7*a1e26a70SApple OSS Distributions<strong>kern_return_t default_pager_object_create</strong> 8*a1e26a70SApple OSS Distributions <strong>(mach_port_t</strong> <var>pager</var>, 9*a1e26a70SApple OSS Distributions <strong>memory_object_t</strong> <var>*memory_object</var>, 10*a1e26a70SApple OSS Distributions <strong>vm_size_t</strong> <var>object_size</var><strong>);</strong> 11*a1e26a70SApple OSS Distributions 12*a1e26a70SApple OSS Distributions 13*a1e26a70SApple OSS Distributions<strong>kern_return_t seqnos_default_pager_object_create</strong> 14*a1e26a70SApple OSS Distributions <strong>(mach_port_t</strong> <var>pager</var>, 15*a1e26a70SApple OSS Distributions <strong>mach_port_seqno_t</strong> <var>seqno</var>, 16*a1e26a70SApple OSS Distributions <strong>memory_object_t</strong> <var>*memory_object</var>, 17*a1e26a70SApple OSS Distributions <strong>vm_size_t</strong> <var>object_size</var><strong>);</strong> 18*a1e26a70SApple OSS Distributions</pre> 19*a1e26a70SApple OSS Distributions<h3>PARAMETERS</h3> 20*a1e26a70SApple OSS Distributions<dl> 21*a1e26a70SApple OSS Distributions<p> 22*a1e26a70SApple OSS Distributions<dt> <var>pager</var> 23*a1e26a70SApple OSS Distributions<dd> 24*a1e26a70SApple OSS Distributions[in default-pager (receive) right] 25*a1e26a70SApple OSS DistributionsThe default memory manager service 26*a1e26a70SApple OSS Distributionsport. 27*a1e26a70SApple OSS Distributions<p> 28*a1e26a70SApple OSS Distributions<dt> <var>seqno</var> 29*a1e26a70SApple OSS Distributions<dd> 30*a1e26a70SApple OSS Distributions[in scalar] 31*a1e26a70SApple OSS DistributionsThe sequence number of this message relative to the <var>pager</var> 32*a1e26a70SApple OSS Distributionsport. 33*a1e26a70SApple OSS Distributions<p> 34*a1e26a70SApple OSS Distributions<dt> <var>memory_object</var> 35*a1e26a70SApple OSS Distributions<dd> 36*a1e26a70SApple OSS Distributions[out memory-object send right] 37*a1e26a70SApple OSS DistributionsA memory object port (with full access) for the memory object. 38*a1e26a70SApple OSS Distributions<p> 39*a1e26a70SApple OSS Distributions<dt> <var>object_size</var> 40*a1e26a70SApple OSS Distributions<dd> 41*a1e26a70SApple OSS Distributions[in scalar] 42*a1e26a70SApple OSS DistributionsThe maximum size for the memory object. 43*a1e26a70SApple OSS Distributions</dl> 44*a1e26a70SApple OSS Distributions<h3>DESCRIPTION</h3> 45*a1e26a70SApple OSS Distributions<p> 46*a1e26a70SApple OSS DistributionsA <strong>default_pager_object_create</strong> function is called as 47*a1e26a70SApple OSS Distributionsthe result of a message 48*a1e26a70SApple OSS Distributionsrequesting that the default memory manager create and return a (shared) memory 49*a1e26a70SApple OSS Distributionsobject which is suitable for use with <strong>vm_map</strong>. This memory object has 50*a1e26a70SApple OSS Distributionsthe same properties as does a memory object provided by 51*a1e26a70SApple OSS Distributions<strong>vm_allocate</strong>: its initial 52*a1e26a70SApple OSS Distributionscontents are zero and the backing contents are temporary in that they do not 53*a1e26a70SApple OSS Distributionspersist after the memory object is destroyed. The memory object 54*a1e26a70SApple OSS Distributionsis suitable for use 55*a1e26a70SApple OSS Distributionsas non-permanent shared memory. The kernel does not make this call itself 56*a1e26a70SApple OSS Distributions(which is why it can be a synchronous call); this request is only issued by 57*a1e26a70SApple OSS Distributions(privileged) tasks holding the default memory manager port. 58*a1e26a70SApple OSS DistributionsThis call should be 59*a1e26a70SApple OSS Distributionscontrasted with the kernel's <strong>memory_object_create</strong> message, in which 60*a1e26a70SApple OSS Distributionsthe memory cache object is already created and the identity of the abstract 61*a1e26a70SApple OSS Distributionsmemory object is made known to the default manager. 62*a1e26a70SApple OSS Distributions<h3>RETURN VALUES</h3> 63*a1e26a70SApple OSS Distributions<p> 64*a1e26a70SApple OSS DistributionsOnly generic errors apply. 65*a1e26a70SApple OSS Distributions<h3>RELATED INFORMATION</h3> 66*a1e26a70SApple OSS Distributions<p> 67*a1e26a70SApple OSS DistributionsFunctions: 68*a1e26a70SApple OSS Distributions<a href="vm_map.html"><strong>vm_map</strong></a>, 69*a1e26a70SApple OSS Distributions<a href="HD_memory_manager.html"><strong>host_default_memory_manager</strong></a>, 70*a1e26a70SApple OSS Distributions<a href="memory_object_create.html"><strong>memory_object_create</strong></a>, 71*a1e26a70SApple OSS Distributions<a href="MO_default_server.html"><strong>memory_object_default_server</strong></a>, 72*a1e26a70SApple OSS Distributions<a href="SMO_default_server.html"><strong>seqnos_memory_object_default_server</strong></a>. 73