drm_gem_vra..._create_dumb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_vra..._create_dumb(9) πŸ’…

okay so this page lives in the Kernel API Manual, and the filename is literally truncated to drm_gem_vra..._create_dumb(9) β€” the way the real function name is drm_gem_vram_fill_create_dumb and the header just gave up halfway 😭 iconic behavior honestly. anyway bestie, let's get into it ✨


🌸 NAME 🌸

drm_gem_vram_fill_create_dumb β€” the lil helper that does the boring paperwork for implementing &struct drm_driver.dumb_create 🫢


✨ SYNOPSIS ✨

int drm_gem_vram_fill_create_dumb (struct drm_file *file , struct
drm_device *dev , unsigned long pg_align , unsigned long pitch_align ,
struct drm_mode_create_dumb *args );

πŸŽ€ ARGUMENTS πŸŽ€

  • file β€” the DRM file, that's her πŸ’–
  • dev β€” the DRM device, the whole vibe
  • pg_align β€” the buffer's alignment, measured in multiples of the page size πŸ“
  • pitch_align β€” the scanline's alignment, in powers of 2 πŸ”’
  • args β€” the arguments exactly as they were handed to struct drm_driver.dumb_create

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜•: this helper function fills struct drm_mode_create_dumb, which is the struct that struct drm_driver.dumb_create uses. that's the whole job. that's her main character arc.

if you're implementing this interface, the move is: forward your arguments straight to this helper, plus whatever driver-specific parameters you've got on the side. no cap, it's that simple πŸ’…


πŸ‘‘ RETURN πŸ‘‘

0 on success, or a negative error code otherwise. periodt. πŸ’€


🌈 SEE ALSO 🌈

like. go read those too bestie, the whole friend group is there 🧚


ok that's the whole page fr fr β€” no hidden lore, no extra caveats, just the helper being helpful πŸ’œ

and that's a wrap! πŸ“ this one came straight out of ./drivers/gpu/drm, dated October 2026 β€” mwah, ty for reading, ily, go touch some VRAM πŸ’–βœ¨

πŸ“¦ where this page comes from