drm_gem_prime_export(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_gem_prime_export(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… β€” today we're looking at drm_gem_prime_export, and honestly? it's giving "small function, big responsibilities." Let's get into it πŸŽ€


🌸 NAME 🌸

drm_gem_prime_export β€” the helper library's implementation of the export callback, no cap 🫢


⭐ SYNOPSIS ⭐

struct dma_buf * drm_gem_prime_export (struct drm_gem_object *obj , int
flags );

like, that's the whole signature. short and iconic ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • obj β€” the GEM object we're exporting, bestie. that's the one πŸŽ€
  • flags β€” flags like DRM_CLOEXEC and DRM_RDWR πŸ’«

πŸ’– DESCRIPTION πŸ’–

So this is the implementation of the drm_gem_object_funcs.export functions for GEM drivers that are using the PRIME helpers. periodt.

It gets used as the default in drm_gem_prime_handle_to_fd β€” so if you're a GEM driver riding with the PRIME helpers, this is lowkey the one doing the work for you πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

like, that's a whole friend group right there 😭 go read them, iykyk πŸ’œ


✨ sign-off time ✨

this lil page lives in ./drivers/gpu/drm, dated October 2026 β€” and it's the drm_gem_prime_export(9) page, obviously πŸ’… bye bestie, go export something iconic πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from