drm_gpuvm_bo_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gpuvm_bo_find(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so real quick, this whole page is literally about drm_gpuvm_bo_find(9), and yes the manual name is right there in the title because we're thorough like that ✨


🌸 NAME 🌸

drm_gpuvm_bo_find β€” find the &drm_gpuvm_bo for the given &drm_gpuvm and &drm_gem_object

like… it's a finder. it finds. iconic behavior tbh 🫢


✨ SYNOPSIS ✨

struct drm_gpuvm_bo * drm_gpuvm_bo_find (struct drm_gpuvm *gpuvm ,
struct drm_gem_object *obj );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gpuvm β€” the drm_gpuvm the obj is mapped in. it's the whole vibe, the address space, the stage πŸ’œ
  • obj β€” the drm_gem_object being mapped in the gpuvm. the guest of honor 🌟

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function finds the drm_gpuvm_bo that represents the combination of the given drm_gpuvm and drm_gem_object β€” like the two of them together, the duo, the pairing πŸ‘‘

and bestie, if it does find it? it increases the reference count of the drm_gpuvm_bo accordingly. so you're not just looking at it, you're taking a reference. the way that this function is literally committing πŸ“ˆπŸ’…

heads up β€” that refcount bump is real. if you're not gonna use it, you're gonna wanna give it back. just saying πŸ™ˆ

πŸ’€ RETURN πŸ’€

  • a pointer to the drm_gpuvm_bo on success πŸŽ‰
  • NULL on failure 😭 (it's giving "not found, no notes")

πŸ‘‘ SEE ALSO πŸ‘‘

the reading list, fr fr β€” bring snacks πŸ“


and that's the whole page, bestie!! mwah πŸ’‹ this one lives in ./drivers/gpu/drm, and the version/date stamp on it is October 2026 β€” so yeah, future-coded of the kernel docs ngl. go find your drm_gpuvm_bo, take your refcount, and slay πŸ”₯πŸ‘‘πŸ

πŸ“¦ where this page comes from