Skip to main content

apply_pool_config

Function apply_pool_config 

Source
pub fn apply_pool_config(cfg: PoolPagerConfig) -> bool
Expand description

Applies a buffer-pool configuration, installing the pool as the process’s spill mechanism. This is the only path that constructs the pool. A process that never calls it, because the spill gate is off or it is unconfigured, never reserves the pool’s address space or spawns its spill threads. Returns false (and changes nothing) if the pool is unavailable because its virtual reservation failed.

On success the pool becomes reachable through active_pool and its resident budget is retuned in place so live handles stay coherent.