xe_pm_runtime_suspended(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🫢


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