1 <h2>memory_object_lock_completed
</h2>
4 <strong>Server Interface
</strong> - Report to memory manager that a previous consistency control request has been handled.
7 <strong>kern_return_t memory_object_lock_completed
</strong>
8 <strong>(memory_object_t
</strong> <var>reply_port
</var>,
9 <strong>memory_object_control_t
</strong> <var>memory_control
</var>,
10 <strong>vm_offset_t
</strong> <var>offset
</var>,
11 <strong>vm_size_t
</strong> <var>length
</var><strong>);
</strong>
14 <strong>kern_return_t seqnos_memory_object_lock_completed
</strong>
15 <strong>(memory_object_t
</strong> <var>reply_port
</var>,
16 <strong>mach_port_seqno_t
</strong> <var>seqno
</var>,
17 <strong>memory_object_control_t
</strong> <var>memory_control
</var>,
18 <strong>vm_offset_t
</strong> <var>offset
</var>,
19 <strong>vm_size_t
</strong> <var>length
</var><strong>);
</strong>
24 <dt> <var>reply_port
</var>
26 [in reply (receive) right]
27 The port supplied in the corresponding
28 <strong>memory_object_lock_request
</strong> call.
33 The sequence number of this message relative to the port
34 named in the
<strong>memory_object_lock_completed
</strong> message.
36 <dt> <var>memory_control
</var>
38 [in memory-cache-control send right]
39 The memory cache control port
40 to be used for a response by the memory manager. If the memory
41 object has been supplied to more than one kernel, this parameter
42 identifies the kernel that is making the call.
44 <dt> <var>offset
</var>
47 The offset within the memory object.
49 <dt> <var>length
</var>
52 The number of bytes to which the call refers, starting at
53 <var>offset
</var>. The number converts to an integral number of memory object
58 A
<strong>memory_object_lock_completed
</strong> function is called as
59 the result of a kernel
60 message confirming the kernel's action in response to a
61 <strong>memory_object_lock_request
</strong> call from the memory manager.
62 The memory manager can use the
<strong>memory_object_lock_request
</strong> call to:
65 Alter access restrictions specified in the
<strong>memory_object_data_supply
</strong>
66 call or a previous
<strong>memory_object_lock_request
</strong> call.
69 Write back modifications made in memory.
72 Invalidate its cached data.
75 When the kernel completes the requested actions, it calls
76 <strong>memory_object_lock_completed
</strong> (asynchronously) using
77 the port explicitly provided in the
78 <strong>memory_object_lock_request
</strong> call. Because the memory manager cannot
79 know which pages have been modified, or even which pages remain in the
80 cache, it cannot know how many pages will be written back in response to a
81 <strong>memory_object_lock_request
</strong> call. Receiving the
82 <strong>memory_object_lock_completed
</strong> call is the only sure
83 means of detecting completion. The completion call
84 includes the offset and length values from the consistency request
86 it from other consistency requests.
87 <h3>RETURN VALUES
</h3>
89 Only generic errors apply.
90 <h3>RELATED INFORMATION
</h3>
93 <a href=
"memory_object_lock_request.html"><strong>memory_object_lock_request
</strong></a>,
94 <a href=
"memory_object_server.html"><strong>memory_object_server
</strong></a>,
95 <a href=
"SMO_server.html"><strong>seqnos_memory_object_server
</strong></a>.