ne_check_cpu_in_cpu_pool(9)
π ne_check_cpu_in_cpu_pool(9) β like, the Kernel API Manual page, bestie β¨
Okay so this is from the ne_check_cpu_in_cpu_pool(9) section of the Kernel API Manual, and no cap, it's a whole vibe check for vCPUs. Sit down, grab a π, we're doing this.
π¦ NAME
ne_check_cpu_in_cpu_pool β literally just checks if the given vCPU is in the available CPUs from the pool. That's it. That's the whole job. Iconic minimalism, honestly.
πΈ SYNOPSIS
int ne_check_cpu_in_cpu_pool (struct ne_enclave *ne_enclave , u32
vcpu_id );
π ARGUMENTS
ne_enclaveβ the private data associated with the current enclave. Like, its whole lil inner world π«Άvcpu_idβ the ID of the vCPU you wanna check if it's available in the NE CPU pool. The main character we're asking about π
β CONTEXT
Process context, bestie. And important: this function is called with the ne_enclave mutex held. So likeβ¦ don't come for it without the lock, fr fr. π
π₯ RETURN
0on success π- Negative return value on failure π
π SEE ALSO
Okay this list is LONG, so buckle up, we're going on a tour:
- Kernel file
./drivers/virt/nitro_enclaves/ne_misc_dev.cEnclave 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_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)
Go read them all, iykyk πβ¨
And that's the page, bestie! This lil masterpiece lives in ./drivers/virt/nitro_enclaves, dated October 2026 β so like, future vibes only. Mwah ππ«Ά
π¦ 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