dev_pm_opp_get_freq_indexed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dev_pm_opp_get_freq_indexed ✨

okay bestie, welcome to the Kernel API Manual, section 9 β€” yes we're in the deep kernel lore today and honestly? it's giving main character energy πŸ’… this one's called dev_pm_opp_get_freq_indexed, and no cap it does exactly what the name says: it hands you the frequency for an available opp at the index you asked for πŸŽ€


🌸 NAME 🌸

dev_pm_opp_get_freq_indexed β€” grabs the frequency that matches an available opp with the specified index, periodt πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned long dev_pm_opp_get_freq_indexed (struct dev_pm_opp *opp , u32 index );

✨ ARGUMENTS ✨

  • opp β€” the opp you want the frequency for, like the whole vibe you're querying 🫢
  • index β€” which frequency you're after within the required opp, iykyk πŸ”₯

πŸ’œ RETURN πŸ’œ

frequency in hertz corresponding to the opp with that specified index, and if that doesn't work out? it returns 0 😭 (yes, zero, the saddest number)


🧚 SEE ALSO 🧚

Kernel file ./drivers/opp/core.c β€” plus the whole friend group, because kernel devs love a linked list of cross-references 🌈:

_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_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)


okay that's the whole page, you ate that bestie πŸ’…βœ¨ this one came straight out of ./drivers/opp, dated October 2026 β€” go touch some regulators, ily, bye πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from