ENUM SWITCH_POWER_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum switch_power_state(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're in the kernel docs, put your seatbelt on πŸŽ€


✨ NAME ✨

enum switch_power_state β€” the power state of a drm device, literally just that πŸ’–


🌸 SYNOPSIS 🌸

enum switch_power_state {
    DRM_SWITCH_POWER_ON ,
    DRM_SWITCH_POWER_OFF ,
    DRM_SWITCH_POWER_CHANGING ,
    DRM_SWITCH_POWER_DYNAMIC_OFF

};

like look at her, four vibes, one enum, no cap πŸ¦‹


πŸ‘‘ Constants πŸ‘‘

so these are the four states your drm device can be in, and yes each one has main character energy:

  • DRM_SWITCH_POWER_ON β€” power state is ON. she's awake, she's serving, we love to see it ⭐
  • DRM_SWITCH_POWER_OFF β€” power state is OFF. asleep. dormant. do not disturb πŸ’€
  • DRM_SWITCH_POWER_CHANGING β€” power state is changing. mid-transition, in her chrysalis era, do NOT interrupt 🧚
  • DRM_SWITCH_POWER_DYNAMIC_OFF β€” Suspended. it's giving nap time, and honestly? relatable πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

  • kernel file ./include/drm/drm_device.h
  • struct drm_wedge_task_info(9)
  • struct drm_device(9)
  • drm_dev_dma_dev(9)

iykyk, go read those next, bestie β€” the way they all connect is lowkey iconic 🫢


ngl this whole page lives in ./include/drm and it's dated October 2026, so like… future iconic πŸ’œ slay, periodt 🌈

okay that's the whole page, you ate that, go be a kernel girlie now πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from