kho_decode_radix_key(9)
π kho_decode_radix_key(9)
okay bestie, welcome to the Kernel API Manual β this one's a little decoder ring moment and honestly it's giving main character energy π
β¨ NAME β¨
kho_decode_radix_key β decodes a radix key back into a physical address and order π¦
Like, the key goes in, the actual physical address and the order come out. Reversal arc, we love to see it.
πΈ SYNOPSIS πΈ
phys_addr_t kho_decode_radix_key (unsigned long key , unsigned int
*order );
Two args, one return, no cap π
π§ ARGUMENTS π§
keyβ theunsigned longkey you want decoded. That's the one, that's the input, she's the whole point π«Άorderβ an output parameter, babes. It's a pointer to anunsigned int, and that's exactly where the decoded page order gets stored. So yeah, she writes back to you β¨
π DESCRIPTION π
So kho_decode_radix_key literally reverses the encoding that kho_encode_radix_key did in the first place. It takes a given key and extracts the original physical address and the page order back out of it. Undo button behaviour, iconic π
β RETURN β
The decoded physical address. That's it, that's the return value π
π SEE ALSO π
Kernel file ./kernel/liveupdate/kexec_handover.c
kho_encode_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)
and that's the whole page, bestie π this cutie lives in ./kernel/liveupdate, dated October 2026, and the version info is right there with it β mwah, go decode some keys ππ
π¦ 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