dc_get_powe...for_dc_state(9)
π
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 thedc_statethat 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 π
- Kernel file
./drivers/gpu/drm/amd/display/dc/core/dc.cOverview(9) dc_stream_get_last_used_drr_vtotal(9)dc_stream_configure_crc(9)dc_stream_get_crc(9)dc_stream_adjust_vmin_vmax(9)dc_commit_state_no_check(9)dc_commit_streams(9)dc_check_state_update(9)dc_check_update_surfaces_for_stream(9)update_seamless_boot_flags(9)update_planes_and_stream_state(9)dc_check_address_only_update(9)build_dmub_cmd_list(9)could_mpcc_tree_change_for_active_pipes(9)commit_minimal_transition_state_in_dc_update(9)commit_minimal_transition_state(9)dc_update_state(9)dc_update_planes_and_stream(9)dc_enable_dcmode_clk_limit(9)dc_is_dmub_outbox_supported(9)dc_enable_dmub_notifications(9)dc_enable_dmub_outbox(9)dc_process_dmub_aux_transfer_async(9)dc_process_dmub_set_config_async(9)dc_process_dmub_set_mst_slots(9)dc_process_dmub_dpia_set_tps_notification(9)dc_process_dmub_dpia_hpd_int_enable(9)dc_print_dmub_diagnostic_data(9)dc_disable_accelerated_mode(9)dc_notify_vsync_int_state(9)dc_set_edp_power(9)dc_get_det_buffer_size_from_state(9)dc_get_host_router_index(9)should_commit_intermediate_context(9)dc_update_probes_prepare(9)dc_update_probes_execute(9)
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
- 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