mux_control_select_delay(9)
π mux_control_select_delay(9) π
Hey bestie, welcome to the Kernel API Manual page for mux_control_select_delay(9) β this is the one that asks your mux-control to switch to a given state and then chills for a tiny delay if the state actually changes. Slay. β¨
πΈ NAME πΈ
mux_control_select_delay β Select the given multiplexer state.
π¦ SYNOPSIS π¦
int mux_control_select_delay (struct mux_control *mux , unsigned int
state , unsigned int delay_us );
π ARGUMENTS π
muxβ The mux-control to request a change of state from. Like, this is the main character you're talking to. πstateβ The new requested state. The vibe you want it to switch to.delay_usβ The time to delay (in microseconds) if the mux state is changed. Tiny little pause, measured in microseconds. β³
π DESCRIPTION π
On successfully selecting the mux-control state, it will be locked until there is a call to mux_control_deselect. So yeah, once you successfully select it, it's locked up until somebody calls mux_control_deselect. No cap.
If the mux-control is already selected when mux_control_select is called, the caller will be blocked until mux_control_deselect or mux_state_deselect is called (by someone else). Yep, you gotta wait for someone else to free it β literally blocked until one of those deselect calls happens. π
Therefore, make sure to call mux_control_deselect when the operation is complete and the mux-control is free for others to use, but do not call mux_control_deselect if mux_control_select fails. This is important, bestie: clean up with mux_control_deselect when you're done and the mux-control is free for others, but do not call mux_control_deselect if mux_control_select fails. Periodt. π
β RETURN β
0 when the mux-control state has the requested state or a negative errno on error.
π SEE ALSO π
- 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_state_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)
mwah π β this page is from the ./drivers/mux source/version, dated October 2026. byeeee π«Άβ¨
π¦ 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