mux_state_try_select_delay(9)
β¨ mux_state_try_select_delay π
okay so this is a page from the Kernel API Manual, bestie β it's called mux_state_try_select_delay(9) and it's basically the "try before you commit" of multiplexer states π
πΈ NAME πΈ
mux_state_try_select_delay β Try to select the given multiplexer state. literally what it says on the tin, no cap β¨
π¦ SYNOPSIS π¦
int mux_state_try_select_delay (struct mux_state *mstate , unsigned int
delay_us );
π ARGUMENTS π
mstateβ The mux-state to select. this is the one you're trying to snag πdelay_usβ The time to delay (in microseconds) if the mux state is changed. yes bestie, microseconds, she's precise π°οΈ
π DESCRIPTION π
So here's the tea β: on successfully selecting the mux-state, its mux-control will be locked until mux_state_deselect is called. it's giving "claimed, do not disturb" energy π
Which means β and this is the important part, fr fr β make sure to call mux_state_deselect when the operation is complete and the mux-control is free for others to use. don't be that girl who holds the lock forever π
but do NOT callmux_state_deselectifmux_state_try_selectfails. that's the vibes check failing, and you don't get to clean up something you never got π
β RETURN β
0when the mux-state has been selected β slay, you got it π- a negative
errnoon error - Specifically
-EBUSYif the mux-control is contended. someone else is already in there, try again later bestie π
π«Ά SEE ALSO π«Ά
Kernel file ./drivers/mux/core.c plus the whole friend group:
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_control_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)
and that's the whole page, bestie π§ this little gem lives in ./drivers/mux, dated October 2026, and it's part of the Kernel API Manual β go forth and select responsibly, mwah ππΈ
mux_state_try_select_delay(9) β periodt. π
π¦ 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