mux_control_deselect(9)
π mux_control_deselect β bestie, it's time to let go
Okay so this is a page from the Kernel API Manual, and it's about the part where you stop hogging the multiplexer. Yes, the goodbye. The release. The "okay ily bye" moment π«Ά
β¨ NAME β¨
mux_control_deselect β Deselect the previously selected multiplexer state.
π SYNOPSIS π
int mux_control_deselect(struct mux_control *mux);
πΈ ARGUMENTS πΈ
muxβ the mux-control you're deselecting. That's the one. Say bye to it π
π¦ DESCRIPTION π¦
So here's the rule, and it's not a vibe, it's a requirement, no cap: for every single successful call you make to either mux_control_select or mux_control_try_select, you owe exactly one call to mux_control_deselect. Every. Single. One. It's giving "you took it out of the box, you put it back" energy β¨
Like, the select and the deselect are a matched set, iykyk. Don't leave it unbalanced, that's not the move π
π₯ RETURN π₯
0on success π- a negative errno on error π
And here's the tea: an error can only occur if the mux has an idle state. That's the only door it can come through, literally.
β οΈ Big important thing though, bestie: even if an error happens, the mux-control is still unlocked and is thus free for the next access. So like, the error isn't holding the mux hostage or anything. It's free. It's fine. We move π
π SEE ALSO π
The whole friend group π β go say hi:
- 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_control_try_select_delay(9)mux_state_try_select_delay(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)
Periodt. That's the whole page, and it lives in ./drivers/mux, dated October 2026, under the Kernel API Manual banner πΈ Go forth and deselect responsibly, bestie β one deselect per successful select, always, fr fr ππ
π¦ 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