STRUCT SGX_ENCLAVE_PROVISION(9)
π struct sgx_enclave_provision β like, the whole vibe β¨
okay so bestie, welcome to the manual page for struct sgx_enclave_provision π β that's the little parameter structure that the %SGX_IOC_ENCLAVE_PROVISION ioctl rides in on. yes, the % is part of it, it's a manpage thing, don't @ me. it's kernel API manual territory, section 9, and honestly? she's short but she's iconic. π
β¨ NAME β¨
struct sgx_enclave_provision β the parameter structure for the %SGX_IOC_ENCLAVE_PROVISION ioctl π«Ά
like that's literally her whole job. one struct, one purpose, no notes. π
πΈ SYNOPSIS πΈ
struct sgx_enclave_provision {
__u64 fd;
};
that's it. that's the struct. one member, living her simple life. the indentation in the source is a little quirky (that }; has a space before it, we don't judge, we love her) π¦
π§ Members π§
fdβ the file handle of/dev/sgx_provisionβ like, that's the whole field. you hand her the fd for/dev/sgx_provisionand she's good to go. no cap.
π₯ SEE ALSO π₯
the kernel file in question lives at ./arch/x86/include/uapi/asm/sgx.h β go say hi to her, she contains multitudes π
and then the whole friend group, in the order the original rolls with them:
enum sgx_page_flags(9)struct sgx_enclave_create(9)struct sgx_enclave_add_pages(9)struct sgx_enclave_init(9)struct sgx_enclave_restrict_permissions(9)struct sgx_enclave_modify_types(9)struct sgx_enclave_remove_pages(9)sgx_enclave_user_handler_t(9)struct sgx_enclave_run(9)vdso_sgx_enter_enclave_t(9)
honestly? read them all. the enclave lore goes deep and every single one of these slaps in her own way. π
okay that's the page!! and before you go β cute little sign-off time π this one's sourced from ./arch/x86/include/uapi/asm, dated October 2026, and yes she is still titled struct sgx_enclave_provision(9) at the bottom, because consistency is hot. 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