1 <h2>ledger_get_remote
</h2>
4 <strong>Function
</strong> - Return send right to specified host's remote ledger port.
7 <strong>kern_return_t ledger_get_remote
</strong>
8 <strong>(ledger_port_t
</strong> <var>ledger
</var>,
9 <strong>host_t
</strong> <var>host_name
</var>,
10 <strong>ledger
</strong> <var>service_port
</var><strong>);
</strong>
13 <strong>kern_return_t ledger_return_remote
</strong>
14 <strong>(ledger_port_t
</strong> <var>ledger
</var>,
15 <strong>host_t
</strong> <var>host_name
</var>,
16 <strong>ledger
</strong> <var>service_port
</var><strong>);
</strong>
21 <dt> <var>ledger
</var>
23 [in ledger send right]
24 The ledger whose service port is desired.
26 <dt> <var>host_name
</var>
28 [in host-name send right]
29 The name for the host requesting the service
32 <dt> <var>service_port
</var>
34 [out ledger-service send right]
35 The ledger service port.
39 The
<strong>ledger_get_remote
</strong> function returns the remote ledger
44 This interface is not implemented in OSF/
1 R1.3.
46 This mechanism supports distributed resource ledgers in the following way:
49 With
<strong>ledger_set_remote
</strong>, a ledger is assigned a remote
52 This ledger is used as the ledger for a create operation.
53 If the ledger is local to the target kernel, all is fine.
55 For a non-local creation, the target kernel sees that the supplied
57 a local ledger. The kernel sends a
<strong>ledger_get_remote
</strong> message to it,
58 including the host name.
60 The (remote) ledger receives this message, ignores the host name and returns
61 the remote ledger service port.
63 Assuming that the remote ledger service port is not a local ledger, the kernel
64 sends a
<strong>ledger_get_remote
</strong> message to this service port.
66 A server receives this request (with the
<strong>ledger_return_remote
</strong>
68 and uses the identity of the service port as well as the host name of the
69 target kernel to locate or create a suitable ledger on that kernel.
71 The port for a ledger on the target kernel is sent to that kernel and used.
73 <h3>RETURN VALUES
</h3>
75 Only generic errors apply.
76 <h3>RELATED INFORMATION
</h3>
79 <a href=
"ledger_create.html"><strong>ledger_create
</strong></a>,
80 <a href=
"ledger_set_remote.html"><strong>ledger_set_remote
</strong></a>.