intel_displa...r_is_enabled(9)
π 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 π§
intel_display_power_set_target_dc_state(9)intel_display_power_get_current_dc_state(9)intel_display_power_get(9)intel_display_power_get_if_enabled(9)__intel_display_power_put_async(9)intel_display_power_flush_work(9)intel_display_power_flush_work_sync(9)intel_display_power_put(9)intel_display_power_put_unchecked(9)intel_display_power_init(9)intel_display_power_cleanup(9)intel_display_power_init_hw(9)intel_display_power_driver_remove(9)intel_display_power_sanitize_state(9)intel_display_power_enable(9)intel_display_power_disable(9)intel_power_domains_suspend(9)intel_power_domains_resume(9)intel_power_domains_verify_state(9)
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
- 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