drm_gem_dma_...ate_internal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_dma_dumb_create_internal, but make it make sense

okay bestie, so this is a page straight out of the Kernel API Manual (yes, the drm_gem_dma_...ate_internal(9) girlies know exactly what I mean πŸ‘‘) and it's about making a dumb buffer object. lowkey iconic behavior, let's get into it 🫢


✨ NAME ✨

drm_gem_dma_dumb_create_internal β€” she creates a dumb buffer object. that's it, that's the job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_gem_dma_dumb_create_internal (struct drm_file *file_priv ,
struct drm_device *drm , struct drm_mode_create_dumb *args );

no cap, that's the whole signature πŸ“


πŸŽ€ ARGUMENTS πŸŽ€

  • file_priv β€” the DRM file-private structure, aka where you're making this dumb buffer for πŸ‘€
  • drm β€” the DRM device itself, main character energy fr
  • args β€” the IOCTL data, the whole reason we're here 🌸

πŸ’– DESCRIPTION πŸ’–

so what she actually does: she aligns the pitch and size arguments to the minimum required ✨ like, the bare minimum, and she does it flawlessly.

she's an internal helper, though β€” not a "walk right up and use her" kind of function πŸ™ˆ. a driver is meant to wrap her, so it can account for hardware that has more specific alignment requirements. that's the whole point: the driver sugar-wraps her and makes her work for their specific vibe.

bestie, please do not use her directly as your drm_driver.dumb_create callback. like, don't. nope. it's an internal helper for a reason πŸ’€

⭐ RETURN ⭐

0 on success, or a negative error code if it didn't slay 😭 β€” that's it, that's the contract.


🌈 SEE ALSO 🌈


okay that's the tea πŸ“ β€” this page comes to you from ./drivers/gpu/drm and it's dated October 2026, so go forth and wrap your helpers responsibly. mwah πŸ’œ

πŸ“¦ where this page comes from