intel_wakeref_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– intel_wakeref_get(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's all about intel_wakeref_get, and honestly? it's giving "hold my spot, i'm gonna go touch the hardware" energy ✨


🌸 NAME 🌸

intel_wakeref_get β€” acquire the wakeref πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int intel_wakeref_get (struct intel_wakeref *wf );

πŸŽ€ ARGUMENTS πŸŽ€

  • wf β€” the wakeref, bestie. that's the one. 🫢

✨ DESCRIPTION ✨

So like, what this does is acquire a hold on the wakeref. Simple enough, right? But here's the iconic part πŸ‘‘

The first user to do so is the main character β€” they will acquire the runtime pm wakeref, and then call the intel_wakeref_ops->get underneath the wakeref mutex. periodt. πŸ”₯

⚠️ Heads up, because this part actually matters: intel_wakeref_ops->get is allowed to fail. If it does, the runtime-pm wakeref gets released and the acquisition is unwound, and an error is reported. So yeah β€” not me assuming it always works 😭 it does not.

πŸ’€ RETURN πŸ’€

  • 0 β€” slay πŸ’… the wakeref was acquired successfully
  • a negative error code β€” otherwise. it said no. πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/i915/intel_wakeref.h


okay that's the whole page, iykyk πŸ§šπŸ’œ

and for the little sign-off at the bottom, bestie: this one lives in ./drivers/gpu/drm/i915, and the version/date stamp on it says October 2026 β€” go off, calendar πŸ—“οΈβ­

πŸ“¦ where this page comes from