devm_mux_chip_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:

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