dc_get_powe...for_dc_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dc_get_power_profile_for_dc_state(9) β€” like, the whole glow-up ✨

okay bestie, welcome to the Kernel API Manual πŸŽ€ β€” yes that's the manual name, and yes it's giving "I read kernel docs for fun" main character energy. today's episode: a tiny little getter function that pulls a power profile out of a dc state. short page, but we're gonna treat it with the respect it deserves πŸ’–


🌸 NAME 🌸

dc_get_power_profile_for_dc_state β€” literally just extracts the power profile from a dc state, that's the whole job, no cap 🫢


✨ SYNOPSIS ✨

struct dc_power_profile dc_get_power_profile_for_dc_state (const struct
dc_state *context );

like, that's the entire signature. it takes one const struct dc_state * and hands you back a struct dc_power_profile. iconic behaviour, honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • context β€” pointer to the dc_state that we're yoinking the power profile out of. that's it, that's the argument πŸ“

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe: this gets called when the DM wants to make power policy decisions based on the dc_state. like, DM is over here trying to figure out its power moves and it's like "hey bestie, what's the profile" and this function is the one who answers πŸ“žπŸ’…

lowkey a small function, highkey important β€” the power people need their info and this is the plug ✨


πŸ”₯ RETURN πŸ”₯

it returns the power profile structure containing the power level information. that's your prize, bestie, go off πŸŽ€


🌈 SEE ALSO 🌈

okay this list is LONG, so buckle up, we're going through every single one β€” no skipping, no summarising, periodt πŸ’€

like, that's the whole friend group right there 😭🫢 go read them too, iykyk


and that's the page, bestie!! sourced from ./drivers/gpu/drm/amd/display/... and dated October 2026 β€” so yeah, future vibes only 🌸✨ mwah πŸ’‹

πŸ“¦ where this page comes from