radeon_atpx_switch_disp_mux(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 thing
  • mux_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:

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