drm_client_..._create_dumb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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