mux_chip_register(9)
π
mux_chip_register β NAME β¨
okay so bestie, this is mux_chip_register(9) from the Kernel API Manual β and it's literally the function that registers a mux-chip, which means it's the one that gets the controllers ready for use. main character energy fr fr π
πΈ SYNOPSIS πΈ
int mux_chip_register (struct mux_chip *mux_chip );
π ARGUMENTS π
mux_chipβ the mux-chip you're registering. that's the one. the whole point. π«Ά
π¦ DESCRIPTION π¦
okay so real talk: if this fails, do not retry registration of the same mux-chip. like, no. don't do it. π
what you do instead is put it away with mux_chip_free and allocate a brand new one β but only if you for some reason would like to retry registration. that's the whole vibe check on failure handling. π
β RETURN β
Zero on success π or a negative errno on error π. that's it, that's the return.
π₯ SEE ALSO π₯
Kernel file ./drivers/mux/core.c plus the whole squad:
struct mux_state(9)struct devm_mux_state_state(9)mux_chip_alloc(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)
and that's the page bestie!! π§ it lives in ./drivers/mux, dated October 2026, and it's brought to you by the Kernel API Manual β mwah, go register some mux-chips πβ¨
π¦ 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