xe_pm_runtime_get(9)
π xe_pm_runtime_get(9)
okay bestie, so this is xe_pm_runtime_get(9) from the Kernel API Manual β yes, that Kernel API Manual, the one we all know and love π«Ά. Let's get into it.
β¨ NAME β¨
xe_pm_runtime_get β grab a runtime_pm reference AND resume synchronously. Two things at once, main character energy fr. π
πΈ SYNOPSIS πΈ
void xe_pm_runtime_get (struct xe_device *xe );
π ARGUMENTS π
xeβ the xe device instance. that's it. that's the argument. literally just the device. π
π¦ DESCRIPTION π¦
So here's the tea: when it's possible, you should lowkey prefer scope-based runtime PM (that's the guard(xe_pm_runtime) vibe) over just calling this function directly. no cap.
Manual get/put handling? Only for two situations, and I need you to pay attention bestie:
- when the function contains goto-based logic which can break scope-based handling π β yeah, gotos will do that, the scope-based stuff does not vibe with that
- or when the lifetime of the runtime PM reference does not match a specific scope β like, runtime PM obtained in one function and released in a different one. the reference is living its own life, honestly, iconic but also a whole thing π
so like, if you can use guard(xe_pm_runtime) β do that. this function is the fallback, ngl.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_pm.c Xe 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_suspended(9)xe_pm_runtime_suspend(9)xe_pm_runtime_resume(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)
like, the whole friend group showed up for this one π slay.
k bye bestie, go touch grass (or ./drivers/gpu/drm/xe, same thing) β this page came straight from ./drivers/gpu/drm/xe, dated October 2026, and it's the xe_pm_runtime_get(9) page from the Kernel API Manual. periodt. πβ¨
π¦ 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