STRUCT MUX_STATE(9)
π struct mux_state(9) β the kernel API manual, but make it make sense β¨
okay bestie, so this is a page from the Kernel API Manual and it's about struct mux_state β literally the glo-up era of mux controllers. let's get into it π
πΈ NAME πΈ
struct mux_state β Represents a mux controller state specific to a given consumer.
like, it's giving "this state is yours, nobody else's" energy π
β¨ SYNOPSIS β¨
struct mux_state {
struct mux_control *mux;
unsigned int state;
};
no cap, that's the whole struct. two members, both iconic π
π«Ά Members π«Ά
muxβ Pointer to a mux controller. yup, that's the connection, the main character of the pair π«stateβ State of the mux to be selected. this is the one you're picking, so choose wisely bestie π
π Description π
This structure is specific to the consumer that acquires it and has information specific to that consumer. fr fr β it's your struct, it knows your stuff, it's not out here sharing your business with every other consumer in the kernel π
lowkey the whole point: the state info belongs to whoever grabbed it. periodt. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/mux/core.c 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_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, go read all of them. yes, all of them. i said what i said π§ββοΈ
and that's the whole page, bestie β go forth and select your mux states responsibly π
sign-off szn π«Ά: this one came from ./drivers/mux, dated October 2026. slay. π
π¦ 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