sgx_alloc_va_page(9)
π NAME π
sgx_alloc_va_page(9) β okay so this is from the Kernel API Manual, bestie, and it does exactly one iconic thing: it allocates a Version Array (VA) page β¨
π οΈ SYNOPSIS π οΈ
struct sgx_epc_page * sgx_alloc_va_page (bool reclaim );
π ARGUMENTS π
reclaimβ reclaim EPC pages directly if none are available. If this is set, the enclave mutex should not be held. No cap, that part matters π«Ά
πΈ DESCRIPTION πΈ
Allocate a free EPC page and convert it to a Version Array (VA) page. That's the whole lore, and honestly? Slay π
β RETURN β
It hands you back a VA page; otherwise you get -errno. Periodt π
π¦ SEE ALSO π¦
The kernel file is literally right here: ./arch/x86/kernel/cpu/sgx/encl.c π
reclaimer_writing_to_pcmd(9)sgx_encl_eaug_page(9)sgx_encl_may_map(9)sgx_encl_release(9)sgx_encl_cpumask(9)__sgx_encl_get_backing(9)sgx_encl_alloc_backing(9)sgx_encl_lookup_backing(9)sgx_encl_put_backing(9)sgx_encl_test_and_clear_young(9)sgx_zap_enclave_ptes(9)sgx_alloc_va_slot(9)sgx_free_va_slot(9)sgx_va_page_full(9)sgx_encl_free_epc_page(9)
Cute little sign-off tea π: this page is from ./arch/x86/kernel/cpu/sgx, dated October 2026, and it's serving sgx_alloc_va_page(9) realness πβ¨
π¦ 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