amdgpu_pm_dev_state_check(9)
π amdgpu_pm_dev_state_check β like, the whole kernel API manual vibe
okay so bestie, welcome to the amdgpu_pm_dev_state_check(9) page, straight out of the Kernel API Manual β¨ this one's a little check-in function and honestly it's giving bodyguard energy π«Ά
β¨ NAME β¨
amdgpu_pm_dev_state_check β Check if device can be accessed. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
int amdgpu_pm_dev_state_check (struct amdgpu_device *adev , bool runpm
);
like yes, two arguments, one int coming back at you, no cap π
π ARGUMENTS π
adevβ Target device. the main character of this whole situation πrunpmβ Check runpm status for suspend state checks. so like, when you set this, it's also doing a vibe check on the runpm status for the suspend state checks π¦
π DESCRIPTION π
okay so here's the tea π β this function checks the state of the adev for access. that's the whole plot.
- returns
0if the device is accessible β slay - returns a negative error code otherwise π not slay
literally that's it, no hidden lore, no secret extra params, periodt π
ngl bestie, always check that return value β a negative error code means the device said "not rn" and you gotta respect that π
π¦ SEE ALSO π¦
the friend group, in order, no one left out π:
- Kernel file
./drivers/gpu/drm/amd/pm/amdgpu_pm.c amdgpu_pm_get_access(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_sclkpp_dpm_mclkpp_dpm_socclkpp_dpm_fclkpp_dpm_dcefclkpp_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)
and that's the page!! π§ source situation is ./drivers/gpu/drm/amd/pm, dated October 2026, and yes the manual name is amdgpu_pm_dev_state_check(9) all over again because that's just how manpages do π k byeee, go check your device state 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