radeon_bo_gpu_offset(9)
π 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 π
- Kernel file
./drivers/gpu/drm/radeon/radeon_object.h radeon_mem_type_to_domain(9)radeon_bo_reserve(9)radeon_bo_mmap_offset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms