radeon_scratch_free(9)
π 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β aradeon_devicepointer. 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:
radeon_program_register_sequence(9)radeon_surface_init(9)radeon_scratch_init(9)radeon_scratch_get(9)radeon_doorbell_init(9)radeon_doorbell_fini(9)radeon_doorbell_get(9)radeon_doorbell_free(9)radeon_wb_disable(9)radeon_wb_fini(9)radeon_wb_init(9)radeon_vram_location(9)radeon_gtt_location(9)radeon_card_posted(9)radeon_update_bandwidth_info(9)radeon_boot_test_post_card(9)radeon_dummy_page_init(9)radeon_dummy_page_fini(9)cail_pll_read(9)cail_pll_write(9)cail_mc_read(9)cail_mc_write(9)cail_reg_write(9)cail_reg_read(9)cail_ioreg_write(9)cail_ioreg_read(9)radeon_atombios_init(9)radeon_atombios_fini(9)radeon_combios_init(9)radeon_combios_fini(9)radeon_vga_set_decode(9)radeon_gart_size_auto(9)radeon_check_arguments(9)radeon_switcheroo_set_state(9)radeon_switcheroo_can_switch(9)radeon_device_init(9)radeon_device_fini(9)radeon_gpu_reset(9)
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
- 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