]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/MO_data_initialize.html
xnu-7195.60.75.tar.gz
[apple/xnu.git] / osfmk / man / MO_data_initialize.html
CommitLineData
13fec989
A
1<h2>memory_object_data_initialize</h2>
2<hr>
3<p>
4<strong>Server Interface</strong> - Request that the default pager record initialization information for specified memory object.
5<h3>SYNOPSIS</h3>
6<pre>
7<strong>kern_return_t memory_object_data_initialize</strong>
8 <strong>(memory_object_t</strong> <var>memory_object</var>,
9 <strong>memory_object_control_t</strong> <var>memory_control</var>,
10 <strong>vm_offset_t</strong> <var>offset</var>,
11 <strong>pointer_t</strong> <var>data</var><strong>);</strong>
12
13
14<strong>kern_return_t seqnos_memory_object_data_initialize</strong>
15 <strong>(memory_object_t</strong> <var>memory_object</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>pointer_t</strong> <var>data</var><strong>);</strong>
20</pre>
21<h3>PARAMETERS</h3>
22<dl>
23<p>
24<dt> <var>memory_object</var>
25<dd>
26[in abstract-memory-object (receive) right]
27The abstract memory
28object port that represents the memory object data, as supplied by the
29kernel in a <strong>memory_object_create</strong> call.
30<p>
31<dt> <var>seqno</var>
32<dd>
33[in scalar]
34The sequence number of this message relative to the abstract
35memory object port.
36<p>
37<dt> <var>memory_control</var>
38<dd>
39[in memory-cache-control send right]
40The memory cache control port
41to be used for a response by the memory manager. If the memory
42object has been supplied to more than one kernel, this parameter
43identifies the kernel that is making the call.
44<p>
45<dt> <var>offset</var>
46<dd>
47[in scalar]
48The offset within the memory object.
49<p>
50<dt> <var>data</var>
51<dd>
52[in pointer to dynamic array of bytes]
53The data that has been modified
54while cached in physical memory.
55</dl>
56<h3>DESCRIPTION</h3>
57<p>
58A <strong>memory_object_data_initialize</strong> function is called
59as the result of a kernel
60message providing the default memory manager with initial data for a
61kernel-created memory object. If the memory manager already
62has supplied data (by a previous <strong>memory_object_data_initialize</strong> or
63<strong>memory_object_data_return</strong>), it
64should ignore this call. Otherwise, the call behaves the same as the
65<strong>memory_object_data_return</strong> call.
66<p>
67The kernel makes this call only to the default memory manager and only on
68temporary memory objects that it has created with
69<strong>memory_object_create</strong>.
70<h3>RETURN VALUES</h3>
71<p>
72Only generic errors apply.
73<h3>RELATED INFORMATION</h3>
74<p>
75Functions:
76<a href="memory_object_create.html"><strong>memory_object_create</strong></a>,
77<a href="memory_object_data_return.html"><strong>memory_object_data_return</strong></a>,
78<a href="MO_default_server.html"><strong>memory_object_default_server</strong></a>,
79<a href="SMO_default_server.html"><strong>seqnos_memory_object_default_server</strong></a>.