Module shared_memory
Expand description
Cross-process shared memory buffer management and blob allocation.
Modules§
- unix
- POSIX shared memory (
memfd_createandmmap) blob allocator.
Macros§
- bail
- Return early with an error.
Structs§
- BlobId
- Opaque identifier for a shared blob.
- Blob
Token - A blob token that authorizes mapping/reading/writing to a blob on the data plane.
- Mapped
Read - A mapped read-only view of a blob.
- Producer
Blob - A producer-created blob that can be shared with other processes.
- Shared
Memory Blobs
Enums§
- Blob
Backend - Shared
Blob Descriptor - Platform-neutral description of a shared memory handle that can be sent via control plane metadata.
Traits§
- Blob
Allocator - Blob allocator for creating and managing shared blobs.
- Blob
Reader - Reader side to map an incoming blob by token/descriptor.
- Context
- Provides the
contextmethod forResult.
Functions§
- descriptor_
requires_ fd_ transfer - Check if a blob descriptor requires FD transfer.
- read_
blob_ contents - Read the contents of a blob directly from its descriptor.
Type Aliases§
- Result
Result<T, Error>