devm_remove_action(9)
π 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 itactionβ Function implementing the action π₯ the actual function pointer doing the workdataβ Pointer to data passed to action implementation π it gets handed straight toaction
π¦ 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:actionanddataboth 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
- 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