sgx_ioc_enclave_create(9)
NAME
hey bestie π welcome to sgx_ioc_enclave_create(9) β that's the manual page, from the Kernel API Manual, and it's literally the handler for %SGX_IOC_ENCLAVE_CREATE. no cap.
SYNOPSIS
okay so here's the whole function signature, exact, no edits:
long sgx_ioc_enclave_create (struct sgx_encl *encl , void __user *arg );
ARGUMENTS
two args, both important, let's go π«Ά
enclβ An enclave pointer. it's the enclave pointer, bestie β like, the actual pointer to the enclave.argβ The ioctl argument. this is the ioctl argument; that's the arg, periodt.
DESCRIPTION
so what does it do? it allocates the kernel data structures for the enclave and invokes ECREATE. that's the whole vibe β¨
RETURN
return values, bestie β memorize the vibe:
0β Success. slay, it worked π-EIOβ ECREATE failed. oof, ECREATE failed π-errnoβ POSIX error. classic POSIX error territory.
SEE ALSO
go read these too, iykyk π
- Kernel file:
./arch/x86/kernel/cpu/sgx/ioctl.c 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_enclave_modify_types(9)sgx_ioc_enclave_modify_types(9)sgx_encl_remove_pages(9)sgx_ioc_enclave_remove_pages(9)
okay that's the page, bestie π β source/version: ./arch/x86/kernel/cpu/sgx, date: October 2026. slay and bye! π
π¦ 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