mux_control_states(9)
π mux_control_states(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is mux_control_states, and honestly? she's short, she's sweet, and she does exactly one thing. we love a focused queen π
πΈ NAME πΈ
mux_control_states β Query the number of multiplexer states. that's it. that's the whole job. no cap π
β¨ SYNOPSIS β¨
unsigned int mux_control_states (struct mux_control *mux );
literally just hand her a mux-control pointer and she'll tell you how many states it's got. simple. iconic. π
π¦ ARGUMENTS π¦
muxβ The mux-control to query. yeah, that's the one you're asking about. give her the goods and she'll do the rest π«Ά
β RETURN β
The number of multiplexer states. that's the value that comes back β an unsigned int, bestie, so don't go expecting anything spicy π₯
no error codes here, no weird edge cases spelled out β she returns the count and that's the vibe check β
π SEE ALSO π
okay so she does NOT work alone, she's got a whole squad, and you should absolutely meet them all π β all of these live in the 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_select_delay(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)
like, that's the whole group chat π go read them, iykyk π
and that's the page, bestie!! π no notes, 10/10, ate and left no crumbs π
this cutie lives in ./drivers/mux and she was dated October 2026 β mwah, catch you in the next manpage ππ¦π
π¦ 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