drm_gem_dma_print_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_dma_print_info πŸ’…

okay so bestie, you know how sometimes you're poking around in debugfs and you're like "wait, what even IS this DMA GEM object, where does it live, what's its address"?? yeah. that's this function. it's the drm_gem_dma_print_info(9) page from the Kernel API Manual, and honestly? it's giving "small but mighty." ✨


🌸 NAME 🌸

drm_gem_dma_print_info β€” literally just prints out &drm_gem_dma_object info for debugfs. that's the whole job. she's a simple queen. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

void drm_gem_dma_print_info (const struct drm_gem_dma_object *dma_obj ,
struct drm_printer *p , unsigned int indent );

no cap, that's the exact signature. don't @ me, i don't make the rules. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dma_obj β€” the DMA GEM object. your main character, fr. 🌟
  • p β€” the DRM printer. this is where the words actually go. πŸ–¨οΈ
  • indent β€” tab indentation level. so your output can be all nicely nested and pretty, iykyk. 🌈

πŸ’– DESCRIPTION πŸ’–

so like β€” this function prints dma_addr and vaddr, and the whole point is so you can use it in, e.g., debugfs output. that's it. that's the plot. lowkey iconic that a function can be this straightforward and still be exactly what you need. 😭


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./drivers/gpu/drm/drm_gem_dma_helper.c and all her besties:


okay that's the whole page, you ate that 🫢 go print some DMA GEM info and be free πŸ¦‹πŸ’œ

this came out of ./drivers/gpu/drm, dated October 2026, and it's the drm_gem_dma_print_info(9) page β€” love that for us πŸŽ€πŸ‘‘
πŸ“¦ where this page comes from