X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/man/memory_object_destroy.html diff --git a/osfmk/man/memory_object_destroy.html b/osfmk/man/memory_object_destroy.html index 8352832ee..b865a7a40 100755 --- a/osfmk/man/memory_object_destroy.html +++ b/osfmk/man/memory_object_destroy.html @@ -1 +1,53 @@ -
Function - Shut down a memory object.
kern_return_t memory_object_destroy (memory_object_control_t memory_control, kern_return_t reason);
The memory_object_destroy function tells the kernel to shut down the specified memory object. As a result of this call, the kernel no longer supports paging activity or any memory object calls on the memory object. The kernel issues a memory_object_terminate call to pass to the memory manager all rights to the memory object port and the memory control port.
To ensure that any modified cached data is returned before the object is terminated, the memory manager should call memory_object_lock_request with should_flush set and a lock value of VM_PROT_WRITE before it makes the memory_object_destroy call.
The reason code is currently ignored by the kernel.
Only generic errors apply.
Functions: memory_object_lock_request, memory_object_terminate. \ No newline at end of file +
+Function - Shut down a memory object. +
+kern_return_t memory_object_destroy + (memory_object_control_t memory_control, + kern_return_t reason); ++
+
+
+The memory_object_destroy function tells the kernel to shut down the +specified memory object. As a result of this call, the kernel +no longer supports +paging activity or any memory object calls on the memory object. +The kernel issues +a memory_object_terminate call to pass to the memory +manager all rights to +the memory object port and the memory control port. +
+To ensure that any modified cached data is returned before the object is +terminated, the memory manager should call memory_object_lock_request +with +should_flush set and a +lock value of VM_PROT_WRITE before it makes the +memory_object_destroy call. +
+The reason code is currently ignored by the kernel. +
+Only generic errors apply. +
+Functions: +memory_object_lock_request, +memory_object_terminate.