]> git.saurik.com Git - apple/xnu.git/blob - osfmk/man/MO_SY_completed.html
xnu-4903.221.2.tar.gz
[apple/xnu.git] / osfmk / man / MO_SY_completed.html
1 <h2>memory_object_synchronize_completed</h2>
2 <hr>
3 <p>
4 <strong>Function</strong> - Inform the kernel that synchronized data has been processed.
5 <h3>SYNOPSIS</h3>
6 <pre>
7 <strong>kern_return_t memory_object_synchronize_completed </strong>
8 <strong>(memory_object_control_t</strong> <var>memory_control</var>,
9 <strong>vm_offset_t</strong> <var>offset</var>,
10 <strong>vm_offset_t</strong> <var>length</var><strong>);</strong>
11 </pre>
12 <h3>PARAMETERS</h3>
13 <dl>
14 <p>
15 <dt> <var>memory_control</var>
16 <dd>
17 [in memory-cache-control send right]
18 The memory cache control port
19 to be used by the memory manager for cache management requests.
20 This port is provided by the kernel in a <strong>memory_object_init</strong> call.
21 <p>
22 <dt> <var>offset</var>
23 <dd>
24 [in scalar]
25 The offset within the memory object, in bytes.
26 <p>
27 <dt> <var>length</var>
28 <dd>
29 [in scalar]
30 The amount of data processed. The number must be an
31 integral number of memory object pages.
32 </dl>
33 <h3>DESCRIPTION</h3>
34 <p>
35 The <strong>memory_object_synchronize_completed</strong> function informs the kernel
36 that previously synchronized data (<strong>memory_object_synchronize</strong>)
37 has been queued or placed on backing storage. This reply causes the issuing
38 client to return from its <strong>vm_msync</strong> call. The offset and length
39 must match that of the corresponding <strong>memory_object_synchronize</strong>
40 call. There may be multiple synchronize requests
41 for a given memory object outstanding but they will not overlap.
42 <h3>RETURN VALUES</h3>
43 <p>
44 Only generic errors apply.
45 <h3>RELATED INFORMATION</h3>
46 <p>
47 Functions:
48 <a href="memory_object_data_return.html"><strong>memory_object_data_return</strong></a>,
49 <a href="memory_object_synchronize.html"><strong>memory_object_synchronize</strong></a>,
50 <a href="vm_msync.html"><strong>vm_msync</strong></a>.