ENUM SGX_PAGE_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is enum sgx_page_type(9) from the Kernel API Manual β€” literally the bits in the SECINFO flags defining the page type πŸ’… iykyk

✨ SYNOPSIS ✨

enum sgx_page_type {
    SGX_PAGE_TYPE_SECS ,
    SGX_PAGE_TYPE_TCS ,
    SGX_PAGE_TYPE_REG ,
    SGX_PAGE_TYPE_VA ,
    SGX_PAGE_TYPE_TRIM

};

πŸŽ€ Constants πŸŽ€

  • SGX_PAGE_TYPE_SECS β€” a SECS page ✨
  • SGX_PAGE_TYPE_TCS β€” a TCS page πŸ¦‹
  • SGX_PAGE_TYPE_REG β€” a regular page 🌸
  • SGX_PAGE_TYPE_VA β€” a VA page πŸ’œ
  • SGX_PAGE_TYPE_TRIM β€” a page in trimmed state πŸ’…

πŸ’– Description πŸ’–

okay but for real, when you’re making changes to this enum, make sure its values can still fit in the bitfield within struct sgx_encl_page 😭 like don’t let the bitfield catch you lacking, fr fr. This enum has main character energy, but it still has to stay in its lane 🫢

🌈 SEE ALSO 🌈

Kernel file ./arch/x86/include/asm/sgx.h β€” plus the whole iconic crew: 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), struct sgx_pageinfo(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) 🧚

xoxo, this page lives in ./arch/x86/include/asm and is dated October 2026 πŸŽ€

πŸ“¦ where this page comes from