sgx_alloc_va_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ‘‘


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