radeon_ring_..._scratch_reg(9)
π radeon_ring_..._scratch_reg(9) β bestie's edition
okay so this is a page from the Kernel API Manual (radeon_ring_..._scratch_reg(9)), and honestly? it's a little one, but it's a cutie. tiny function, one job, does it well. let's get into it π
β¨ NAME β¨
radeon_ring_supports_scratch_reg β the vibe check that tells you whether a ring can write to scratch registers π¦
πΈ SYNOPSIS πΈ
bool radeon_ring_supports_scratch_reg (struct radeon_device *rdev ,
struct radeon_ring *ring );
like, that's it. two args, one bool back. no drama, no cap π
π«Ά ARGUMENTS π«Ά
rdevβ aradeon_devicepointer. it's giving "the whole device, the main character" πringβ aradeon_ringstructure holding ring information. this one's the specific ring we're asking about, bestie π₯
π DESCRIPTION π
so the whole point of this function: it checks if a specific ring supports writing to scratch registers β and yes, that's all asics, every single one, no exceptions, periodt β¨
it returns true if the ring supports writing to scratch regs, and false if not. literally that simple. no guessing, no vibes-based output, just a clean boolean π§
ngl this is the kind of function that just answers the question and goes back to its business. we love a low-drama icon π
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/radeon/radeon_ring.c β that's the source, go say hi π
and bestie, here's the whole ring crew, all in one place:
radeon_ring_free_size(9)radeon_ring_alloc(9)radeon_ring_lock(9)radeon_ring_commit(9)radeon_ring_unlock_commit(9)radeon_ring_undo(9)radeon_ring_unlock_undo(9)radeon_ring_lockup_update(9)radeon_ring_test_lockup(9)radeon_ring_backup(9)radeon_ring_restore(9)radeon_ring_init(9)radeon_ring_fini(9)
and that's the page!! π written up in October 2026, living under ./drivers/gpu/drm/radeon, filed forever as radeon_ring_..._scratch_reg(9). mwah, go read the other ones too, ily π«Άπβ¨
π¦ 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