cail_mc_read(9)
π cail_mc_read β the Kernel API Manual moment π
okay so bestie, welcome to cail_mc_read (that's the cail_mc_read(9) man page, we're living in section 9 now β¨). this little function's whole personality is reading an MC (Memory Controller) register and honestly? iconic. no cap. π
πΈ SYNOPSIS πΈ
uint32_t cail_mc_read (struct card_info *info , uint32_t reg );
like, that's the whole vibe. two args in, a uint32_t out. slay. π
β¨ ARGUMENTS β¨
infoβ theatom card_infopointer π«Ά like it's literally the card info you're handing over, bestieregβ the MC register offset π₯ the exact spot in the memory controller you wanna peek at
π DESCRIPTION π
okay so what does it do: it provides an MC register accessor for the atom interpreter (r4xx+) π« that's the whole job description. and then β the payoff β it returns the value of the MC register. so you give it the offset, it gives you back the goods. main character energy fr fr π
real talk: it's an accessor, so you're reading, not writing. if you wanted to write, that's a whole other function (peep cail_mc_write(9) below, iykyk π).
π¦ SEE ALSO π¦
so here's the squad, the whole friend group, no one left out π:
- Kernel file
./drivers/gpu/drm/radeon/radeon_device.cπ radeon_program_register_sequence(9),radeon_surface_init(9),radeon_scratch_init(9)radeon_scratch_get(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_write(9)β (the write twin, go say hi)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 that's the page, bestie π§π this gem lives in ./drivers/gpu/drm/radeon and it's dated October 2026 β so yeah, it's giving future-dated main character. keep it in your bookmarks and go read some registers responsibly. mwah ππΈ
π¦ 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