NE_ERR_INVAL..._REGION_SIZE(9)
π NE_ERR_INVALID_MEM_REGION_SIZE π
okay bestie, so this is a page out of the Kernel API Manual β like, section 9, kernel developer stuff β and the star of the show is NE_ERR_INVALID_MEM_REGION_SIZE. no cap, that's the whole vibe of this page. π«Ά
β¨ NAME β¨
NE_ERR_INVALID_MEM_REGION_SIZE β literally the error that says your user space memory region size is not a multiple of 2 MiB. that's it, that's the whole thing. π
πΈ SYNOPSIS πΈ
it's giving "just the name, nothing else":
NE_ERR_INVALID_MEM_REGION_SIZE
like, no arguments, no flags, no parameters. she simply is. iconic. π
π¦ SEE ALSO π¦
okay this is the part where we list literally everyone in the group chat, and ngl it's a long one β but every single one of these is important, so let's go π₯
the source file, front and center:
- Kernel file
./include/uapi/linux/nitro_enclaves.hβ this is where it all lives, bestie ποΈ
the main character docs:
- Nitro Enclaves (NE) Kernel Driver Interface(9)
- 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(9)
the error-code gang (we stan a whole squad): π
- 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_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)
flags + structs, the supporting cast β¨:
- Image load info flags(9)
- NE_EIF_IMAGE(9)
- struct ne_image_load_info(9)
- User memory region flags(9)
- NE_DEFAULT_MEMORY_REGION(9)
- struct ne_user_memory_region(9)
- Enclave start info flags(9)
- NE_ENCLAVE_PRODUCTION_MODE(9)
- NE_ENCLAVE_DEBUG_MODE(9)
- struct ne_enclave_start_info(9)
lowkey a reminder: this page is short on purpose β the actual detail lives in the pages above, so go read them if you want the full tea. β
and that's the whole page, bestie!! πβ¨ this lil drop comes to you from ./include/uapi/linux, dated October 2026, and it answers to the name NE_ERR_INVAL..._REGION_SIZE(9) β one more time for the people in the back π
π
π¦ 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