mux_state_select_delay(9)
π mux_state_select_delay π
okay so this is a page straight out of the Kernel API Manual β it's mux_state_select_delay(9) and it's literally about picking a mux state and then waiting a lil bit. bestie, let's get into it π
β¨ NAME β¨
mux_state_select_delay β select the given multiplexer state. that's it, that's the vibe π¦
πΈ SYNOPSIS πΈ
int mux_state_select_delay (struct mux_state *mstate , unsigned int
delay_us );
π§ ARGUMENTS π§
mstateβ the mux-state you're trying to select, like the outfit you've decided on πdelay_usβ the time to delay, in microseconds, if the mux state actually changed. no change, no wait, no drama β¨
π₯ DESCRIPTION π₯
so when you successfully select the mux-state, its mux-control gets locked β and it stays locked until somebody calls mux_state_deselect. no cap, it's held hostage (lovingly) π«Ά
and if the mux-control is already selected when mux_state_select is called, the caller will be blocked until mux_state_deselect or mux_control_deselect gets called β by someone else, obvi π
so like, please make sure to callmux_state_deselectwhen the operation is complete and the mux-control is free for others to use. but do not callmux_state_deselectifmux_state_selectfails. that's the one rule, don't fumble it π
β RETURN β
0 when the mux-state has been selected β¨ β or a negative errno on error π
π SEE ALSO π
the whole friend group, fr fr:
- 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_control_try_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)
and that's the whole page, bestie ππ this iconic lil entry lives in ./drivers/mux, dated October 2026, and it's filed under mux_state_select_delay(9) β go forth and select responsibly π§ββοΈβ¨π¦
π¦ 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