Skip to main content

Module v2

Module v2 

Source
Expand description

Kernel core of IPC ABI v2: generation handles, endpoints, reply targets, notifications, memory objects, silo quotas and async-ring operations (§3–§12). The namespace table lives in crate::namespace::v2.

Re-exports§

pub use handle::Entry;
pub use handle::HandleTable;
pub use handle::ObjRef;
pub use handle::MAX_HANDLES;
use crate::process::process::Process; 🔒
use crate::process::TaskId; 🔒
use crate::sync::SpinLock; 🔒
use alloc::sync::Arc; 🔒
use alloc::sync::Weak; 🔒
use alloc::vec::Vec; 🔒
use endpoint::abandon_call; 🔒
use endpoint::cancel_call; 🔒
use endpoint::CallSlot; 🔒

Modules§

async_ops
IPC v2 operations on async rings: AsyncOp 13–17 (spec §11).
endpoint
Endpoint and reply-target objects (IPC ABI v2, §5 and §6).
handle
Per-process generation-tagged handle table (IPC ABI v2, §3.1).
memobj
Memory objects (IPC ABI v2, §9.1).
notif
Notification objects (IPC ABI v2, §7).
quota
Silo IPC quotas (IPC ABI v2, §12).
selftest
Runtime self-tests of the IPC v2 object layer (feature selftest).

Statics§

CALL_SLOTS 🔒
Weak registry of live call slots so task/endpoint death can cancel calls without ever touching another address space.

Functions§

cancel_calls_for_endpoint
Cancel every call attached to endpoint_id (called on endpoint close).
cleanup_for_task
Cancel every call whose caller is task_id. Called when a task exits so a late server reply fails with EPIPE instead of writing a freed buffer.
cleanup_process
Drop every handle owned by a dying process, applying object side effects.
collect_calls 🔒
register_call
Register a call slot for exit/endpoint cleanup.