ENUM SGX_SECINFO_FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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