drm_client_s...h_color_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_client_setup_with_color_mode(9)

okay so real talk bestie, we're in the Kernel API Manual today β€” this is the page for drm_client_setup_with_color_mode(9) and honestly? it's a little retro, a little "you're on thin ice", and we're gonna get through it together 🫢


✨ NAME ✨

drm_client_setup_with_color_mode β€” Setup in-kernel DRM clients for color mode 🌈

literally that's the whole vibe. it sets up the in-kernel DRM clients, but with color mode energy.


πŸŽ€ SYNOPSIS πŸŽ€

void drm_client_setup_with_color_mode (struct drm_device *dev , unsigned
int color_mode );

no cap, that's the exact signature. two args, no return, void queen πŸ‘‘


🌸 ARGUMENTS 🌸

  • dev β€” the DRM device. your main character struct πŸ–₯️
  • color_mode β€” the preferred color mode for the device. key word preferred, she's not out here guaranteeing anything πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she do? she sets up the in-kernel DRM clients. that's it, that's the job πŸ’–

It is equivalent to drm_client_setup, but expects a color mode as second argument. that's the whole plot twist β€” same function, but the second argument is a color mode instead of whatever else.

⚠️ okay this part matters, bestie, do not scroll past: Do not use this function in new drivers. Prefer drm_client_setup with a format of NULL. do not use this function in new drivers! i'm so serious 😭 new drivers use drm_client_setup with a format of NULL. iykyk.

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, bestie, they're the whole friend group 🧚


mwah πŸ’œ that's the page! shoutout to the source path ./drivers/gpu/drm/clients, the October 2026 date, and drm_client_s...h_color_mode(9) β€” see you in the group chat, periodt ✨

πŸ“¦ where this page comes from