ne_set_encl...ads_per_core(9)
π ne_set_encl...ads_per_core(9) β from the Kernel API Manual bestie π
okay so you opened the manual page for ne_set_enclave_threads_per_core(9) and honestly? iconic of you. this is the one that sets the threads of the core you hand it, right there in the enclave data structure. let's get into it β¨
π¦ NAME
ne_set_enclave_threads_per_core β sets the threads of the core you pass in, inside the enclave data structure. that's the whole vibe, no cap π
β¨ SYNOPSIS
int ne_set_enclave_threads_per_core (struct ne_enclave *ne_enclave , int
core_id , u32 vcpu_id );
look at her. returns an int, takes three things, done πΈ
π ARGUMENTS
ne_enclaveβ the private data associated with the current enclave. like, this enclave's personal stuff π«Άcore_idβ the core id you wanna grab the threads from, out of the NE CPU pool β¨vcpu_idβ the vCPU id that's part of the core you provided π
π CONTEXT
Process context, bestie π
and listen β this function gets called with the ne_enclave and ne_cpu_pool mutexes held. both of them. locked. so don't be out here calling it wherever, iykyk π
π₯ RETURN
0on success π- a negative return value on failure π
π SEE ALSO
Kernel file ./drivers/virt/nitro_enclaves/ne_misc_dev.c β the Enclave lifetime management driver for Nitro Enclaves (NE).(9), plus the whole friend group:
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_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_mem_region_entries(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)
ngl the SEE ALSO list is giving "my entire mutuals list" and i respect it π§
and that's the page!! mwah π this came to you from ./drivers/virt/nitro_enclaves, dated October 2026, page ne_set_encl...ads_per_core(9) β see you in the next one, bestie ππ
π¦ 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