STRUCT DMEM_CGROUP_INIT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

hii bestie!! welcome to the Kernel API Manual ✨ this page is about struct dmem_cgroup_init β€” literally the initialization parameters for a dmem cgroup region. it's giving β€œsmall struct, important job,” and we’re obsessed πŸ’…

🌸 NAME 🌸

struct dmem_cgroup_init β€” initialization parameters for a dmem cgroup region. periodt 🫢

✨ SYNOPSIS ✨

okay so here’s the exact shape of it, no cap:

struct dmem_cgroup_init {
    u64 size;
    const struct dmem_cgroup_ops *ops;
    void *reclaim_priv;
};

πŸŽ€ Members πŸŽ€

  • size β€” size of the region in bytes. yes, bytes bestie πŸ“
  • ops β€” optional operations for this region. may be NULL. optional! lowkey chill πŸ’«
  • reclaim_priv β€” opaque pointer passed to ops->reclaim. may be NULL. it’s giving β€œyou don’t need to know what’s inside” πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • kernel file ./include/linux/cgroup_dmem.h β€” go read it, iykyk πŸ“š
  • struct dmem_cgroup_ops(9) β€” the ops bestie ✨

mwah πŸ’‹ signed off from ./include/linux, October 2026, all about struct dmem_cgroup_init(9) β€” bye bestie, slay responsibly 🌈

πŸ“¦ where this page comes from