STRUCT SGX_PAGEINFO(9)
β¨ struct sgx_pageinfo(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for struct sgx_pageinfo β an enclave page descriptor π this is literally the little info packet that tells the kernel about one single SGX enclave page, and honestly? it's giving "small but crucial" and we're obsessed π
πΈ NAME πΈ
struct sgx_pageinfo β an enclave page descriptor β¨
π¦ SYNOPSIS π¦
struct sgx_pageinfo {
u64 addr;
u64 contents;
u64 metadata;
u64 secs;
};
no cap, that's the whole struct β four u64s and a dream π«Ά
π Members π
addrβ the address of the enclave page π like, where is this page at, bestiecontentsβ a pointer to the page contents π§ this is the actual page data, the main character energy of the structmetadataβ a pointer that goes either to aSECINFOor aPCMDinstance π yes, it's one of those "depends on the situation" pointers, iykyksecsβ the address of theSECSpage π the SECS page is the enclave's whole vibe, so of course it gets its own field
π₯ SEE ALSO π₯
the kernel file ./arch/x86/include/asm/sgx.h is where all of this lives, and it comes with a whole friend group of friends β go check them out fr fr:
SGX_ENCLS_FAULT_FLAG(9)enum sgx_return_code(9)enum sgx_miscselect(9)enum sgx_attribute(9)struct sgx_secs(9)enum sgx_tcs_flags(9)struct sgx_tcs(9)enum sgx_page_type(9)enum sgx_secinfo_flags(9)struct sgx_secinfo(9)struct sgx_pcmd(9)struct sgx_sigstruct_header(9)struct sgx_sigstruct_body(9)struct sgx_sigstruct(9)
π real talk: this page is from ./arch/x86/include/asm, and the manual's dated October 2026, so go off, future girlies π
okay that's the whole page, you ate that π bye bestie, go read the rest of the SGX structs, mwah π
π¦ 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