is_kho_boot(9)
π
is_kho_boot(9) β Kernel API Manual β¨
okay so bestie, welcome to is_kho_boot(9), aka the Kernel API Manual page that's about to do a tiny little boot vibe check. it's giving βsmall function, very specific KHO energy,β and honestly? obsessed. π¦
πΈ NAME πΈ
is_kho_boot β check if current kernel was booted via KHO-enabled kexec. π
β¨ SYNOPSIS β¨
bool is_kho_boot (void );
π ARGUMENTS π
voidβ no arguments. literally none, bestie, not a single one. π
π¦ DESCRIPTION π¦
so the way that this function works is: it checks if the current kernel was loaded through a kexec operation with KHO enabled, by verifying that a valid KHO FDT was passed. that's the whole check. no cap. β¨
π NOTE π
okay, important vibe check: this function returns reliable results only afterkho_populatehas been called during early boot. before that, it may returnfalseeven if KHO data is present. so if it's acting sus beforekho_populate, that's why. π
π RETURN π
trueif booted via KHO-enabled kexecfalseotherwise
π SEE ALSO π
Kernel file: ./kernel/liveupdate/kexec_handover.c
and the full KHO bestie lineup, in all their (9) glory:
kho_encode_radix_key(9)kho_decode_radix_key(9)kho_radix_add_key(9)kho_radix_del_key(9)kho_radix_init_tree(9)kho_radix_destroy_tree(9)kho_radix_walk_tree(9)kho_restore_folio(9)kho_restore_pages(9)kho_reserve_scratch(9)kho_add_subtree(9)kho_preserve_folio(9)kho_unpreserve_folio(9)kho_preserve_pages(9)kho_unpreserve_pages(9)kho_preserve_vmalloc(9)kho_unpreserve_vmalloc(9)kho_restore_vmalloc(9)kho_alloc_preserve(9)kho_unpreserve_free(9)kho_restore_free(9)kho_retrieve_subtree(9)
mwah π β source/version: ./kernel/liveupdate, date: October 2026, and the page: is_kho_boot(9). periodt. ππ«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms