4 <strong>Function
</strong> - Create a subordinate ledger.
7 <strong>kern_return_t ledger_create
</strong>
8 <strong>(ledger_port_t
</strong> <var>parent_ledger
</var>,
9 <strong>ledger_port_t
</strong> <var>ledger_ledger
</var>,
10 <strong>ledger_port_t
</strong> <var>child_ledger
</var>,
11 <strong>ledger_item_t
</strong> <var>transfer
</var><strong>);
</strong>
16 <dt> <var>parent_ledger
</var>
18 [in ledger send right]
21 <dt> <var>ledger_ledger
</var>
23 [in ledger send right]
24 The wired kernel memory ledger providing the
25 space from which the ledger itself is drawn.
27 <dt> <var>child_ledger
</var>
29 [out ledger send right]
30 The new child ledger, of the same resource type
33 <dt> <var>transfer
</var>
36 The resource amount to transfer to the new ledger.
40 The
<strong>ledger_create
</strong> function creates a subordinate ledger.
41 Resource limits can be
42 transferred from the parent ledger. The child ledger itself
44 the
<var>ledger_ledger
</var>. A new ledger inherits the remote service port.
47 This interface is not implemented in OSF/
1 R1.3.
49 A ledger limit of
<strong>LEDGER_ITEM_INFINITE
</strong> allows any amount (even
50 infinity) to be withdrawn. The root ledger has such a limit.
51 <h3>RETURN VALUES
</h3>
54 <dt> <strong>KERN_RESOURCE_SHORTAGE
</strong>
56 Transferring the resources would cause the parent ledger to exceed its
59 <dt> <strong>KERN_INVALID_LEDGER
</strong>
61 <var>ledger_ledger
</var> is not a wired kernel memory ledger.
63 <h3>RELATED INFORMATION
</h3>
66 <a href=
"ledger_transfer.html"><strong>ledger_transfer
</strong></a>,
67 <a href=
"ledger_terminate.html"><strong>ledger_terminate
</strong></a>,
68 <a href=
"ledger_read.html"><strong>ledger_read
</strong></a>,
69 <a href=
"ledger_set_remote.html"><strong>ledger_set_remote
</strong></a>.