dev_pm_opp_...sk_add_table(9)
β¨ dev_pm_opp_of_cpumask_add_table β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil' function page and honestly it's giving "quietly does something very important" energy. sit down, grab a lil snack π, we're learning today.
πΈ NAME πΈ
dev_pm_opp_of_cpumask_add_table β adds the OPP table for @cpumask. that's literally it, that's the whole vibe π«Ά
β SYNOPSIS β
int dev_pm_opp_of_cpumask_add_table (const struct cpumask *cpumask );
look at her. one argument. returns an int. no cap, she's lowkey elegant π
π ARGUMENTS π
cpumaskβ thecpumaskfor which the OPP table needs to be added. like, this is you telling the function "bestie, these CPUs, right here, they need a table" π and she's gonna go get it.
π¦ DESCRIPTION π¦
so what does she actually do? she adds the OPP tables for the CPUs that are present in the cpumask. that's the entire thing, fr fr π
the way that you hand her a cpumask and she just... goes and sets up the OPP tables for whichever CPUs made it into that mask. iconic behaviour, honestly. no extra steps, no β¨surpriseβ¨ side quests β she adds the tables for the CPUs in the mask. periodt. π
π SEE ALSO π
this is the part where she tags everyone in the group chat π± so here's the whole crew β every single one of them, no one gets left on read:
Kernel file ./drivers/opp/of.cβ the source file where the magic lives, iykyk π§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)dev_pm_opp_of_add_table_indexed(9)devm_pm_opp_of_add_table_indexed(9)dev_pm_opp_of_cpumask_remove_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 reality check babe:cpumaskis aconst struct cpumask *, and the whole thing comes back as anintβ don't forget, this is C land, we respect the types here π«Ά
alright that's the page!! π you made it to the end, I'm so proud, literally glowing for you π₯Ήβ¨ this was brought to you by the ./drivers/opp directory gang (the one and only π
), dated October 2026 in all its glory β mwah, stan, go add some tables 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