mux_control_get_optional(9)
β¨ mux_control_get_optional(9) β¨
okay bestie so this is a page straight out of the Kernel API Manual, and it's literally called mux_control_get_optional β like, go get the optional mux-control for a device π ngl the name ate and left no crumbs.
π NAME π
mux_control_get_optional β Get the optional mux-control for a device.
bestie it does exactly what it says on the tin, no cap π«Ά
πΈ SYNOPSIS πΈ
struct mux_control * mux_control_get_optional (struct device *dev ,
const char *mux_name );
look at that signature, it's giving main character energy π
π¦ ARGUMENTS π¦
devβ The device that needs a mux-control. like the device is the one asking for the glow-up πmux_nameβ The name identifying the mux-control. this is how you find your mux in the group chat, iykyk π―
β RETURN β
okay so here's the vibe check on what you get back:
- Pointer to the mux-control on success π slay
- an
ERR_PTRwith a negative errno on error π not slay - or
NULLif mux doesn't exist π that's the "optional" part doing its whole thing
π SEE ALSO π
fr fr go read the rest of the family, they're all iconic:
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_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_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 whole page bestie, no notes π§π
this one lives in ./drivers/mux, and it's dated October 2026 β mwah, bookmark it, screenshot it, send it to the group chat π₯π
π¦ 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