drm_gem_shm...t_print_info(9)
π drm_gem_shm...t_print_info(9) π
okay so this is a page from the Kernel API Manual, bestie, and it's about one very specific little function. it's not glamorous, but it is iconic in its own lowkey way β¨
πΈ NAME πΈ
drm_gem_shmem_object_print_info β the function that prints out your &drm_gem_shmem_object info, specifically for debugfs π
β¨ SYNOPSIS β¨
void drm_gem_shmem_object_print_info (struct drm_printer *p , unsigned int indent , const struct drm_gem_object *obj );
like, that's the whole signature. no cap, it returns void β nothing comes back, it just does the thing π«Ά
π¦ ARGUMENTS π¦
pβ your DRM printer, the little guy doing the actual printing πindentβ the tab indentation level, so your output looks cute and nested instead of all chaotic πobjβ the GEM object in question, the main character of this whole operation π
π₯ DESCRIPTION π₯
so what does it actually do? it wraps drm_gem_shmem_print_info. that's it. that's the vibe π
the important part, and this is the part you need to remember for the exam: drivers that employ the shmem helpers should use this function as their drm_gem_object_funcs.print_info handler. literally just plug it in and let it cook π
π SEE ALSO π
- Kernel file
./include/drm/drm_gem_shmem_helper.h struct drm_gem_shmem_object(9)drm_gem_shmem_object_free(9)drm_gem_shmem_object_pin(9)drm_gem_shmem_object_unpin(9)drm_gem_shmem_object_get_sg_table(9)drm_gem_shmem_object_mmap(9)DRM_GEM_SHMEM_DRIVER_OPS(9)
like, go read those too if you wanna be a well-rounded Unix girlie π they're all right there in the same file, iykyk.
and that's the whole page, bestie π§ this little beauty lives over in ./include/drm, dated October 2026, and it ate, fr fr. go forth and print your shmem info π
π
π¦ 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