is_kho_boot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 after kho_populate has been called during early boot. before that, it may return false even if KHO data is present. so if it's acting sus before kho_populate, that's why. 😭

🌈 RETURN 🌈

  • true if booted via KHO-enabled kexec
  • false otherwise

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./kernel/liveupdate/kexec_handover.c

and the full KHO bestie lineup, in all their (9) glory:

mwah πŸ’‹ β€” source/version: ./kernel/liveupdate, date: October 2026, and the page: is_kho_boot(9). periodt. πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from