STRUCT MUX_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

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