drm_gpuvm_bo_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Okay so real talk: this whole page lives in the Kernel API Manual, and it's about one single tiny function that does one single tiny thing. But like... that thing is important? So let's get into it. ✨


🌸 NAME 🌸

drm_gpuvm_bo_get β€” acquire a struct drm_gpuvm_bo reference

Like, you're grabbing a reference. That's the whole job. That's the assignment. πŸ’…


✨ SYNOPSIS ✨

struct drm_gpuvm_bo * drm_gpuvm_bo_get (struct drm_gpuvm_bo *vm_bo );

Look at it. One argument. One return. No drama. Iconic behaviour honestly. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vm_bo β€” the drm_gpuvm_bo you want to acquire the reference of 🫢

That's it. That's the whole input list. She's low maintenance.


πŸ”₯ DESCRIPTION πŸ”₯

So what this function does is it acquires an additional reference to vm_bo. Extra reference. More refs. Refcount goes up. We love a glow-up. ✨

⚠️ But bestie listen to me very carefully: it is illegal to call this without already holding a reference. Like, you cannot just show up to this function empty-handed expecting it to hand you a reference out of nowhere. You gotta already have one. That's the vibe check and this function will fail it. πŸ’€

Also, and this is the chill part β€” no locks required. No lock drama. No mutex trauma. Just vibes. 😌


🌈 RETURN 🌈

Returns the struct vm_bo pointer. πŸŽ€

(Yes, that's literally what it says. It gives you the pointer back. Chef's kiss. πŸ‘¨β€πŸ³πŸ’‹)


πŸ’œ SEE ALSO πŸ’œ

Okay so the family tree here is enormous, no cap. The kernel file is ./include/drm/drm_gpuvm.h and here's everyone invited to the group chat:

Like I said. Enormous. Go read them, iykyk. πŸ“š


πŸ“ And that's the page!! Sourced from ./include/drm, dated October 2026 β€” so like, future energy, main character energy, whatever, she's timeless. Bye bestie, go increment that refcount responsibly πŸ’–πŸ§šβ€β™€οΈβœ¨
πŸ“¦ where this page comes from