STRUCT NE_CPU_POOL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is struct ne_cpu_pool(9) from the Kernel API Manual β€” the page for the CPU pool used for Nitro Enclaves. it's giving kernel bookkeeping but make it cute, and we're covering every single field and ref, no cap. πŸ’…βœ¨

🌸 NAME 🌸

struct ne_cpu_pool β€” CPU pool used for Nitro Enclaves.

✨ SYNOPSIS ✨

struct ne_cpu_pool {
    cpumask_var_t *avail_threads_per_core;
    struct mutex    mutex;
    unsigned int    nr_parent_vm_cores;
    unsigned int    nr_threads_per_core;
    int numa_node;
 };

πŸŽ€ Members πŸŽ€

  • avail_threads_per_core β€” the available full CPU cores to be dedicated to enclave(s). the cpumasks from the array, indexed by core id, contain all the threads from the available cores, that are not set for created enclave(s). the full CPU cores are part of the NE CPU pool. lowkey iconic structure energy πŸ”₯
  • mutex β€” the mutex for the access to the NE CPU pool. it's the vibe check at the door πŸ’…
  • nr_parent_vm_cores β€” the size of the available threads per core array. also: the total number of CPU cores available on the primary / parent VM. periodt.
  • nr_threads_per_core β€” the number of threads that a full CPU core has. yes bestie, we're counting 🧚
  • numa_node β€” the NUMA node of the CPUs in the pool. it's giving locality 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

okay these linked faves are all here, don't skip them:


mwah πŸ’‹ this page's source/version is ./drivers/virt/nitro_enclaves, the date is October 2026, and the page title is struct ne_cpu_pool(9). byeee bestie, go read those refs 🫢

πŸ“¦ where this page comes from