STRUCT NE_MEM_REGION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ne_mem_region πŸ’–

okay so welcome to the Kernel API Manual, bestie 🫢 this page is literally all about struct ne_mem_region(9) β€” the entry in the enclave user space memory regions list. It’s giving kernel struct realness, and we’re gonna walk through every single field so you can pass the vibe check with zero notes. ✨

🌸 NAME 🌸

struct ne_mem_region β€” entry in the enclave user space memory regions list. periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct ne_mem_region {
           struct list_head        mem_region_list_entry;
           u64 memory_size;
           unsigned long           nr_pages;
           struct page             **pages;
           u64 userspace_addr;
        };

πŸ’… Members πŸ’…

okay bestie, field-by-field breakdown, no cap:

  • mem_region_list_entry β€” entry in the list of enclave memory regions. it’s the list-entry moment, iconic behavior only. πŸŽ€
  • memory_size β€” size of the user space memory region. yes, the whole size. not a little guy. πŸ’–
  • nr_pages β€” number of pages that make up the memory region. counting era fr fr. πŸ”’
  • pages β€” pages that make up the user space memory region. the actual page squad. πŸ¦‹
  • userspace_addr β€” user space address of the memory region. the address, bestie. that’s the whole vibe. 🌸

🌈 SEE ALSO 🌈

kernel file ./drivers/virt/nitro_enclaves/ne_misc_dev.h β€” plus these icons: struct ne_enclave(9), enum ne_state(9), and struct ne_devs(9). go read them, iykyk πŸ’œ


source/version: ./drivers/virt/nitro_enclaves Β· date: October 2026 Β· page: struct ne_mem_region(9) β€” bye bestie, stay iconic πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from