ne_enclave_r...gion_entries(9)
π ne_enclave_remove_all_mem_region_entries(9)
okay so this is a page from the Kernel API Manual, and it's about exactly one (1) function that does exactly one (1) thing: it wipes every single memory region entry out of the enclave data structure. all of them. gone. no survivors. it's giving "clean slate era" β¨
πΈ NAME πΈ
ne_enclave_remove_all_mem_region_entries β removes, like, all the memory region entries from the enclave data structure. every last one. bestie it is not playing π
π¦ SYNOPSIS π¦
void ne_enclave_remove_all_mem_region_entries (struct ne_enclave *ne_enclave );
she returns void, meaning she gives you nothing back β her work is her reward, periodt π
π ARGUMENTS π
ne_enclaveβ the private data that's associated with the current enclave. that's the one singular thing you hand her π«Ά
π₯ CONTEXT π₯
Process context. and listen β this function gets called with the ne_enclave mutex held. already held. by the time she shows up the lock is on, so don't you dare go grabbing it again, iykyk ππ
β SEE ALSO β
the whole friend group, fr fr β go read these too:
- Kernel file
./drivers/virt/nitro_enclaves/ne_misc_dev.cβ Enclave lifetime management driver for Nitro Enclaves (NE).(9) NE_CPUS_SIZE(9)NE_EIF_LOAD_OFFSET(9)NE_MIN_ENCLAVE_MEM_SIZE(9)NE_MIN_MEM_REGION_SIZE(9)NE_PARENT_VM_CID(9)struct ne_cpu_pool(9)struct ne_phys_contig_mem_regions(9)ne_check_enclaves_created(9)ne_setup_cpu_pool(9)ne_teardown_cpu_pool(9)ne_set_kernel_param(9)ne_donated_cpu(9)ne_get_unused_core_from_cpu_pool(9)ne_set_enclave_threads_per_core(9)ne_get_cpu_from_cpu_pool(9)ne_get_vcpu_core_from_cpu_pool(9)ne_check_cpu_in_cpu_pool(9)ne_add_vcpu_ioctl(9)ne_sanity_check_user_mem_region(9)ne_sanity_check_user_mem_region_page(9)ne_sanity_check_phys_mem_region(9)ne_merge_phys_contig_memory_regions(9)ne_set_user_memory_region_ioctl(9)ne_start_enclave_ioctl(9)ne_enclave_ioctl(9)ne_enclave_remove_all_vcpu_id_entries(9)ne_pci_dev_remove_enclave_entry(9)ne_enclave_release(9)ne_enclave_poll(9)ne_create_vm_ioctl(9)ne_ioctl(9)
π quick vibe check: this page came out of the source./drivers/virt/nitro_enclaves, dated October 2026, and it lives under the namene_enclave_r...gion_entries(9). iconic, 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