STRUCT STUB_DPM_CONTEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct stub_dpm_context(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… β€” this is the page where we talk about struct stub_dpm_context, and honestly? It's giving "notebook where every fake DPM callback writes down what it did." πŸŽ€


🌸 NAME 🌸

struct stub_dpm_context β€” literally just Tracks stub DPM callback invocations πŸ¦‹


🫢 SYNOPSIS 🫢

struct stub_dpm_context {
    int ret_val;
    struct amd_pp_clock_info get_current_clocks_info;
    struct amd_pp_clocks get_clock_by_type_clocks;
    struct amd_pp_simple_clock_info get_validation_clks;
    int get_validation_clks_ret;
    struct pp_clock_levels_with_latency
get_clock_by_type_with_latency_clks;
    struct pp_clock_levels_with_voltage
get_clock_by_type_with_voltage_clks;
    int set_watermarks_ret;
    int display_clock_voltage_ret;
    int display_disable_memory_clock_switch_ret;
    int get_max_sustainable_ret;
    int get_uclk_dpm_ret;
    int get_dpm_clock_table_ret;
    int set_active_display_count_ret;
    int set_min_deep_sleep_dcefclk_ret;
 };

no cap, that's the whole struct, copied exactly, line breaks and all β€” don't @ me 😭


πŸ’– Members πŸ’–

  • ret_val β€” the return value for the next DPM callback ✨
  • get_current_clocks_info β€” clock info that the stub get_current_clocks hands back 🌸
  • get_clock_by_type_clocks β€” the clocks that stub get_clock_by_type returns πŸ¦‹
  • get_validation_clks β€” validation clocks returned by the stub πŸŽ€
  • get_validation_clks_ret β€” the return for get_display_mode_validation_clocks πŸ’…
  • get_clock_by_type_with_latency_clks β€” returned by the stub with_latency ⭐
  • get_clock_by_type_with_voltage_clks β€” returned by the stub with_voltage πŸ“
  • set_watermarks_ret β€” return value for set_watermarks πŸ’œ
  • display_clock_voltage_ret β€” return value for display_clock_voltage_request πŸ”₯
  • display_disable_memory_clock_switch_ret β€” return for disable_memory_clock πŸ™ˆ
  • get_max_sustainable_ret β€” return for get_max_sustainable_clocks_by_dc 🌈
  • get_uclk_dpm_ret β€” return for get_uclk_dpm_states πŸ‘‘
  • get_dpm_clock_table_ret β€” return for get_dpm_clock_table 🧚
  • set_active_display_count_ret β€” return for set_active_display_count πŸ’€
  • set_min_deep_sleep_dcefclk_ret β€” return for set_min_deep_sleep_dcefclk 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

bestie there are so many of these and I'm listing every single one, periodt πŸ‘‘


and that's the whole page, bestie, iykyk 🌈

mwah πŸ’‹ β€” this cutie came from the source path ./drivers/gpu/drm/amd/display/..., dated October 2026, and it's page struct stub_dpm_context(9) all the way down. go read the tests, they ate πŸ”₯

πŸ“¦ where this page comes from