intel_wakeref_get_if_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ intel_wakeref_get_if_active(9) πŸŽ€

okay bestie, welcome to this Kernel API Manual page β€” we're talking about intel_wakeref_get_if_active, and it's honestly a pretty chill one. πŸ’…


πŸ’– NAME πŸ’–

intel_wakeref_get_if_active β€” Acquire the wakeref


✨ SYNOPSIS ✨

bool intel_wakeref_get_if_active (struct intel_wakeref *wf );

🫢 ARGUMENTS 🫢

  • wf β€” the wakeref, aka the struct you're working with. πŸ¦‹

🌸 DESCRIPTION 🌸

So here's the vibe: this function acquires a hold on the wakeref, but ONLY if that wakeref is already active. No cap β€” that's the whole condition. If it's already active, it grabs the hold; if not, it doesn't. ✨


⭐ RETURN ⭐

true if the wakeref was acquired, and false otherwise. Simple as that, bestie. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

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


and that's the tea πŸ“ this page lives in the ./drivers/gpu/drm/i915 source tree, dated October 2026, and it's the intel_wakeref_get_if_active(9) page from this Kernel API Manual β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from