mux_get(9)
okay bestie, this is mux_get(9) from the Kernel API Manual π like, the whole point is getting the mux-control for a device, and yes weβre gonna cover every tiny detail. no cap.
πΈ NAME πΈ
mux_get β get the mux-control for a device. π
β¨ SYNOPSIS β¨
the whole vibe is:
struct mux_control * mux_get (struct device *dev , const char *mux_name
, unsigned int *state , bool optional , struct device_node *node );
π ARGUMENTS π
devβ the device that needs a mux-control. π«Άmux_nameβ the name identifying the mux-control. πstateβ pointer to where the requested state is returned, orNULLwhen the required multiplexer states are handled by other means. literally important info, bestie.optionalβ whether to returnNULLand silence errors when mux doesn't exist. lowkey the chill setting, iykyk.nodeβ the device nodes, usedev->of_nodeif it isNULL. π¦
π¦ RETURN π¦
on success you get a pointer to the mux-control, periodt. on error? an ERR_PTR with a negative errno. and if optional is true and mux doesn't exist, you get NULL β no cap. π
π SEE ALSO π
bestie, the whole SEE ALSO squad is:
- 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_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)
π source/version: ./drivers/mux Β· date: October 2026 Β· catch you later, bestie! π«Ά
π¦ 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