intel_displa...t_if_enabled(9)
π intel_display_power_get_if_enabled(9) β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual (yes, the whole manual, we're fancy) and it's about intel_display_power_get_if_enabled β literally the glow-up function for references. grab a snack π
πΈ NAME πΈ
intel_display_power_get_if_enabled β grab a reference for an enabled display power domain. that's it, that's the whole vibe check π
β¨ SYNOPSIS β¨
struct ref_tracker * intel_display_power_get_if_enabled (struct
intel_display *display , enum intel_display_power_domain domain );
look at her. struct ref_tracker * return type and everything. main character energy fr fr π
π«Ά ARGUMENTS π«Ά
displayβ the display device instance. like, the actual device you're doing this to πdomainβ the power domain to reference. the one you're claiming, no cap.
π¦ DESCRIPTION π¦
so here's the tea β: this function grabs a power domain reference for domain and makes sure that the power domain and all its parents are powered up. the way that it handles the whole family tree is honestly iconic π
bestie, because of that parent-wrangling, you should only ever grab a reference to the innermost power domain you actually need. don't be greedy, it's not cute π
and listen β any power domain reference you get from this function must have a symmetric call to intel_display_power_put to release the reference again. symmetric. like, matched set. you take it, you give it back, periodt πβ¨
π SEE ALSO π
the kernel file herself:
./drivers/gpu/drm/i915/display/intel_display_power.c
and the whole friend group (acquaintances? extended family? anyway, here's the list π«Ά):
intel_display_power_is_enabled(9)intel_display_power_set_target_dc_state(9)intel_display_power_get_current_dc_state(9)intel_display_power_get(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 whole page, bestie π this little masterpiece lives at ./drivers/gpu/drm/i915/display, it's dated October 2026, and it goes by intel_displa...t_if_enabled(9) β yes the name is truncated, no we will not be fixing it, it ate and left no crumbs π§β bye! π
π¦ 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