STRUCT DEVM_MUX_STATE_STATE(9)
π struct devm_mux_state_state(9) π
okay so bestie, welcome to the Kernel API Manual β¨ we're talking about a lil struct called struct devm_mux_state_state and honestly? it's giving backstage-pass energy π
πΈ NAME πΈ
struct devm_mux_state_state β one singular job: it tracks managed resources for mux-state objects. that's it. that's the whole vibe. it's the responsible friend holding everyone's stuff π«Ά
β SYNOPSIS β
struct devm_mux_state_state {
struct mux_state *mstate;
int (*exit)(struct mux_state *mstate);
};
look at her. two members. lowkey iconic π
π¦ MEMBERS π¦
mstateβ a pointer to a mux state. literally just a pointer. it points. that's the assignment and she ate π₯exitβ an optional callback that runs before free. optional bestie!! you don't have to bring one, but if you do, she goes off right before the cleanup π
π SEE ALSO π
bestie there are SO many siblings, buckle up π the kernel file is ./drivers/mux/core.c (that's where the family lives, iykyk) and here's the whole group chat:
struct mux_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)
yeah. that's twenty-five. count 'em. no cap, they're all real and all worth a read πβ¨
mwah okay that's the page!! sourced straight from ./drivers/mux, dated October 2026, and it's struct devm_mux_state_state(9) forever and always π go be a main character in the kernel bestie, ily π§ββοΈπΈ
π¦ 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