radeon_scratch_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– radeon_scratch_get(9) πŸ’–

okay so bestie, welcome to the radeon_scratch_get(9) page β€” it's a Kernel API Manual situation, and honestly it's a whole little icon. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

radeon_scratch_get β€” allocate a scratch register ✨


πŸŽ€ SYNOPSIS πŸŽ€

int radeon_scratch_get (struct radeon_device *rdev , uint32_t *reg );

like, that's the whole signature. she's compact, she's efficient, she's giving main character energy πŸ”₯


🌸 ARGUMENTS 🌸

  • rdev β€” a radeon_device pointer. literally the GPU device handle, she's the whole vibe πŸ’…
  • reg β€” the scratch register mmio offset. that's your out-param, she tells you where the register lives 🎯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she allocates a CP scratch register for use by the driver β€” and yes, that's on all asics, no exceptions, no pick-me behavior, she's for everyone πŸ’–

returns 0 on success πŸŽ‰ or -EINVAL on failure 😭 that's it, that's the whole story, no cap.

ngl the description here is short but that's the point β€” one job, done well. she's lowkey iconic for that.

🌈 SEE ALSO 🌈

okay bestie this list is long but every single one of these is part of the family, so we're listing them all, periodt 🫢

and the kernel file where all this lives, fr fr:

Kernel file ./drivers/gpu/drm/radeon/radeon_device.c

and that's the page!! 🧚 she ships out of ./drivers/gpu/drm/radeon and this cutie is dated October 2026 β€” mwah, slay, go allocate some scratch registers responsibly πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from