]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/man/vm_deallocate.html
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / man / vm_deallocate.html
old mode 100755 (executable)
new mode 100644 (file)
index f7e6c3f..894c8f9
@@ -1 +1,67 @@
-<h2>vm_deallocate</h2>\r<hr>\r<p>\r<strong>Function</strong> - Deallocate a region of virtual memory.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t   vm_deallocate</strong>\r                <strong>(vm_task_t</strong>                          <var>target_task</var>,\r                 <strong>vm_address_t</strong>                           <var>address</var>,\r                 <strong>vm_size_t</strong>                                 <var>size</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>target_task</var> \r<dd>\r[in task send right]\rThe port for the task in whose address space the\rregion is to be deallocated.\r<p>\r<dt> <var>address</var> \r<dd>\r[in scalar]\rThe starting address for the region.\r<p>\r<dt> <var>size</var> \r<dd>\r[in scalar]\rThe number of bytes to deallocate.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>vm_deallocate</strong> function deallocates a region of\rvirtual memory in the\rspecified task's address space.\rThe region starts at the beginning of the virtual page containing\r<var>address</var> and ends \rat the end of the virtual page containing <var>address</var>\r+ <var>size</var> - 1.  Because of this \rrounding to virtual page boundaries, the amount of memory deallocated may be \rgreater than <var>size</var>.  Use <strong>host_page_size</strong> \rto find the current virtual page size.\r<p>\r<strong>vm_deallocate</strong> affects only <var>target_task</var>.  Other tasks\rthat have access to the deallocated memory can continue to reference it.\r<h3>NOTES</h3>\r<p>\r<strong>vm_deallocate</strong> can be used to deallocate memory passed\ras out-of-line data in a \rmessage.\r<p>\rThis interface is machine word length specific because of the virtual address\rparameter.\r<h3>RETURN VALUES</h3>\r<dl>\r<p>\r<dt> <strong>KERN_INVALID_ADDRESS</strong>\r<dd>\rThe address is illegal or specifies a non-allocated region.\r</dl>\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="mach_msg.html"><strong>mach_msg</strong></a>,\r<a href="vm_allocate.html"><strong>vm_allocate</strong></a>,\r<a href="vm_map.html"><strong>vm_map</strong></a>,\r<a href="host_page_size.html"><strong>host_page_size</strong></a>.\r
\ No newline at end of file
+<h2>vm_deallocate</h2>
+<hr>
+<p>
+<strong>Function</strong> - Deallocate a region of virtual memory.
+<h3>SYNOPSIS</h3>
+<pre>
+<strong>kern_return_t   vm_deallocate</strong>
+                <strong>(vm_task_t</strong>                          <var>target_task</var>,
+                 <strong>vm_address_t</strong>                           <var>address</var>,
+                 <strong>vm_size_t</strong>                                 <var>size</var><strong>);</strong>
+</pre>
+<h3>PARAMETERS</h3>
+<dl>
+<p>
+<dt> <var>target_task</var> 
+<dd>
+[in task send right]
+The port for the task in whose address space the
+region is to be deallocated.
+<p>
+<dt> <var>address</var> 
+<dd>
+[in scalar]
+The starting address for the region.
+<p>
+<dt> <var>size</var> 
+<dd>
+[in scalar]
+The number of bytes to deallocate.
+</dl>
+<h3>DESCRIPTION</h3>
+<p>
+The <strong>vm_deallocate</strong> function deallocates a region of
+virtual memory in the
+specified task's address space.
+The region starts at the beginning of the virtual page containing
+<var>address</var> and ends 
+at the end of the virtual page containing <var>address</var>
++ <var>size</var> - 1.  Because of this 
+rounding to virtual page boundaries, the amount of memory deallocated may be 
+greater than <var>size</var>.  Use <strong>host_page_size</strong> 
+to find the current virtual page size.
+<p>
+<strong>vm_deallocate</strong> affects only <var>target_task</var>.  Other tasks
+that have access to the deallocated memory can continue to reference it.
+<h3>NOTES</h3>
+<p>
+<strong>vm_deallocate</strong> can be used to deallocate memory passed
+as out-of-line data in a 
+message.
+<p>
+This interface is machine word length specific because of the virtual address
+parameter.
+<h3>RETURN VALUES</h3>
+<dl>
+<p>
+<dt> <strong>KERN_INVALID_ADDRESS</strong>
+<dd>
+The address is illegal or specifies a non-allocated region.
+</dl>
+<h3>RELATED INFORMATION</h3>
+<p>
+Functions:
+<a href="mach_msg.html"><strong>mach_msg</strong></a>,
+<a href="vm_allocate.html"><strong>vm_allocate</strong></a>,
+<a href="vm_map.html"><strong>vm_map</strong></a>,
+<a href="host_page_size.html"><strong>host_page_size</strong></a>.