STRUCT SGX_ENCLAVE_MODIFY_TYPES(9)
π 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 byoffsetandlength. iconic range behavior.resultβ (output) SGX result code of theENCLS[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:
- Kernel file:
./arch/x86/include/uapi/asm/sgx.h enum sgx_page_flags(9)struct sgx_enclave_create(9)struct sgx_enclave_add_pages(9)struct sgx_enclave_init(9)struct sgx_enclave_provision(9)struct sgx_enclave_restrict_permissions(9)struct sgx_enclave_remove_pages(9)sgx_enclave_user_handler_t(9)struct sgx_enclave_run(9)vdso_sgx_enter_enclave_t(9)
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
- 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