ENUM SWITCH_POWER_STATE(9)
π 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
- 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