with_intel_gt_pm_if_awake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… with_intel_gt_pm_if_awake(9) πŸ’…

okay so bestie, this little icon is from the Kernel API Manual, and it's here to explain one very specific vibe: checking if the GT is PM awake, grabbing a reference so it stays awake, running some code, and then asynchronously putting that reference away. slay. ✨


πŸŽ€ NAME πŸŽ€

with_intel_gt_pm_if_awake β€” if the GT is PM awake, get a reference to prevent it from going to sleep, run some code, and then asynchronously put the reference away. that's the whole plot, no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

the summoning circle looks like this, exactly:

with_intel_gt_pm_if_awake (gt , wf );

🌸 ARGUMENTS 🌸

  • gt β€” pointer to the gt. yes bestie, that's literally it. πŸ‘‘
  • wf β€” pointer to a temporary wakeref. iconic little temporary-reference moment. 🫢

⭐ SEE ALSO ⭐

  • Kernel file ./drivers/gpu/drm/i915/gt/intel_gt_pm.h

lowkey that's the entire page. short, sweet, and absolutely doing the most with the least. πŸ’€βœ¨

and that's a wrap, bestie β€” source/version: ./drivers/gpu/drm/i915/gt, date: October 2026, page: with_intel_gt_pm_if_awake(9). mwah. πŸ’œπŸŽ€

πŸ“¦ where this page comes from