radeon_switc...o_can_switch(9)
β¨ radeon_switcheroo_can_switch(9) β¨
okay so first things first, the full title is radeon_switcheroo_can_switch(9) and it lives in the Kernel API Manual (section 9, the fancy driver-internals club π
). Strap in bestie, this one's small but mighty.
π NAME π
radeon_switcheroo_can_switch β literally just peeks in and tells you if the switcheroo state is allowed to change π
π¦ SYNOPSIS π¦
bool radeon_switcheroo_can_switch (struct pci_dev *pdev );
That's it. That's the whole vibe check. It hands you back a bool π«Ά
πΈ ARGUMENTS πΈ
pdevβ apci devpointer, aka the little handle that says which PCI device we're talking about π
β DESCRIPTION β
So this function is a callback for the switcheroo driver β like, the switcheroo driver calls it up and is like "hey bestie, can we change things?" and this is the one who answers π
What it actually does: it checks if the switcheroo state can be changed. That's the whole job, no cap.
- it returns
trueif the state can be changed β - it returns
falseif it can't β
And that's genuinely it, she's a short queen πβ¨
π SEE ALSO π
The kernel file this comes from is:
./drivers/gpu/drm/radeon/radeon_device.c
and here's the whole friend group, the entire radeon extended universe, no gatekeeping fr fr π:
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_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_device_init(9)radeon_device_fini(9)radeon_gpu_reset(9)
π friendly reminder: the original manual spells it "Check of the switcheroo state can be changed" β yes, there's a typo in the source, and yes we're leaving the meaning exactly as-is. iykyk π
β¨ that's the whole page!! β¨ this cutie ships out of ./drivers/gpu/drm/radeon, dated October 2026, and the page itself is signed radeon_switc...o_can_switch(9) π bye bestie, go check some switcheroo state π¦π
π¦ 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