devm_regulator_put(9)
πΈ bestie, it's devm_regulator_put(9) time πΈ
okay so welcome to the Kernel API Manual page for devm_regulator_put(9) π. This one's short and sweet and it's literally just "the devm cleanup girlies have it handled" energy. Let's go π«Ά
β¨ NAME β¨
devm_regulator_put β Resource managed regulator_put() π
it's giving "put but with devm magic", iykyk π
π¦ SYNOPSIS π¦
void devm_regulator_put (struct regulator *regulator );
πΌ ARGUMENTS πΌ
regulatorβ the regulator to free. that's her. that's the one. π«Ά
π DESCRIPTION π
so the tea β is: this function deallocates a regulator allocated with devm_regulator_get. periodt. that's the whole job.
but ngl bestie, normally this function will not need to be called β because the resource management code is main character energy π and will ensure that the resource is freed for you. so like, highkey you can just let devm do its thing and not stress. β¨
fr fr, you probably won't need to call this β the whole point of the devm_ prefix is that cleanup is automatic. π
π SEE ALSO π
kernel file ./drivers/regulator/devres.c plus all these icons:
devm_regulator_get(9)devm_regulator_get_exclusive(9)devm_regulator_get_enable_optional(9)devm_regulator_get_enable(9)devm_regulator_get_optional(9)devm_regulator_get_enable_read_voltage(9)devm_regulator_bulk_get(9)devm_regulator_bulk_get_exclusive(9)devm_regulator_bulk_get_const(9)devm_regulator_bulk_put(9)devm_regulator_bulk_get_enable(9)devm_regulator_register(9)devm_regulator_register_supply_alias(9)devm_regulator_bulk_register_supply_alias(9)devm_regulator_register_notifier(9)devm_regulator_unregister_notifier(9)devm_regulator_irq_helper(9)devm_of_regulator_get(9)devm_of_regulator_get_optional(9)
and that's the whole page bestie π. this icon lives in ./drivers/regulator, dated October 2026, version devm_regulator_put(9). mwah, slay, go let devm clean up after you πβπ
π¦ 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