sgx_enclave_modify_types(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 here
  • modt β€” 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:

go read those too, iykyk πŸ“šβœ¨


lowkey reminder: this page is under ./arch/x86/kernel/cpu/sgx, dated October 2026, and it's sgx_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