amdgpu_bo_mmap_offset(9)
π amdgpu_bo_mmap_offset(9)
okay so bestie, welcome to the Kernel API Manual β this one's a lil two-line function from the AMDGPU corner of the kernel, but it's lowkey important so let's get into it β¨
πΈ NAME πΈ
amdgpu_bo_mmap_offset β literally just returns the mmap offset of a bo π
β¨ SYNOPSIS β¨
u64 amdgpu_bo_mmap_offset (struct amdgpu_bo *bo );
that's it. that's the whole vibe check. one function, one arg, returns a u64 π«Ά
π¦ ARGUMENTS π¦
boβ the amdgpu object we're querying the offset for π (yes it's astruct amdgpu_bo *, no we're not overthinking it)
π DESCRIPTION π
Returns the mmap offset of the object. that's the whole description fr fr β no cap, no extra lore, it does the one thing and it does it slayfully π
like, you hand it a bo, it hands you back the offset you'd use for mmap. iconic behaviour, no notes π
π SEE ALSO π
- the kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_object.hβ go read it, iykyk π amdgpu_mem_type_to_domain(9)amdgpu_bo_reserve(9)amdgpu_bo_explicit_sync(9)amdgpu_bo_encrypted(9)
that's the whole friend group right there, go say hi to all of them π§
ngl there's not much to warn you about here β it just reads a value and returns it. still, read the SEE ALSOs before you go poking at bo internals, bestie π
and that's a wrap! this masterpiece lives over in ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β mwah, go forth and mmap responsibly πβπ₯
π¦ 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