1*1b191cb5SApple OSS Distributions<h2>memory_object_data_unlock</h2> 2*1b191cb5SApple OSS Distributions<hr> 3*1b191cb5SApple OSS Distributions<p> 4*1b191cb5SApple OSS Distributions<strong>Server Interface</strong> - Request that the memory manager change current access permission on the specified memory object's data. 5*1b191cb5SApple OSS Distributions<h3>SYNOPSIS</h3> 6*1b191cb5SApple OSS Distributions<pre> 7*1b191cb5SApple OSS Distributions<strong>kern_return_t memory_object_data_unlock</strong> 8*1b191cb5SApple OSS Distributions <strong>(memory_object_t</strong> <var>memory_object</var>, 9*1b191cb5SApple OSS Distributions <strong>memory_object_control_t</strong> <var>memory_control</var>, 10*1b191cb5SApple OSS Distributions <strong>vm_offset_t</strong> <var>offset</var>, 11*1b191cb5SApple OSS Distributions <strong>vm_size_t</strong> <var>length</var>, 12*1b191cb5SApple OSS Distributions <strong>vm_prot_t</strong> <var>desired_access</var><strong>);</strong> 13*1b191cb5SApple OSS Distributions 14*1b191cb5SApple OSS Distributions 15*1b191cb5SApple OSS Distributions<strong>kern_return_t seqnos_memory_object_data_unlock</strong> 16*1b191cb5SApple OSS Distributions <strong>(memory_object_t</strong> <var>memory_object</var>, 17*1b191cb5SApple OSS Distributions <strong>mach_port_seqno_t</strong> <var>seqno</var>, 18*1b191cb5SApple OSS Distributions <strong>memory_object_control_t</strong> <var>memory_control</var>, 19*1b191cb5SApple OSS Distributions <strong>vm_offset_t</strong> <var>offset</var>, 20*1b191cb5SApple OSS Distributions <strong>vm_size_t</strong> <var>length</var>, 21*1b191cb5SApple OSS Distributions <strong>vm_prot_t</strong> <var>desired_access</var><strong>);</strong> 22*1b191cb5SApple OSS Distributions</pre> 23*1b191cb5SApple OSS Distributions<h3>PARAMETERS</h3> 24*1b191cb5SApple OSS Distributions<dl> 25*1b191cb5SApple OSS Distributions<p> 26*1b191cb5SApple OSS Distributions<dt> <var>memory_object</var> 27*1b191cb5SApple OSS Distributions<dd> 28*1b191cb5SApple OSS Distributions[in abstract-memory-object (receive) right] 29*1b191cb5SApple OSS DistributionsThe abstract memory 30*1b191cb5SApple OSS Distributionsobject port that represents the memory object data. 31*1b191cb5SApple OSS Distributions<p> 32*1b191cb5SApple OSS Distributions<dt> <var>seqno</var> 33*1b191cb5SApple OSS Distributions<dd> 34*1b191cb5SApple OSS Distributions[in scalar] 35*1b191cb5SApple OSS DistributionsThe sequence number of this message relative to the abstract 36*1b191cb5SApple OSS Distributionsmemory object port. 37*1b191cb5SApple OSS Distributions<p> 38*1b191cb5SApple OSS Distributions<dt> <var>memory_control</var> 39*1b191cb5SApple OSS Distributions<dd> 40*1b191cb5SApple OSS Distributions[in memory-cache-control send right] 41*1b191cb5SApple OSS DistributionsThe memory cache control port 42*1b191cb5SApple OSS Distributionsto be used for a response by the memory manager. If the memory 43*1b191cb5SApple OSS Distributionsobject has been supplied to more than one kernel, this parameter 44*1b191cb5SApple OSS Distributionsidentifies the kernel that is making the call. 45*1b191cb5SApple OSS Distributions<p> 46*1b191cb5SApple OSS Distributions<dt> <var>offset</var> 47*1b191cb5SApple OSS Distributions<dd> 48*1b191cb5SApple OSS Distributions[in scalar] 49*1b191cb5SApple OSS DistributionsThe offset within the memory object. 50*1b191cb5SApple OSS Distributions<p> 51*1b191cb5SApple OSS Distributions<dt> <var>length</var> 52*1b191cb5SApple OSS Distributions<dd> 53*1b191cb5SApple OSS Distributions[in scalar] 54*1b191cb5SApple OSS DistributionsThe number of bytes to which the access applies, starting at 55*1b191cb5SApple OSS Distributions<var>offset</var>. The number converts to an integral number of memory object 56*1b191cb5SApple OSS Distributionspages. 57*1b191cb5SApple OSS Distributions<p> 58*1b191cb5SApple OSS Distributions<dt> <var>desired_access</var> 59*1b191cb5SApple OSS Distributions<dd> 60*1b191cb5SApple OSS Distributions[in scalar] 61*1b191cb5SApple OSS DistributionsThe memory access modes requested for the cached data. 62*1b191cb5SApple OSS DistributionsPossible values are obtained by or'ing together the following values: 63*1b191cb5SApple OSS Distributions<dl> 64*1b191cb5SApple OSS Distributions<p> 65*1b191cb5SApple OSS Distributions<dt> <strong>VM_PROT_READ</strong> 66*1b191cb5SApple OSS Distributions<dd> 67*1b191cb5SApple OSS DistributionsAllows read access. 68*1b191cb5SApple OSS Distributions<p> 69*1b191cb5SApple OSS Distributions<dt> <strong>VM_PROT_WRITE</strong> 70*1b191cb5SApple OSS Distributions<dd> 71*1b191cb5SApple OSS DistributionsAllows write access. 72*1b191cb5SApple OSS Distributions<p> 73*1b191cb5SApple OSS Distributions<dt> <strong>VM_PROT_EXECUTE</strong> 74*1b191cb5SApple OSS Distributions<dd> 75*1b191cb5SApple OSS DistributionsAllows execute access. 76*1b191cb5SApple OSS Distributions</dl> 77*1b191cb5SApple OSS Distributions</dl> 78*1b191cb5SApple OSS Distributions<h3>DESCRIPTION</h3> 79*1b191cb5SApple OSS Distributions<p> 80*1b191cb5SApple OSS DistributionsA <strong>memory_object_data_unlock</strong> function is called as the 81*1b191cb5SApple OSS Distributionsresult of a kernel 82*1b191cb5SApple OSS Distributionsmessage requesting the memory manager to permit at least the 83*1b191cb5SApple OSS Distributionsdesired access to the 84*1b191cb5SApple OSS Distributionsspecified data cached by the kernel. The memory manager is expected 85*1b191cb5SApple OSS Distributionsto use the 86*1b191cb5SApple OSS Distributions<strong>memory_object_lock_request</strong> call in response. 87*1b191cb5SApple OSS Distributions<h3>RETURN VALUES</h3> 88*1b191cb5SApple OSS Distributions<p> 89*1b191cb5SApple OSS DistributionsOnly generic errors apply. 90*1b191cb5SApple OSS Distributions<h3>RELATED INFORMATION</h3> 91*1b191cb5SApple OSS Distributions<p> 92*1b191cb5SApple OSS DistributionsFunctions: 93*1b191cb5SApple OSS Distributions<a href="MO_lock_completed.html"><strong>memory_object_lock_completed</strong></a>, 94*1b191cb5SApple OSS Distributions<a href="memory_object_lock_request.html"><strong>memory_object_lock_request</strong></a>, 95*1b191cb5SApple OSS Distributions<a href="memory_object_server.html"><strong>memory_object_server</strong></a>, 96*1b191cb5SApple OSS Distributions<a href="SMO_server.html"><strong>seqnos_memory_object_server</strong></a>. 97