devm_remove_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_remove_action(9) β€” your girl's guide to taking back that action

okay so bestie, welcome to the Kernel API Manual ✨ like yes this is a manpage but make it cute β€” we're talking about devm_remove_action today and honestly it's giving "cleanup era" πŸ§ΉπŸ’–


✨ NAME ✨

devm_remove_action β€” removes previously added custom action 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void devm_remove_action (struct device *dev , void (*action)(void *) ,
       void *data );

that's the whole signature, no cap. three things go in, nothing comes back out (void, she says nothing) πŸ’…


🌸 ARGUMENTS 🌸

  • dev β€” Device that owns the action πŸ‘‘ like this device is the main character, the action belongs to it
  • action β€” Function implementing the action πŸ”₯ the actual function pointer doing the work
  • data β€” Pointer to data passed to action implementation πŸ“ it gets handed straight to action

πŸ¦‹ DESCRIPTION πŸ¦‹

Removes instance of action previously added by devm_add_action. both action and data should match one of the existing entries β€” like, fr fr, both of them, it's not gonna vibe-check just one πŸ™ˆ

lowkey important: action and data both have to match an entry that's already there. don't come at it with half the pair 😭

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/device/devres.h πŸŽ€ (yes, that's a kernel file, go look at it iykyk)
  • devm_alloc_percpu(9) ⭐

and that's the page, bestie!! πŸ’œ you ate that, no crumbs πŸ“

./include/linux/device β€” October 2026 πŸ§šπŸ’– slay and goodbye ✨

πŸ“¦ where this page comes from