NE_START_ENCLAVE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, welcome to NE_START_ENCLAVE(9) from the Kernel API Manual β€” and no cap, this is the β€œhit start on the enclave” command. πŸ’…

Not me being obsessed with an ioctl, but here we are β€” it’s giving main character energy, fr fr. πŸŽ€

NE_START_ENCLAVE is the command used to trigger enclave start after the enclave resources, such as memory and CPU, have been set. The enclave start info is an input / output parameter. It includes info provided by the caller β€” enclave cid and flags β€” and returns the cid (if input cid is 0). The ioctl can be invoked on the enclave fd, after an enclave slot is created and resources, such as memory and vCPUs, are set for an enclave. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

NE_START_ENCLAVE

🌸 CONTEXT 🌸

Process context. That’s the whole vibe check β€” literally process context. 🫢

πŸ”₯ RETURN πŸ”₯

Here’s the return-value tea, bestie β€” the way that 0 is success and -1 is the β€œwelp” path:

  • 0 β€” Logic successfully completed. βœ…
  • -1 β€” There was a failure in the ioctl logic. On failure, errno is set to:
    • EFAULT β€” copy_from_user / copy_to_user failure.
    • NE_ERR_NOT_IN_INIT_STATE β€” The enclave is not in init state (init = before being started).
    • NE_ERR_NO_MEM_REGIONS_ADDED β€” No memory regions are set.
    • NE_ERR_NO_VCPUS_ADDED β€” No vCPUs are set.
    • NE_ERR_FULL_CORES_NOT_USED β€” Full core(s) not set for the enclave.
    • NE_ERR_ENCLAVE_MEM_MIN_SIZE β€” Enclave memory is less than minimum memory size (64 MiB).
    • NE_ERR_INVALID_FLAG_VALUE β€” The value of the provided flag is invalid.
    • NE_ERR_INVALID_ENCLAVE_CID β€” The provided enclave CID is invalid.
    • Error codes from the NE PCI device request.

πŸ‘‘ SEE ALSO πŸ‘‘

Your required-reading list, bestie β€” every single reference from the original SEE ALSO, and I am not skipping a crumb πŸ“:


This iconic page lives at ./include/uapi/linux, is dated October 2026, and goes by NE_START_ENCLAVE(9) β€” periodt. This page ate and left no crumbs, ngl. Go start those enclaves, bestie, and slay responsibly. πŸ«ΆπŸ’œ
πŸ“¦ where this page comes from