drm_client_..._create_dumb(9)
π drm_client_..._create_dumb(9) β¨
okay bestie, welcome to the Kernel API Manual β this one's a shortie but a goodie, it's all about spinning up a client buffer that's secretly a dumb buffer underneath π
πΈ NAME πΈ
drm_client_buffer_create_dumb β literally makes a client buffer that's backed by a dumb buffer, no cap π¦
β¨ SYNOPSIS β¨
struct drm_client_buffer * drm_client_buffer_create_dumb (struct
drm_client_dev *client , u32 width , u32 height , u32 format );
like, that's the whole call, copy it exactly, don't be cute with it π
π«Ά ARGUMENTS π«Ά
clientβ the DRM client, bestie. the main character of this operation πwidthβ framebuffer width, in case that wasn't obvious πheightβ framebuffer height, same vibe πΈformatβ the buffer format. yes you gotta specify it, she's not gonna guess π
π DESCRIPTION π
so what this function does: it creates a drm_client_buffer β and that buffer is made of a drm_framebuffer that's backed by a dumb buffer. that's the whole tea ββ¨
and listen, this is important: when you're done with it, call drm_client_buffer_delete to free the buffer. don't just leave her there, that's not slay behaviour π
β RETURN β
you get back a pointer to a client buffer π β or, if things go sideways, an error pointer on failure. so like, vibe check your pointer before you use it, fr fr π
π¦ SEE ALSO π¦
the kernel file ./drivers/gpu/drm/drm_client.c plus the whole squad:
overview(9)drm_client_init(9)drm_client_register(9)drm_client_release(9)drm_client_buffer_delete(9)drm_client_buffer_vmap_local(9)drm_client_buffer_vunmap_local(9)drm_client_buffer_vmap(9)drm_client_buffer_vunmap(9)drm_client_buffer_flush(9)
go read those too, iykyk πβ¨
and that's the page, bestie π«Ά it lives over in ./drivers/gpu/drm, dated October 2026 β mwah, go create some dumb buffers responsibly ππ
π¦ 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