STRUCT SGX_PAGEINFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, bestie
  • contents β€” a pointer to the page contents 🧚 this is the actual page data, the main character energy of the struct
  • metadata β€” a pointer that goes either to a SECINFO or a PCMD instance πŸ‘€ yes, it's one of those "depends on the situation" pointers, iykyk
  • secs β€” the address of the SECS page πŸ‘‘ 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