drm_gem_vra..._dumb_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_vram_driver_dumb_create(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, the kernel, yes, the big one, and yes, this page is literally about one (1) function that makes dumb buffers happen. it's giving "small but crucial" energy and honestly? iconic. πŸŽ€


✨ NAME ✨

drm_gem_vram_driver_dumb_create β€” the function that implements &struct drm_driver.dumb_create. that's it, that's the whole job description, and it does it flawlessly, no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_gem_vram_driver_dumb_create (struct drm_file *file , struct
drm_device *dev , struct drm_mode_create_dumb *args );

literally just look at it. three params, one int return, main character energy fr fr. πŸ”₯


🌸 ARGUMENTS 🌸

  • file β€” the DRM file. yes bestie, the file. it's right there. 🫢
  • dev β€” the DRM device. the whole device. the moment. πŸ‘‘
  • args β€” the arguments as provided to struct drm_driver.dumb_create. very on-the-nose, we love a consistent naming convention. ⭐

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” this function requires the driver to use drm_device.vram_mm for its instance of VRAM MM. not optional, not "if you feel like it", it's a requirement. the way that this is non-negotiable... periodt. πŸ’€

no cap, if your driver isn't set up with drm_device.vram_mm for its VRAM MM instance, this is not the function for you. read the room. πŸ™ˆ

🌈 RETURN 🌈

  • 0 on success πŸ₯³
  • or a negative error code otherwise 😭

that's the whole vibe check β€” zero means slay, negative means something went sideways. simple as. ✨


🧚 SEE ALSO 🧚

the whole friend group, gathered for you, in no particular order but actually in this exact order:

go read those too, bestie, iykyk. πŸ“šπŸ’œ


πŸŽ€ the cute lil sign-off πŸŽ€

this page lives in ./drivers/gpu/drm (that's the source/version bit, okurrr), it's dated October 2026, and it goes by drm_gem_vra..._dumb_create(9) β€” yes the header abbreviates it, no we don't know why, yes we're choosing peace about it. bye bestie, go create some dumb buffers πŸ’–βœ¨πŸ¦‹πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from