STRUCT NE_PHYS_CONTIG_MEM_REGIONS(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– struct ne_phys_contig_mem_regions(9) ๐Ÿ’–

okay so this is a page straight out of the Kernel API Manual, and it's all about one lil struct that keeps track of contiguous physical memory regions ๐ŸŽ€ that's it, that's the vibe.


โœจ NAME โœจ

struct ne_phys_contig_mem_regions โ€” Contiguous physical memory regions. ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

bestie, here's the whole struct, look at her ๐Ÿ‘‘

struct ne_phys_contig_mem_regions {
    unsigned long num;
    struct range  *regions;
 };

๐ŸŒธ Members ๐ŸŒธ

  • num โ€” the number of regions that currently has. yep, that's the count, she's literally counting ๐Ÿงฎ
  • regions โ€” the array of physical memory regions. the actual lineup, the whole squad of them ๐Ÿซถ

โญ SEE ALSO โญ

okay this list is iconic and also lowkey long, so buckle up โ€” every single one of these is a real thing you can go read:

  • 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)
  • 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_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 if you read all of those in one sitting you deserve a little treat ๐Ÿ“ fr fr

and that's the whole page, bestie โ€” no notes, she ate ๐Ÿ’…โœจ

source dir: ./drivers/virt/nitro_enclaves ยท date: October 2026 ยท still struct ne_phys_contig_mem_regions(9) โ€” mwah, bye ๐Ÿซถ๐Ÿ’œ

๐Ÿ“ฆ where this page comes from