pinmux_gene...ee_functions(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 pinmux_generic_free_functions(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” this is the page for pinmux_generic_free_functions(9), and yes it's a whole vibe. it's short, it's sweet, and it's got one (1) very important rule. let's get into it πŸ’…


✨ NAME ✨

pinmux_generic_free_functions β€” literally removes all functions 🧹✨

like. all of them. the whole function list. gone. poof.


πŸ¦‹ SYNOPSIS πŸ¦‹

void pinmux_generic_free_functions(struct pinctrl_dev *pctldev);

that's it. one line. returns void, which is giving "i do the work and i don't report back" energy 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • pctldev β€” the pin controller device πŸ‘‘ this is the device whose functions are getting yeeted.

πŸ’– DESCRIPTION πŸ’–

so here's the tea, and it's a big one, so listen up 🫢:

the caller must take care of locking. no cap, this function does not do the locking for you. that responsibility is 100% yours, main character. handle it.

and the second thing β€” and this is the cute part β€” the pinctrl functions are allocated with devm_kzalloc, so there is no need to free them here. the devm_ machinery handles that for you. so you're not doing manual cleanup, you're just doing the removal. slay πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

okay this is the friend group, all the related pages you might wanna peek at πŸ‘€ all of these live in the kernel file ./drivers/pinctrl/pinmux.c:

go read them, they're iconic, iykyk 🌈


anyway that's the whole page, she's short but she's perfect πŸŽ€ this lil beauty lives in ./drivers/pinctrl, dated October 2026, in the Kernel API Manual β€” mwah, catch you in the next one bestie πŸ’œπŸ«Άβœ¨

πŸ“¦ where this page comes from