radeon_atpx_switch_disp_mux(9)
π radeon_atpx_switch_disp_mux(9) β like, the Kernel API Manual page bestie π
okay so this is radeon_atpx_switch_disp_mux from the Kernel API Manual, and no cap, it's a whole mood. it's a tiny function with one job and it does that job. let's get into it β¨
πΈ NAME πΈ
radeon_atpx_switch_disp_mux β switch display mux
yes bestie, that's literally it. it switches the display mux. main character behavior honestly π
π¦ SYNOPSIS π¦
int radeon_atpx_switch_disp_mux (struct radeon_atpx *atpx , u16 mux_id );
so she takes an atpx and a mux_id, and gives you back an int. simple. elegant. iconic. π
π ARGUMENTS π
atpxβ the atpx info struct π«Ά like, the whole context bundle, she needs it to do her thingmux_idβ the mux state, and this is the important bit:0= integrated GPU,1= discrete GPU. that's the whole vibe check right there, don't mix 'em up π
π₯ DESCRIPTION π₯
okay so what she actually does: she executes the ATPX_FUNCTION_DISPLAY_MUX_CONTROL ATPX function to switch the display mux between the discrete GPU and the integrated GPU, and this works on all asics β yes, all of them, no gatekeeping π
returns 0 on success, error on failure. that's the contract, periodt. β
ngl, if you get a nonzero back, that's your sign something went sideways β she tried, bestie π
π SEE ALSO π
the whole friend group, fr fr β she does not exist in a vacuum:
- Kernel file
./drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_call(9)radeon_atpx_parse_functions(9)radeon_atpx_validate(9)radeon_atpx_verify_interface(9)radeon_atpx_set_discrete_state(9)radeon_atpx_switch_i2c_mux(9)radeon_atpx_switch_start(9)radeon_atpx_switch_end(9)radeon_atpx_switchto(9)radeon_atpx_power_state(9)radeon_atpx_pci_probe_handle(9)radeon_atpx_init(9)radeon_atpx_get_client_id(9)radeon_atpx_detect(9)radeon_register_atpx_handler(9)radeon_unregister_atpx_handler(9)
like, literally the entire crew. go read them too, iykyk πβ¨
and that's the page!! π§ source vibe: ./drivers/gpu/drm/radeon, dated October 2026 β mwah, no notes, thanks for coming to my ted talk bestie πππ¦
π¦ 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