Skip to main content

Module leased_ipc

Module leased_ipc 

Source
Expand description

Lease-gated wrapper around IpcEndpoint.

Transmit/receive capacity is reserved on a caller-owned LeaseTable for the duration of the copy into or out of the IPC queue. The queue then owns the frame bytes, so the lease is released before return.

IpcEndpoint::recv checks out.len() before dequeue. A short output returns Capacity and leaves the frame queued. This wrapper still releases the recv lease on that Capacity so the table cannot leak.

Structs§

LeasedIpc

Functions§

leased_ipc_pair
Connected Ready pair with boot-scoped locators 0x01 and 0x02.