drm_gem_vra..._dumb_create(9)
π 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 structdrm_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 π
0on 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:
- Kernel file
./drivers/gpu/drm/drm_gem_vram_helper.coverview(9) drm_gem_vram_create(9)drm_gem_vram_put(9)drm_gem_vram_offset(9)drm_gem_vram_vmap(9)drm_gem_vram_vunmap(9)drm_gem_vram_fill_create_dumb(9)drm_gem_vram_object_free(9)drm_gem_vram_plane_helper_prepare_fb(9)drm_gem_vram_plane_helper_cleanup_fb(9)drm_gem_vram_object_vmap(9)drm_gem_vram_object_vunmap(9)drm_vram_mm_debugfs_init(9)drmm_vram_helper_init(9)drm_vram_helper_mode_valid(9)
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
- 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