drmm_cgroup_register_region(9)
π drmm_cgroup_register_region β from the Kernel API Manual, bestie β¨
okay so picture this: it's a (9) page, it lives in the Kernel API Manual, and its whole personality is "register a region of a DRM device to cgroups." yes that's the NAME section and yes we're getting into it π«Ά
β¨ SYNOPSIS β¨
struct dmem_cgroup_region * drmm_cgroup_register_region (struct
drm_device *dev , const char *region_name , const struct
dmem_cgroup_init *init );
like, copy that exactly before you come for me π it returns a struct dmem_cgroup_region * and it takes three things, that's the whole vibe.
π ARGUMENTS π
devβ the device for the region. yeah. that one. πregion_nameβ the region name for registering, so literally the string that names your region, name it something cute πΈinitβ initialization parameters for the region. all the setup deets go here β¨
π DESCRIPTION π
okay so here's where it gets iconic and honestly a little unhinged β this one decreases the ref-count of dev by one. and then: the device is destroyed if the ref-count drops to zero. that's it. that's the description. π
so like, mind the ref-count, bestie, because zero means the device is gone gone. no cap. π₯
i'm just the messenger fr fr β the page says what it says and we do not editorialize (much) π
π¦ SEE ALSO π¦
the whole friend group, in the order the page gave them, no cap:
- Kernel file
./drivers/gpu/drm/drm_drv.cdriver instance overview(9) drm_put_dev(9)drm_dev_enter(9)drm_dev_exit(9)drm_dev_unplug(9)drm_dev_set_dma_dev(9)drm_dev_wedged_event(9)- component helper usage recommendations(9)
__drm_dev_alloc(9)drm_dev_alloc(9)drm_dev_get(9)drm_dev_put(9)drm_dev_register(9)drm_dev_unregister(9)
and that's the whole page, bestie!! π§ mwah π this little cutie comes to you from ./drivers/gpu/drm, dated October 2026 β go off, October 2026, periodt. πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms