devm_mux_control_get(9)
π devm_mux_control_get(9) β like, the Kernel API Manual page you actually wanna read π
okay so bestie, welcome to the devm_mux_control_get page from the Kernel API Manual. yes it's a mouthful, no you're not gonna fumble it, i got you π this one's short, sweet, and honestly kinda iconic β it's the resource-managed girlie of the mux-control getter family. periodt.
β¨ NAME β¨
devm_mux_control_get β Get the mux-control for a device, with resource management.
like, it grabs your mux-control and handles the cleanup bookkeeping for you. the devm_ prefix is literally the "i'll remember to free it so you don't have to" friend. we stan π«Ά
πΈ SYNOPSIS πΈ
struct mux_control * devm_mux_control_get (struct device *dev , const
char *mux_name );
that's the whole vibe check. two args, one pointer back. no cap β¨
π¦ ARGUMENTS π¦
devβ The device that needs a mux-control. π like, which device is asking? that one. main character energy.mux_nameβ The name identifying the mux-control. π the actual name tag so the kernel knows which mux-control you mean. iykyk.
β RETURN β
Pointer to the mux-control, or an ERR_PTR with a negative errno. π
fr fr, always check with IS_ERR() before you go dereferencing β a raw negative errno wearing a pointer costume is NOT the vibe. π
π SEE ALSO π
the whole extended friend group, in original order, no one left out π:
- Kernel file
./drivers/mux/core.cstruct 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_get_optional(9),mux_control_put(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)
π reminder that these are text references, bestie β read 'em as written, don't @ me tryna "clean up" the names.
and that's the page!! sourced from ./drivers/mux, dated October 2026 β mwah, go get your mux-control π§ββοΈππ₯
π¦ 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