xe_pm_runtime_suspended(9)
β¨ xe_pm_runtime_suspended(9) β¨
okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's lowkey important, so let's get into it π
π NAME π
xe_pm_runtime_suspended β literally just checks if the runtime_pm state is suspended π«Ά
πΈ SYNOPSIS πΈ
bool xe_pm_runtime_suspended (struct xe_device *xe );
π ARGUMENTS π
xeβ the xe device instance, aka the main character of this whole situation π
π¦ DESCRIPTION π¦
okay so here's the tea β: this function does not give you any guarantee that the device is actually going to stay suspended β because it might be racing with the runtime state transitions. so like, don't treat it as gospel, mmkay? π
it can be used only as a non-reliable assertion, for example to make sure we're not in the sleep state while we're trying to access some memory. it's giving "vibe check, not a promise" fr fr π
it returns true if the PCI device is suspended, and false otherwise. periodt β¨
ngl, the "non-reliable assertion" part is the whole personality of this function β don't build your whole life on it, bestie π
π SEE ALSO π
like, go read these too, they're all in the same friend group π«Ά
- Kernel file
./drivers/gpu/drm/xe/xe_pm.cXe Power Management(9) xe_pm_might_block_on_suspend(9)xe_pm_block_on_suspend(9)xe_rpm_reclaim_safe(9)xe_pm_suspend(9)xe_pm_resume(9)xe_pm_init_early(9)xe_pm_probe(9)xe_pm_init(9)xe_pm_fini(9)xe_pm_runtime_suspend(9)xe_pm_runtime_resume(9)xe_pm_runtime_get(9)xe_pm_runtime_put(9)xe_pm_runtime_get_ioctl(9)xe_pm_runtime_get_if_active(9)xe_pm_runtime_get_if_in_use(9)xe_pm_runtime_get_noresume(9)xe_pm_runtime_resume_and_get(9)xe_pm_assert_unbounded_bridge(9)xe_pm_set_vram_threshold(9)xe_pm_d3cold_allowed_toggle(9)xe_pm_module_init(9)
and that's the whole page, bestie π it lives over in ./drivers/gpu/drm/xe, dated October 2026 β stan a manual page that knows exactly what it is π β¨
π¦ 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