kho_encode_radix_key(9)
π kho_encode_radix_key(9) π
okay bestie, welcome to the Kernel API Manual β we're doing a little radix key math today and honestly? it's giving tiny but mighty. β¨
πΈ NAME πΈ
kho_encode_radix_key β squishes a physical address and an order into one single radix key. that's it. that's the whole job. no cap. π
π¦ SYNOPSIS π¦
unsigned long kho_encode_radix_key (phys_addr_t phys , unsigned int order );
π ARGUMENTS π
physβ the physical address of the page. like, where it lives. πorderβ the order of the page. yes, that order. π«Ά
π DESCRIPTION π
so here's the tea β β this function takes a page's physical address and its order and combines them into a single unsigned long. that one lil number becomes the key for all radix tree operations. literally all of them. it's giving main character energy for the whole tree. π₯
β RETURN β
the encoded unsigned long radix key. that's the good stuff. π
π SEE ALSO π
- Kernel file
./kernel/liveupdate/kexec_handover.c 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)is_kho_boot(9)kho_retrieve_subtree(9)
okay that's the whole page, ily, go encode some keys πβ¨ππ¦
β this cutie lives in ./kernel/liveupdate, version October 2026, and it's still signing off as kho_encode_radix_key(9) π§π
π¦ 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