drm_gem_shm...mport_no_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

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