intel_displa...t_if_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🫢):


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