intel_wakeref_get(9)
π 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
__intel_wakeref_get(9)intel_wakeref_get_if_active(9)__intel_wakeref_put(9)intel_wakeref_lock(9)intel_wakeref_unlock(9)intel_wakeref_unlock_wait(9)intel_wakeref_is_active(9)__intel_wakeref_defer_park(9)intel_wakeref_wait_for_idle(9)intel_wakeref_auto(9)
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
- 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