STRUCT SGX_ENCLAVE_MODIFY_TYPES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

bestie, you just opened the struct sgx_...modify_types(9) page in the Kernel API Manual, and it's all about this cutie: struct sgx_enclave_modify_types β€” the parameters for ioctl %SGX_IOC_ENCLAVE_MODIFY_TYPES. slay.


✨ SYNOPSIS ✨

struct sgx_enclave_modify_types {
    __u64 offset;
    __u64 length;
    __u64 page_type;
    __u64 result;
    __u64 count;
};

🫢 Members 🫢

okay so here's the member-by-member tea, no cap:

  • offset β€” the starting page offset, and bestie it's page aligned relative to the enclave base address defined in SECS. literally important.
  • length β€” length of memory, and it's a multiple of the page size. periodt.
  • page_type β€” the new type for pages in the range described by offset and length. iconic range behavior.
  • result β€” (output) SGX result code of the ENCLS[EMODT] function. yes, that's the exact one.
  • count β€” (output) bytes successfully changed, multiple of page size. the way this tracks what actually changed? obsessed.

πŸ”₯ SEE ALSO πŸ”₯

your bestie should also peek at these, fr fr:


okay bye bestie πŸ’– this page lives in ./arch/x86/include/uapi/asm, it's dated October 2026, and the header title is struct sgx_...modify_types(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from