dev_pm_opp_clear_config(9)
π dev_pm_opp_clear_config π
okay bestie, welcome to the dev_pm_opp_clear_config(9) page β yes that's the kernel API manual, and yes we're gonna get through it together π«Ά this one's about cleaning up after yourself, which honestly? iconic behavior.
β¨ NAME β¨
dev_pm_opp_clear_config β releases the resources that got blocked for OPP configuration. like, letting go of the stuff you claimed earlier. closure, basically π
πΈ SYNOPSIS πΈ
void dev_pm_opp_clear_config (int token );
π ARGUMENTS π
tokenβ the token thatdev_pm_opp_set_confighanded you earlier. you know, the little receipt it gave you π keep track of it, bestie.
π¦ DESCRIPTION π¦
so the whole point of this one: it lets you clear all the device OPP configurations at once. one swoop, all gone β¨
but here's the thing β and this is important, ngl β you must call it once for every single call you made to dev_pm_opp_set_config, so that the OPPs get freed properly. one call in, one call out. balanced. like it should be π§
and currently? the first call itself is the one that actually frees all the OPP configurations. the later calls just drop the OPP table reference. π€·ββοΈ
which honestly works well for now, because we would never want to be out here using a half initialized OPP table β we want to remove the configurations together, periodt. no half-finished vibes allowed π
π₯ SEE ALSO π₯
kernel file ./drivers/opp/core.c β and the whole squad, fr fr:
_find_opp_table(9)dev_pm_opp_get_bw(9)dev_pm_opp_get_voltage(9)dev_pm_opp_get_supplies(9)dev_pm_opp_get_power(9)dev_pm_opp_get_freq_indexed(9)dev_pm_opp_get_level(9)dev_pm_opp_get_required_pstate(9)dev_pm_opp_is_turbo(9)dev_pm_opp_get_max_clock_latency(9)dev_pm_opp_get_max_volt_latency(9)dev_pm_opp_get_max_transition_latency(9)dev_pm_opp_get_suspend_opp_freq(9)dev_pm_opp_get_opp_count(9)dev_pm_opp_find_freq_exact(9)dev_pm_opp_find_key_exact(9)dev_pm_opp_find_freq_exact_indexed(9)dev_pm_opp_find_freq_ceil(9)dev_pm_opp_find_freq_ceil_indexed(9)dev_pm_opp_find_freq_floor(9)dev_pm_opp_find_freq_floor_indexed(9)dev_pm_opp_find_level_exact(9)dev_pm_opp_find_level_ceil(9)dev_pm_opp_find_level_floor(9)dev_pm_opp_find_bw_ceil(9)dev_pm_opp_find_bw_floor(9)dev_pm_opp_set_rate(9)dev_pm_opp_set_opp(9)dev_pm_opp_remove(9)dev_pm_opp_remove_all_dynamic(9)_opp_add_v1(9)dev_pm_opp_set_config(9)devm_pm_opp_set_config(9)dev_pm_opp_xlate_required_opp(9)dev_pm_opp_xlate_performance_state(9)dev_pm_opp_add_dynamic(9)_opp_set_availability(9)dev_pm_opp_adjust_voltage(9)dev_pm_opp_sync_regulators(9)dev_pm_opp_enable(9)dev_pm_opp_disable(9)dev_pm_opp_register_notifier(9)dev_pm_opp_unregister_notifier(9)dev_pm_opp_remove_table(9)
π and that's the whole page!! this one lives in ./drivers/opp, dated October 2026, and it's part of the Kernel API Manual. go forth and clear those configs responsibly, bestie πβ¨
π¦ 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