drm_gem_shm...mport_no_map(9)
π
drm_gem_shm...mport_no_map(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for drm_gem_shm...mport_no_map(9), and trust me when I say this one is lowkey iconic if you're the kind of driver that likes to keep things unmapped. let's get into it π
β¨ NAME β¨
drm_gem_shmem_prime_import_no_map β import a dmabuf without mapping its sg_table. that's literally the whole personality. no mapping. none. zero. π¦
πΈ SYNOPSIS πΈ
struct drm_gem_object * drm_gem_shmem_prime_import_no_map (struct
drm_device *dev , struct dma_buf *dma_buf );
like yes she returns a struct drm_gem_object * and yes she takes exactly two args. periodt. β¨
π«Ά ARGUMENTS π«Ά
devβ the device you're importing into. home base. the main character device, if you will πdma_bufβ the dma-buf object being imported. hi bestie, come on in π
π DESCRIPTION π
so here's the vibe: some drivers use the shmem helpers but also wanna import a dmabuf without mapping its sg_table. for those drivers, this function is the moment β you can use it as your drm_driver.gem_prime_import implementation. that's it, that's the whole job, and she does it flawlessly. slay. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_gem_shmem_helper.cβ the source file itself, go read it, iykyk π overview(9)drm_gem_shmem_init(9)drm_gem_shmem_create(9)drm_gem_shmem_release(9)drm_gem_shmem_free(9)drm_gem_shmem_pin(9)drm_gem_shmem_unpin(9)drm_gem_shmem_create_with_handle(9)drm_gem_shmem_dumb_create(9)drm_gem_shmem_mmap(9)drm_gem_shmem_print_info(9)drm_gem_shmem_get_sg_table(9)drm_gem_shmem_get_pages_sgt(9)drm_gem_shmem_prime_import_sg_table(9)
like, that's the whole friend group right there. go say hi to all of them π
okay that's the page!! this one came from ./drivers/gpu/drm and it's dated October 2026, so jot that down bestie ποΈβ¨ mwah, love u, go import some dmabufs responsibly πππ¦
π¦ 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