sgx_enclave_modify_types(9)
β¨ sgx_enclave_modify_types(9) β¨
okay bestie, welcome to the kernel API manual π this little function lives in section 9 and it's literally here to modify the type of SGX enclave pages. that's it, that's the vibe. π¦
π NAME π
sgx_enclave_modify_types β modify type of SGX enclave pages β¨
πΈ SYNOPSIS πΈ
long sgx_enclave_modify_types (struct sgx_encl *encl , struct
sgx_enclave_modify_types *modt );
no cap, that's the whole call π«Ά
π ARGUMENTS π
enclβ the enclave that the pages belong to π like, whose pages are we even touching heremodtβ the checked parameters that came from user about which pages need modifying and what their new page type is π so it's already been vetted, we're not just raw-dogging user input here
π₯ RETURN π₯
0β success!! it ate, it slayed, we move π-errnoβ otherwise π something went sideways and you get the usual negative errno situation
π§ SEE ALSO π§
kernel file ./arch/x86/kernel/cpu/sgx/ioctl.c and all its friends, fr fr:
sgx_ioc_enclave_create(9)sgx_ioc_enclave_add_pages(9)sgx_ioc_enclave_init(9)sgx_ioc_enclave_provision(9)sgx_enclave_restrict_permissions(9)sgx_ioc_enclave_restrict_permissions(9)sgx_ioc_enclave_modify_types(9)sgx_encl_remove_pages(9)sgx_ioc_enclave_remove_pages(9)
go read those too, iykyk πβ¨
lowkey reminder: this page is under./arch/x86/kernel/cpu/sgx, dated October 2026, and it'ssgx_enclave_modify_types(9)β that's the whole provenance π
and that's the page bestie, mwah ππ«Ά go modify some types responsibly π
π¦ 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