dev_pm_opp_get_bw(9)
π dev_pm_opp_get_bw β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil function called dev_pm_opp_get_bw and it's genuinely so straightforward you're gonna slay it. it's giving "small but mighty", yk? π
β¨ NAME β¨
dev_pm_opp_get_bw β literally just gets the bandwidth corresponding to an opp π¦
πΈ SYNOPSIS πΈ
unsigned long dev_pm_opp_get_bw (struct dev_pm_opp *opp , bool peak ,
int index );
like yes that's the whole signature, no cap π
π«Ά ARGUMENTS π«Ά
oppβ the opp you want the bandwidth for, bestie. that's who we're asking about πpeakβ this lilboolpicks which bandwidth you get back: peak or average. choose your fighter πindexβ the bandwidth index. yep, there can be more than one, so tell it which one you mean π₯
β RETURN β
bandwidth in kBps π β¦ else it returns 0. that's it, that's the whole deal. no drama, no surprises π
π SEE ALSO π
so like, there's a whole friend group of opp functions and honestly they're all iconic. go say hi π§
- Kernel file
./drivers/opp/core.c_find_opp_table(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)dev_pm_opp_clear_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 page babes π«Ά this one lives under ./drivers/opp and it's dated October 2026 β mwah, go touch some bandwidth πβ¨
π¦ 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