drm_gem_dma_print_info(9)
π 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:
- dma helpers(9)
__drm_gem_dma_create(9)drm_gem_dma_create(9)drm_gem_dma_create_with_handle(9)drm_gem_dma_free(9)drm_gem_dma_dumb_create_internal(9)drm_gem_dma_dumb_create(9)drm_gem_dma_get_unmapped_area(9)drm_gem_dma_get_sg_table(9)drm_gem_dma_prime_import_sg_table(9)drm_gem_dma_vmap(9)drm_gem_dma_mmap(9)drm_gem_dma_prime_import_sg_table_vmap(9)
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 thedrm_gem_dma_print_info(9)page β love that for us ππ
π¦ 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