radeon_bo_gpu_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ radeon_bo_gpu_offset β€” it's the Kernel API Manual, bestie

okay so real talk, this page lives in section 9 of the Kernel API Manual, and it's about one tiny little function that tells you where your buffer object actually sits on the GPU. that's it. that's the whole vibe. let's get into it ✨


🌸 NAME 🌸

radeon_bo_gpu_offset β€” returns the GPU offset of a bo. literally that's the job. one job. and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 radeon_bo_gpu_offset (struct radeon_bo *bo );

that's the whole signature, bestie β€” copy it exactly, u64 and all, and please notice the space before that closing paren, that's just how it is, we don't question it πŸŽ€


✨ ARGUMENTS ✨

  • bo β€” the radeon object you're asking about, aka the thing whose offset you want to know. you hand it over, it tells you where it's at. no notes πŸ”₯

🌈 DESCRIPTION 🌈

so basically: this function returns the current GPU offset of the object. that's the whole description, no cap. you pass in your bo, you get back a u64 that is the GPU offset. iconic, brief, efficient. periodt πŸ’–


πŸŽ€ NOTE πŸŽ€

okay bestie, this is the important one, don't skip it πŸ™ˆ

that object should either be pinned or reserved when you call this function. like, actually. that's the expectation.

and then, the note adds β€” and this is a suggestion, not a promise of behaviour β€” that it might be useful to add a check for this for debugging. so like, a little sanity check in your code, y'know? future-you will be obsessed with past-you for it 🫢


⭐ SEE ALSO ⭐

go look at these, iykyk πŸ‘‘


and that's the whole page!! 🧚 this lil guy comes to you from ./drivers/gpu/drm/radeon, dated October 2026, and it's part of the Kernel API Manual. slay, go pin your bo, bye bestie πŸ’œπŸ’…πŸŒΈ

πŸ“¦ where this page comes from