Deterministic global OOM selection and kill callback. More...
Functions | |
| auto | zxfoundation::memory::oom::install (score_fn scorer, kill_fn killer) noexcept -> std::expected< void, lib::kernel_error > |
| Install OOM scoring and victim termination callbacks. | |
| auto | zxfoundation::memory::oom::kill_highest (u32 domain_count) noexcept -> std::expected< u32, lib::kernel_error > |
| Select and kill the highest-scoring domain in a bounded ID set. | |
Variables | |
| no_export kill_fn | zxfoundation::memory::oom::detail::g_kill {nullptr} |
| no_export score_fn | zxfoundation::memory::oom::detail::g_score {nullptr} |
Deterministic global OOM selection and kill callback.
SPDX-License-Identifier: Apache-2.0
|
nodiscardexportnoexcept |
Install OOM scoring and victim termination callbacks.
| [in] | scorer | Returns the current domain badness score. |
| [in] | killer | Marks and signals the selected domain. |
|
nodiscardexportnoexcept |
Select and kill the highest-scoring domain in a bounded ID set.
| [in] | domain_count | Number of domain IDs to inspect. |