sgx_ioc_enclave_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ‘‘


okay that's the page, bestie πŸ’œ β€” source/version: ./arch/x86/kernel/cpu/sgx, date: October 2026. slay and bye! πŸŽ€

πŸ“¦ where this page comes from