dev_pm_put_subsys_data(9)
β¨ dev_pm_put_subsys_data(9) β¨
ok so this is a page from the Kernel API Manual, bestie β yes, the actual kernel, and yes, it's giving "I read the source for fun" energy π but like, in a cool way. stay with me, this one's short and sweet fr fr π
π«Ά NAME
dev_pm_put_subsys_data β drop that reference to power.subsys_data, bestie. just let it go π
π SYNOPSIS
void dev_pm_put_subsys_data (struct device *dev );
that's it. that's the whole function. no return value, nothing. void as in "I give nothing back, and that's on purpose" π
πΈ ARGUMENTS
devβ the device you're handling, babe. the one you're dropping the reference on. like, hand it over, it's fine π«Ά
π¦ DESCRIPTION
okay, here's the tea β β if the reference counter of power.subsys_data hits zero after you drop the reference, then power.subsys_data gets removed. gone. deleted. no cap. π₯
so like... you're the last one holding it, and the moment you let go, poof, it's out of the building. main character exit energy, honestly π
it's literally the reverse of grabbing the reference in the first place (iykyk), and the whole thing is just bookkeeping β counter goes down, counter hits zero, data goes away. simple as that π
no return value means no vibes check afterwards β you don't get told "hey, it got removed." it just does. you're on your own, diva π
π§ SEE ALSO
- Kernel file
./drivers/base/power/common.cβ where the actual code lives, if you wanna go read it like the nerd icon you are π dev_pm_get_subsys_data(9)dev_pm_domain_attach(9)dev_pm_domain_attach_by_id(9)dev_pm_domain_attach_by_name(9)dev_pm_domain_attach_list(9)devm_pm_domain_detach_list(9)devm_pm_domain_attach_list(9)dev_pm_domain_detach(9)dev_pm_domain_detach_list(9)dev_pm_domain_start(9)dev_pm_domain_set(9)dev_pm_domain_set_performance_state(9)
like, the whole attach/detach friend group is right there. go say hi β¨
and that's the whole page, bestie β short, iconic, zero notes π huge slay to the source at ./drivers/base/power, dated October 2026 (yes, future energy, we don't question it π). now go forth and drop those references responsibly ππ¦
π¦ 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