drmm_release_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 when dev is released
  • data β€” an opaque pointer, passed along to action (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 🫢

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