drmm_release_action(9)
β¨ drmm_release_action(9) β¨
okay bestie, welcome to the Kernel API Manual π this is a real page out of the kernel docs, and honestly? it's a little baddie. let's get into it π
πΈ NAME πΈ
drmm_release_action β release a managed action from a &drm_device
like, you know how some things just wait around to be cleaned up later? yeah. this is the "ok actually do it right now" button π
β¨ SYNOPSIS β¨
void drmm_release_action (struct drm_device *dev , drmres_release_t
action , void *data );
she's a void function, so she doesn't return anything β she just does the thing and dips π¦
π ARGUMENTS π
devβ the DRM device, aka the main character here πactionβ the function that would get called whendevis releaseddataβ an opaque pointer, passed along toaction(she's mysterious, she's giving enigma, we don't look inside π)
π DESCRIPTION π
so here's the tea, bestie: this function calls the action β the one that was previously added by drmm_add_action β immediately. right now. no waiting. no "later." periodt.
and because it's already been handled, the action is removed from the list of cleanup actions for dev. which means the way that it won't get called again in the final drm_dev_put β that's the whole point, that's the vibe check, that's the slay β
ngl this is a real lowkey important one: call it early, and the cleanup fires early. call it and it's gone from the list, so the final drm_dev_put won't double up on you π₯
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/gpu/drm/drm_managed.c managed resources(9)drmm_kmalloc(9)drmm_kstrdup(9)drmm_kfree(9)
go read those too, they're literally the friend group π
k byeee, this page lives in ./drivers/gpu/drm and it's dated October 2026 β so mark your calendar, mwah ππ
π
π¦ 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