NITRO ENCLAVES (NE) KERNEL DRIVER INTERFACE(9)
π Nitro Enclaves (NE) Kernel Driver Interface
okay so real talk, bestie β this one lives in the Kernel API Manual, section (9), and it's the glow-up page for the Nitro Enclaves (NE) kernel driver interface. She's not here to give you a whole essay, she's here to hand you the friend group. Think of it as the group chat roster: every single page you're gonna need to actually make enclaves happen, listed so you never have to ask "wait who do I talk to about this" ever again. iykyk β¨
π SEE ALSO
the whole squad, in order, no one left out π«Ά
πΈ the main character file
- Kernel file
./include/uapi/linux/nitro_enclaves.hβ literally the source of truth, the origin story, the blueprint. go say hi.
π the core calls
NE_CREATE_VM(9)NE_ADD_VCPU(9)NE_GET_IMAGE_LOAD_INFO(9)NE_SET_USER_MEMORY_REGION(9)NE_START_ENCLAVE(9)
π NE specific error codes
the "not me" collection β every one of these is a mood, and every one of these gets its own page:
NE_ERR_VCPU_ALREADY_USED(9)NE_ERR_VCPU_NOT_IN_CPU_POOL(9)NE_ERR_VCPU_INVALID_CPU_CORE(9)NE_ERR_INVALID_MEM_REGION_SIZE(9)NE_ERR_INVALID_MEM_REGION_ADDR(9)NE_ERR_UNALIGNED_MEM_REGION_ADDR(9)NE_ERR_MEM_REGION_ALREADY_USED(9)NE_ERR_MEM_NOT_HUGE_PAGE(9)NE_ERR_MEM_DIFFERENT_NUMA_NODE(9)NE_ERR_MEM_MAX_REGIONS(9)NE_ERR_NO_MEM_REGIONS_ADDED(9)NE_ERR_NO_VCPUS_ADDED(9)NE_ERR_ENCLAVE_MEM_MIN_SIZE(9)NE_ERR_FULL_CORES_NOT_USED(9)NE_ERR_NOT_IN_INIT_STATE(9)NE_ERR_INVALID_VCPU(9)NE_ERR_NO_CPUS_AVAIL_IN_POOL(9)NE_ERR_INVALID_PAGE_SIZE(9)NE_ERR_INVALID_FLAG_VALUE(9)NE_ERR_INVALID_ENCLAVE_CID(9)
π¦ Image load info flags
NE_EIF_IMAGE(9)struct ne_image_load_info(9)
π User memory region flags
NE_DEFAULT_MEMORY_REGION(9)struct ne_user_memory_region(9)
π Enclave start info flags
NE_ENCLAVE_PRODUCTION_MODE(9)NE_ENCLAVE_DEBUG_MODE(9)struct ne_enclave_start_info(9)
ngl bestie, that's genuinely the entire page β no hidden lore, no secret extra sections, just the links. go read them in order and you're golden π
β¨ that's a wrap β¨ this one's served fresh from ./include/uapi/linux, dated October 2026, filed under Nitro Enclaves (NE) Kernel Driver Interface(9) β mwah, no notes ππ
π¦ 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