1*e13b1fa5SApple OSS Distributions<h2>memory_object_terminate</h2> 2*e13b1fa5SApple OSS Distributions<hr> 3*e13b1fa5SApple OSS Distributions<p> 4*e13b1fa5SApple OSS Distributions<strong>Server Interface</strong> - Relinquish access to a memory object. 5*e13b1fa5SApple OSS Distributions<h3>SYNOPSIS</h3> 6*e13b1fa5SApple OSS Distributions<pre> 7*e13b1fa5SApple OSS Distributions<strong>kern_return_t memory_object_terminate</strong> 8*e13b1fa5SApple OSS Distributions <strong>(memory_object_t</strong> <var>memory_object</var>, 9*e13b1fa5SApple OSS Distributions <strong>memory_object_control_t</strong> <var>memory_control</var><strong>);</strong> 10*e13b1fa5SApple OSS Distributions 11*e13b1fa5SApple OSS Distributions 12*e13b1fa5SApple OSS Distributions 13*e13b1fa5SApple OSS Distributions<strong>kern_return_t seqnos_memory_object_terminate</strong> 14*e13b1fa5SApple OSS Distributions <strong>(memory_object_t</strong> <var>memory_object</var>, 15*e13b1fa5SApple OSS Distributions <strong>mach_port_seqno_t</strong> <var>seqno</var>, 16*e13b1fa5SApple OSS Distributions <strong>memory_object_control_t</strong> <var>memory_control</var><strong>);</strong> 17*e13b1fa5SApple OSS Distributions</pre> 18*e13b1fa5SApple OSS Distributions<h3>PARAMETERS</h3> 19*e13b1fa5SApple OSS Distributions<dl> 20*e13b1fa5SApple OSS Distributions<p> 21*e13b1fa5SApple OSS Distributions<dt> <var>memory_object</var> 22*e13b1fa5SApple OSS Distributions<dd> 23*e13b1fa5SApple OSS Distributions[in abstract-memory-object (receive) right] 24*e13b1fa5SApple OSS DistributionsThe abstract memory 25*e13b1fa5SApple OSS Distributionsobject port that represents the memory object data. 26*e13b1fa5SApple OSS Distributions<p> 27*e13b1fa5SApple OSS Distributions<dt> <var>seqno</var> 28*e13b1fa5SApple OSS Distributions<dd> 29*e13b1fa5SApple OSS Distributions[in scalar] 30*e13b1fa5SApple OSS DistributionsThe sequence number of this message relative to the abstract 31*e13b1fa5SApple OSS Distributionsmemory object port. 32*e13b1fa5SApple OSS Distributions<p> 33*e13b1fa5SApple OSS Distributions<dt> <var>memory_control</var> 34*e13b1fa5SApple OSS Distributions<dd> 35*e13b1fa5SApple OSS Distributions[in memory-cache-control receive right] 36*e13b1fa5SApple OSS DistributionsThe memory cache control 37*e13b1fa5SApple OSS Distributionsport to be used for a response by the memory manager. If the memory 38*e13b1fa5SApple OSS Distributionsobject has been supplied to more than one kernel, this parameter 39*e13b1fa5SApple OSS Distributionsidentifies the kernel that is making the call. 40*e13b1fa5SApple OSS Distributions</dl> 41*e13b1fa5SApple OSS Distributions<h3>DESCRIPTION</h3> 42*e13b1fa5SApple OSS Distributions<p> 43*e13b1fa5SApple OSS DistributionsA <strong>memory_object_terminate</strong> function is called as the 44*e13b1fa5SApple OSS Distributionsresult of a kernel 45*e13b1fa5SApple OSS Distributionsmessage notifying a memory manager that no mappings of the specified memory 46*e13b1fa5SApple OSS Distributionsobject remain. The kernel makes this call to allow the memory 47*e13b1fa5SApple OSS Distributionsmanager to clean 48*e13b1fa5SApple OSS Distributionsup data structures associated with the deallocated mappings. 49*e13b1fa5SApple OSS DistributionsThe call provides 50*e13b1fa5SApple OSS Distributionsreceive rights to the memory cache control port so that the memory manager 51*e13b1fa5SApple OSS Distributionscan retrieve any messages it sent into this port before knowing the memory 52*e13b1fa5SApple OSS Distributionsobject was being terminated and then destroy the port. The kernel also 53*e13b1fa5SApple OSS Distributionsrelinquishes its rights for all memory object ports. 54*e13b1fa5SApple OSS Distributions<p> 55*e13b1fa5SApple OSS DistributionsThe kernel terminates a memory object only after all address space mappings of 56*e13b1fa5SApple OSS Distributionsthe object have been deallocated, or upon explicit request by the memory 57*e13b1fa5SApple OSS Distributionsmanager. 58*e13b1fa5SApple OSS Distributions<h3>RETURN VALUES</h3> 59*e13b1fa5SApple OSS Distributions<p> 60*e13b1fa5SApple OSS DistributionsOnly generic errors apply. 61*e13b1fa5SApple OSS Distributions<h3>RELATED INFORMATION</h3> 62*e13b1fa5SApple OSS Distributions<p> 63*e13b1fa5SApple OSS DistributionsFunctions: 64*e13b1fa5SApple OSS Distributions<a href="memory_object_destroy.html"><strong>memory_object_destroy</strong></a>, 65*e13b1fa5SApple OSS Distributions<a href="mach_port_deallocate.html"><strong>mach_port_deallocate</strong></a>, 66*e13b1fa5SApple OSS Distributions<a href="memory_object_server.html"><strong>memory_object_server</strong></a>, 67*e13b1fa5SApple OSS Distributions<a href="SMO_server.html"><strong>seqnos_memory_object_server</strong></a>. 68