devm_mux_chip_alloc(9)
okay so bestie, welcome to devm_mux_chip_alloc(9) from the Kernel API Manual π β it's the resource-managed version of mux_chip_alloc(), and yes it's giving kernel-core main character energy β¨
π NAME π
devm_mux_chip_alloc β resource-managed version of mux_chip_alloc(). that's the whole name, no cap π
β¨ SYNOPSIS β¨
the signature is right here, bestie β copy it exactly:
struct mux_chip * devm_mux_chip_alloc (struct device *dev , unsigned int
controllers , size_t sizeof_priv );
π ARGUMENTS π
devβ the parent device implementing the mux interface, aka the main character holding it down.controllersβ the number of mux controllers to allocate for this chip.sizeof_privβ the size of the extra memory area that's for private use by the caller.
π¦ DESCRIPTION π¦
for the full lore, check mux_chip_alloc β it's got more details, periodt.
π RETURN π
you get a pointer to the new mux-chip, or an ERR_PTR with a negative errno β that's the vibe check result, bestie.
π SEE ALSO π
Kernel file ./drivers/mux/core.c is where it lives. the whole cross-ref squad:
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_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)
mwah π β this page's source/version is ./drivers/mux, dated October 2026, and the page is devm_mux_chip_alloc(9). bye bestie, go be iconic π«Άπ
π¦ 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