ENUM SGX_PAGE_TYPE(9)
β¨ 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
- 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