radeon_scratch_get(9)
π 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β aradeon_devicepointer. 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 π«Ά
radeon_program_register_sequence(9)radeon_surface_init(9)radeon_scratch_init(9)radeon_scratch_free(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)
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
- 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