ENUM SGX_SECINFO_FLAGS(9)
π enum sgx_secinfo_flags(9) β bestie edition
okay so this is a page straight out of the Kernel API Manual, and it's all about enum sgx_secinfo_flags, which is literally just the flags field in &struct sgx_secinfo. That's it. That's the whole vibe. It's giving "small but mighty" ngl π«Ά
β¨ NAME β¨
enum sgx_secinfo_flags β the flags field in &struct sgx_secinfo π
π¦ SYNOPSIS π¦
enum sgx_secinfo_flags {
SGX_SECINFO_R ,
SGX_SECINFO_W ,
SGX_SECINFO_X ,
SGX_SECINFO_SECS ,
SGX_SECINFO_TCS ,
SGX_SECINFO_REG ,
SGX_SECINFO_VA ,
SGX_SECINFO_TRIM
};
like yes, that trailing blank line is in there, don't come for me π
πΈ Constants πΈ
here's the whole squad, one by one, no skips, no cuts π₯
SGX_SECINFO_Rβ allow read πSGX_SECINFO_Wβ allow write βοΈSGX_SECINFO_Xβ allow execution πββοΈSGX_SECINFO_SECSβ a SECS page πSGX_SECINFO_TCSβ a TCS page πSGX_SECINFO_REGβ a regular page, no thoughts just vibes π§SGX_SECINFO_VAβ a VA page βSGX_SECINFO_TRIMβ a page in trimmed state π
π SEE ALSO π
all the related lore, and yes i'm listing every single one because we don't do half-finished here:
- Kernel file
./arch/x86/include/asm/sgx.h 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_page_type(9)struct sgx_secinfo(9)struct sgx_pcmd(9)struct sgx_sigstruct_header(9)struct sgx_sigstruct_body(9)struct sgx_sigstruct(9)
go read them, i'll wait π
bestie reminder: every one of these constants is a constant β like, they're not gonna change on you. read the page, use the flags, slay. periodt. π
and that's the whole page!! sourced from ./arch/x86/include/asm (the kernel source tree, iconic), October 2026 edition, filed under enum sgx_secinfo_flags(9). mwah, love u, go read the sgx pages ππ¦β¨
π¦ 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