amdgpu_device_vram_access(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_device_vram_access(9) β€” like, the whole Kernel API Manual page, bestie ✨

okay so picture this: it's a Kernel API Manual page, the star of the show is amdgpu_device_vram_access(9), and she does exactly one thing but she does it flawlessly β€” she reads or writes a buffer in vram. main character energy, no notes. 🫢


🌸 NAME 🌸

amdgpu_device_vram_access β€” read/write a buffer in vram πŸ’–


✨ SYNOPSIS ✨

void amdgpu_device_vram_access (struct amdgpu_device *adev , loff_t pos
, void *buf , size_t size , bool write );

like yes that's the whole signature, she's not hiding anything, she's literally just vibing in one line (okay two, the formatting spilled, we don't judge πŸŽ€).


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” an amdgpu_device pointer. your device handle, your ride or die, the whole reason we're here πŸ’«
  • pos β€” offset of the buffer in vram. like, where in vram the buffer lives. location check, iykyk πŸ“
  • buf β€” virtual address of the buffer in system memory. the system-memory side of the operation, the other half of the friendship bracelet 🀝
  • size β€” read/write size, and hear me out: sizeof(buf) must > size. not "greater than or equal", bestie, strictly greater. the way that's non-negotiable 😭
  • write β€” true means write to vram, otherwise it's read from vram. a little boolean doing double duty, an icon honestly πŸ‘‘
⚠️ real talk: sizeof(buf) must be greater than size. do not fumble this, do not round it, do not "it's probably fine" it. it is not fine. πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c β€” that's her home address, the source file she lives in 🏠

and now the extended friend group, our group chat basically, every single one of them, present and accounted for, none left on read:

that's the whole roster, every single (9), slay 🧚


and that's the page!! πŸ“ before you go, tiny sign-off: this cutie came out of ./drivers/gpu/drm/amd/amdgpu (that's the source, that's where she's from πŸ’…) and the date on it is October 2026. periodt. see you in the next manpage, bestie πŸ˜­πŸ’–

πŸ“¦ where this page comes from