devm_devfreq..._remove_edev(9)
π devm_devfreq..._remove_edev(9)
okay so bestie, welcome to the Kernel API Manual β¨ β yes, the whole manual, and yes, this page is lowkey a little one, but it's iconic in its own way. sit down, grab a strawberry π, and let's get into it.
πΈ NAME πΈ
devm_devfreq_event_remove_edev β the resource-managed version of devfreq_event_remove_edev(). it's giving "cleanup, but make it automatic" π§Ήβ¨
π¦ SYNOPSIS π¦
void devm_devfreq_event_remove_edev (struct device *dev , struct
devfreq_event_dev *edev );
not me copying this character for character because that's the whole vibe π β it returns void, so like, no return value to obsess over.
π ARGUMENTS π
devβ the device that owns the devfreq-event device being created. main character energy π, it's the one holding the leash.edevβ the devfreq-event device itself. the little guy π«Ά.
β DESCRIPTION β
okay so here's the tea β β this function manages the memory of the devfreq-event device automatically using device resource management. no cap. you don't have to hand-clean anything, the devm_ machinery handles it for you. slay π
fr fr, the manpage's one and only note here is exactly that: memory management is automatic via device resource management. that's it, that's the whole description, and honestly? we love a concise queen.
π SEE ALSO π
the whole friend group π«Ά β go say hi:
- Kernel file
./drivers/devfreq/devfreq-event.c devfreq_event_enable_edev(9)devfreq_event_disable_edev(9)devfreq_event_is_enabled(9)devfreq_event_set_event(9)devfreq_event_get_event(9)devfreq_event_reset_event(9)devfreq_event_get_edev_by_phandle(9)devfreq_event_get_edev_count(9)devfreq_event_add_edev(9)devfreq_event_remove_edev(9)devm_devfreq_event_add_edev(9)
and that's the page, bestie π this one lives over in ./drivers/devfreq, dated October 2026, and it's filed under devm_devfreq..._remove_edev(9) β catch you on the next manpage, 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