STRUCT MEMBLOCK_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct memblock_type(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct memblock_type, which is literally the whole concept of "a collection of memory regions of certain type". like, that's it, that's the vibe. one struct, one job. iconic.


✨ NAME ✨

struct memblock_type β€” a collection of memory regions of certain type 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct memblock_type {
    unsigned long cnt;
    unsigned long max;
    phys_addr_t total_size;
    struct memblock_region *regions;
    char *name;
 };

🌸 Members 🌸

  • cnt β€” the number of regions. how many we actually got. the headcount πŸ’…
  • max β€” the size of the allocated array. like, the capacity we've committed to, not the number of guests who showed up.
  • total_size β€” the size of all regions. all of them. together. the whole squad combined πŸ”₯
  • regions β€” the array of regions. this is the actual list, the main character of the whole struct ngl 🌟
  • name β€” the memory type symbolic name. so it knows what to call itself. labels are self-care ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/memblock.h, plus literally all of these besties:


ngl that's a lot of macro besties. go read them, they miss you. πŸ’€

so yeah, that's the whole page β€” straight out of ./include/linux, dated October 2026, and delivered to you with love from the Kernel API Manual. go be a linux girlie, you've got this πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from