radeon_scratch_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– radeon_scratch_free(9) β€” the "give the scratch register back" girlie ✨

Okay so this is a page from the Kernel API Manual family, and bestie, it is short but it's important. We're talking about radeon_scratch_free β€” the function that hands a scratch register back when the driver is done with it. No cap, that's the whole vibe. πŸŽ€


🌸 NAME 🌸

radeon_scratch_free β€” free a scratch register 🫢


✨ SYNOPSIS ✨

void radeon_scratch_free (struct radeon_device *rdev , uint32_t reg );

That's it. That's the whole signature. Two arguments, returns nothing, slays quietly. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdev β€” a radeon_device pointer. Like, the actual Radeon device we're talking about here. πŸ‘‘
  • reg β€” the scratch register mmio offset. This is the one you're freeing, bestie.

πŸ’œ DESCRIPTION πŸ’œ

So what does it do? It frees a CP scratch register that was allocated for use by the driver β€” and yes, that's for all asics. Every single one. No exceptions, no picking favourites. 🌈

Literally it's the cleanup counterpart: somebody grabbed a scratch register, and now it goes back into the pool. Main character energy for the release path. πŸ”₯

Ngl, this is the kind of function where the docs are shorter than the function name. But every detail counts, so here it is, fr fr.

🌟 SEE ALSO 🌟

The kernel file lives at ./drivers/gpu/drm/radeon/radeon_device.c β€” that's where you'll find the goods, iykyk. πŸ’–

And here's the full squad, all the friends in the SEE ALSO group chat β€” every single one, not skipping anybody:

That's 38 references, and we listed all of them because we don't do that "…and others" thing here. πŸ’€


Okay that's the whole page, you're officially a scratch-register free-er now πŸ’œ

This little love letter comes to you from the ./drivers/gpu/drm/radeon corner of the kernel, in the October 2026 edition of the Kernel API Manual β€” same manual, same date, same radeon_scratch_free(9) energy. Bye bestie, go free a register responsibly! πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from