intel_displa...r_is_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… intel_display_power_is_enabled β€” like, the whole vibe check for a power domain

okay so bestie, this one lives in the Kernel API Manual and it's genuinely such a useful little function, you're gonna love her 🫢

✨ NAME ✨

intel_display_power_is_enabled β€” check for a power domain πŸ’– (yes that's literally her whole job, iconic)

🌸 SYNOPSIS 🌸

bool intel_display_power_is_enabled (struct intel_display *display ,
       enum intel_display_power_domain domain );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • display β€” the display device instance, like, the actual thing you're poking at πŸ‘€
  • domain β€” the power domain you wanna check on. this is the one you're asking about, no cap

πŸŽ€ DESCRIPTION πŸŽ€

so the way that this works is β€” you use this function to check the hw power domain state. that's it, that's the whole thing ✨

she's mostly used in hardware state readout functions, which is very much her main character energy. everywhere else? bestie, pls β€” code should rely upon explicit power domain reference counting to make sure the hardware block is actually powered up before you go touching it. fr fr, do the refcounting, don't be messy πŸ’…

⚠️ and this part is important, so listen up: callers must hold the relevant modesetting locks to make sure concurrent threads can't disable the power well while the caller is trying to read a few registers. like, literally must. no locky-locky = no read-y-ready 😭

⭐ RETURN ⭐

True when the power domain is enabled, false otherwise. simple as that, slay 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/gpu/drm/i915/display/intel_display_power.c β€” go say hi 🧚


and that's the tea β˜• this page is brought to you from ./drivers/gpu/drm/i915/display, dated October 2026 β€” mwah, ily, go read your registers responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from