pub fn apply_pool_config(cfg: PoolPagerConfig, backend: ExtentBackend) -> boolExpand 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.
The first call installs the pool, and its backend fixes the extent store
for the process. Later calls only retune the installed pool, so a changed
backend, or a flag or scratch directory that feeds it, has no effect.
On success the pool becomes reachable through active_pool and its
resident budget is retuned in place so live handles stay coherent.