drm_client_setup(9)
β¨ drm_client_setup β¨
okay bestie so this page is straight out of the Kernel API Manual and it's literally about setting up in-kernel DRM clients π like that's the whole vibe. let's get into it π
πΈ NAME πΈ
drm_client_setup β Setup in-kernel DRM clients π¦
ok so it sets up the in-kernel DRM clients. that's it. that's the name. slay.
β¨ SYNOPSIS β¨
void drm_client_setup (struct drm_device *dev , const struct
drm_format_info *format );
like yes, two args, one function, no returns. she's giving "void and unbothered" π
π ARGUMENTS π
devβ the DRM device π like, the whole device. the main character of this function call ngl.formatβ the Preferred pixel format for the device. and here's the tea π: UseNULL, unless there is clearly a driver-preferred format. so default toNULLunless your driver genuinely has an opinion. don't be out here picking formats for no reason fr fr.
π DESCRIPTION π
so this function sets up the in-kernel DRM clients. and the way that it handles restore, hotplug events and teardown β all of it, taken care of. she's lowkey doing everything so you don't have to ππ
here's the important timing bit bestie, do not skip: Drivers should call drm_client_setup after registering the new DRM device with drm_dev_register. after. not before. periodt.
and good news β this function is safe to call even when there are no connectors present. no connectors? no problem. π Setup will be retried on the next hotplug event, so it's not a loss, it's a "we'll circle back" π
also, the clients are destroyed by drm_dev_unregister. so that's where they go to rest. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/clients/drm_client_setup.c drm_client_setup_with_fourcc(9)drm_client_setup_with_color_mode(9)
and that's the whole page bestie, no cap π§π this one came from ./drivers/gpu/drm/clients, dated October 2026, living its best life in the Kernel API Manual π bye ily π«Ά
π¦ 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