Skip to main content

Module pool

Module pool 

Source
Expand description

Tiered pool of mlock’d slab slots and standalone guard-paged buffers.

§Initialization

The global memory pool is lazily initialized on first use. For reliable startup-time error reporting, call init_pool() explicitly before using any [MemoryEnclave] or pool_acquire() operations.

Structs§

PoolSlot
A handle to a locked memory region containing secret data.
TieredPool
Statically-owned tiered pool.
TieredPoolConfig
Configuration for the tiered pool.

Functions§

coffer_view
Get a PoolSlot containing the Coffer master key. Release promptly after use; the slot is from the pool and blocks that slot while held.
init_pool
Initialize the global pool with a custom config.
pool_acquire
Acquire a pool slot for size bytes.
pool_release
Release a pool slot. The slot’s contents are zeroized. Prefer dropping the PoolSlot directly; this is provided for explicit release.