mux_control_...select_delay(9)
π mux_control_try_select_delay(9) β¨
okay so bestie, welcome to the Kernel API Manual β yes we're in the kernel docs now, main character energy only π this one's about mux_control_try_select_delay, and it's lowkey a baddie.
πΈ NAME πΈ
mux_control_try_select_delay β try to select the given multiplexer state. note the "try", bestie, it's giving "we'll see" energy π
β SYNOPSIS β
int mux_control_try_select_delay (struct mux_control *mux , unsigned int
state , unsigned int delay_us );
π¦ ARGUMENTS π¦
muxβ the mux-control that's gonna get asked so politely to change its state π«Άstateβ the new requested state, the whole point of the operation, the moment β¨delay_usβ how long to delay, in microseconds, if the mux state actually changes. like a little pause for dramatic effect π
π₯ DESCRIPTION π₯
so when you successfully select the mux-control state, it gets locked until mux_control_deselect is called. no cap. it's yours now π
π¨ so fr fr, make sure you callmux_control_deselectwhen the operation is complete and the mux-control is free for others to use. but β and this is the important part β do not callmux_control_deselectifmux_control_try_selectfails. that's not slay, that's a bug π
π RETURN π
0β when the mux-control state has the requested state, we love a success story π- a negative errno on error. specifically
-EBUSYif the mux-control is contended β i.e. someone else is already on it, it's giving "occupied" π
π§ SEE ALSO π§
the whole friend group π«Ά:
- Kernel file
./drivers/mux/core.c struct mux_state(9)struct devm_mux_state_state(9)mux_chip_alloc(9)mux_chip_register(9)mux_chip_unregister(9)mux_chip_free(9)devm_mux_chip_alloc(9)devm_mux_chip_register(9)mux_control_states(9)mux_control_select_delay(9)mux_state_select_delay(9)mux_state_try_select_delay(9)mux_control_deselect(9)mux_state_deselect(9)mux_get(9)mux_control_get(9)mux_control_get_optional(9)mux_control_put(9)devm_mux_control_get(9)mux_state_get(9)__devm_mux_state_get(9)devm_mux_state_get_from_np(9)devm_mux_state_get_optional(9)devm_mux_state_get_selected(9)devm_mux_state_get_optional_selected(9)
anyway that's the whole page, you ate that π
β¨ this came straight out of ./drivers/mux, dated October 2026 β mwah, go read the kernel source bestie, ily ππ
π¦ 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