radeon_ring_lock(9)
π radeon_ring_lock(9) β a Kernel API Manual moment π
okay so bestie, welcome to the radeon_ring_lock(9) page, straight out of the Kernel API Manual β¨ this one's short and sweet β she locks a ring, she grabs some space on it, she comes back with an int. iconic behavior honestly π¦
πΈ NAME πΈ
radeon_ring_lock β lock the ring and allocate space on it π«
β¨ SYNOPSIS β¨
int radeon_ring_lock (struct radeon_device *rdev , struct radeon_ring
*ring , unsigned ndw );
like, that's the whole signature, no notes π
π«Ά ARGUMENTS π«Ά
rdevβ aradeon_devicepointer. your device, your main character π₯ringβ aradeon_ringstructure holding ring information. yes, the ring. she contains multitudes β¨ndwβ number of dwords to allocate in the ring buffer. count 'em, bestie π’
π DESCRIPTION π
So what she does: locks the ring and allocates ndw dwords in the ring buffer β and this applies to all asics, no cap, every single one of them π«Ά
Returns 0 on success, error on failure. that's it, that's the whole vibe check π
ngl, always check that return value β an error is an error and she will tell you about it π
π SEE ALSO π
The kernel file lives at ./drivers/gpu/drm/radeon/radeon_ring.c β go read her, she's literally right there π
And the whole ring crew, in this exact order, because we do not disrespect the list π:
radeon_ring_supports_scratch_reg(9)radeon_ring_free_size(9)radeon_ring_alloc(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, bestie π this cutie came to you from ./drivers/gpu/drm/radeon, dated October 2026, filed under radeon_ring_lock(9) β slay, go lock some rings ππ¦
π¦ 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