amdgpu_pm_get_access(9)
π amdgpu_pm_get_access β the Kernel API Manualβ’ β¨
okay so bestie, this is a page from the Kernel API Manual, and it's about one function: amdgpu_pm_get_access. it's short, it's sweet, and it's lowkey doing important work behind the scenes π«Ά
πΈ NAME πΈ
amdgpu_pm_get_access β literally just: check if the device can be accessed, and resume it if needed π
β¨ SYNOPSIS β¨
int amdgpu_pm_get_access (struct amdgpu_device *adev );
that's it. one function, one argument, returns an int. iconic behaviour honestly π
π ARGUMENTS π
adevβ the target device. like, the specificstruct amdgpu_deviceyou're asking about. that's the whole vibe π¦
π DESCRIPTION π
so what does it actually do? it checks the state of adev for access β vibe check the device, basically. if the device isn't ready yet, it uses the runtime pm API to resume it, so it can actually be reached π₯
returns 0 if the device is accessible, or a negative error code otherwise. no cap, that's the whole contract π
ngl, always check the return value. negative error code = the device is not giving accessible energy, and you should handle that instead of pretending everything's fine π
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/pm/amdgpu_pm.c β go read it, iykyk π
and because this function doesn't exist in a vacuum, here's the whole friend group it runs with:
amdgpu_pm_dev_state_check(9)amdgpu_pm_get_access_if_active(9)amdgpu_pm_put_access(9)power_dpm_state(9)power_dpm_force_performance_level(9)pp_table(9)pp_od_clk_voltage(9)pp_features(9)pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk pp_dpm_pcie(9)pp_power_profile_mode(9)gpu_busy_percent(9)mem_busy_percent(9)vcn_busy_percent(9)pcie_bw(9)unique_id(9)thermal_throttling_logging(9)apu_thermal_cap(9)gpu_metrics(9)smartshift_apu_power(9)smartshift_dgpu_power(9)smartshift_bias(9)board(9)baseboard_temp(9)gpuboard_temp(9)cur_node_power_limit(9)node_power(9)npm_status(9)global_ppt_resid(9)max_node_power_limit(9)baseboard_power(9)baseboard_power_limit(9)pm_policy(9)hwmon(9)fan_curve(9)acoustic_limit_rpm_threshold(9)acoustic_target_rpm_threshold(9)fan_target_temperature(9)fan_minimum_pwm(9)fan_zero_rpm_enable(9)fan_zero_rpm_stop_temperature(9)
that's a lot of siblings and honestly? main character energy for the whole amdgpu pm family π
mwah π that's the page. sourced from ./drivers/gpu/drm/amd/pm, dated October 2026, and filed under amdgpu_pm_get_access(9) β go forth and resume your devices responsibly 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