Unified reclaim: walks page_cache + all VMAs via the SCOMS. More...
Typedefs | |
| using | zxfoundation::memory::reclaim::reclaim_fn = auto (*)(u8 node, u32 target_pages) noexcept -> u32 |
Functions | |
| auto | zxfoundation::memory::reclaim::install (reclaim_fn callback) noexcept -> std::expected< void, lib::kernel_error > |
| Install the reclaim callback used by kswapd and allocation retry. | |
| auto | zxfoundation::memory::reclaim::reclaim_for_allocation (u8 node, u32 target_pages) noexcept -> std::expected< void, lib::kernel_error > |
| Reclaim enough pages to satisfy an allocation retry. | |
| auto | zxfoundation::memory::reclaim::reclaim_node (u8 node, u32 target_pages) noexcept -> std::expected< u32, lib::kernel_error > |
| Reclaim pages on one NUMA node. | |
| auto | zxfoundation::memory::reclaim::reclaim_range (u64 phys_start, u64 phys_end) noexcept -> u32 |
| Evict every resident page whose physical address lies in [phys_start, phys_end). | |
Unified reclaim: walks page_cache + all VMAs via the SCOMS.
SPDX-License-Identifier: Apache-2.0
|
nodiscardexportnoexcept |
Install the reclaim callback used by kswapd and allocation retry.
| [in] | callback | Callback that isolates and reclaims pages. |
|
nodiscardexportnoexcept |
Reclaim enough pages to satisfy an allocation retry.
| [in] | node | Preferred NUMA node. |
| [in] | target_pages | Minimum progress. |
|
nodiscardexportnoexcept |
Reclaim pages on one NUMA node.
| [in] | node | Preferred NUMA node. |
| [in] | target_pages | Minimum requested progress. |
|
nodiscardexportnoexcept |
Evict every resident page whose physical address lies in [phys_start, phys_end).