intel_wakeref_lock(9)
π intel_wakeref_lock π
Okay bestie, so this is a page from the Kernel API Manual β it's intel_wakeref_lock(9), and no cap, it's a little one-parter that does exactly what it says on the tin. Sit with me for a sec π«Ά
β¨ NAME β¨
intel_wakeref_lock β locks the wakeref (mutex), periodt π
πΈ SYNOPSIS πΈ
void intel_wakeref_lock (struct intel_wakeref *wf );
π ARGUMENTS π
wfβ the wakeref. That's it, that's the whole vibe π¦
π DESCRIPTION π
So here's the tea π β this function locks the wakeref so nobody can acquire or release it. It's giving "do not disturb" mode, lowkey.
New users can still adjust the counter (they're allowed to peek at the numbers, bestie, we're not monsters π), but the wakeref itself β and its callback β cannot be acquired or released while it's locked. That's the whole point. Main character lock energy πβ¨
π SEE ALSO π
Kernel file ./drivers/gpu/drm/i915/intel_wakeref.h β and the whole friend group of related calls, iykyk:
intel_wakeref_get(9)__intel_wakeref_get(9)intel_wakeref_get_if_active(9)__intel_wakeref_put(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)
π§ cute little sign-off π§
This whole situation lives under ./drivers/gpu/drm/i915, dated October 2026 β screenshot it, save it, obsess over it π Thanks for coming to my Ted Talk, bestie, slay π
β¨
π¦ 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