dev_pm_opp_...able_indexed(9)
β¨ dev_pm_opp_of_add_table_indexed(9) β¨
okay bestie, welcome to the Kernel API Manual π
this little cutie is dev_pm_opp_of_add_table_indexed β yes the header up top shortens it to dev_pm_opp_...able_indexed(9) because apparently even manpage headers get shy π β and it's here to get your OPP table poppin' straight out of the device tree πΈ
π NAME π
dev_pm_opp_of_add_table_indexed β initialize an indexed opp table from the device tree, no cap π¦
β SYNOPSIS β
int dev_pm_opp_of_add_table_indexed (struct device *dev , int index );
that's the whole vibe. two args, one int coming back atcha π₯
π«Ά ARGUMENTS π«Ά
devβ the device pointer, aka the lil handle we use to look up the OPP table. main character energy honestly πindexβ the index number. justβ¦ a number. an index one might say π
π DESCRIPTION π
So like β this function registers the initial OPP table with the OPP library for whatever device you passed in β¨ and it does it only using the "operating-points-v2" property. that's it, that's the whole personality. no other property gets a look in, periodt π
π RETURN π
ngl, there's no drama here β for the return values you gotta refer to dev_pm_opp_of_add_table π«Ά it's giving "ask your friend, she knows" and honestly? valid.
π¦ SEE ALSO π¦
Kernel file ./drivers/opp/of.c β that's where the magic lives, iykyk π§
and the whole friend group:
dev_pm_opp_of_remove_table(9)_opp_add_static_v2(9)devm_pm_opp_of_add_table(9)dev_pm_opp_of_add_table(9)devm_pm_opp_of_add_table_indexed(9)dev_pm_opp_of_cpumask_remove_table(9)dev_pm_opp_of_cpumask_add_table(9)dev_pm_opp_of_get_sharing_cpus(9)of_get_required_opp_performance_state(9)dev_pm_opp_of_has_required_opp(9)dev_pm_opp_get_of_node(9)dev_pm_opp_calc_power(9)dev_pm_opp_of_register_em(9)
π tiny reminder bestie: it's the initial table and it's indexed and it's "operating-points-v2"-only β don't go expecting it to read anything else, fr fr.
okay that's the whole page, ily, go forth and index your OPPs πΈπβ¨ this one came out of ./drivers/opp, dated October 2026 β mwah, see u in the next manpage π«Άπ
π¦ 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