pinmux_gene...ee_functions(9)
πΈ 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:
pinmux_can_be_used_for_gpio(9)pin_request(9)pin_free(9)pinmux_request_gpio(9)pinmux_free_gpio(9)pinmux_gpio_direction(9)pinmux_generic_get_function_count(9)pinmux_generic_get_function_name(9)pinmux_generic_get_function_groups(9)pinmux_generic_get_function(9)pinmux_generic_function_is_gpio(9)pinmux_generic_add_function(9)pinmux_generic_add_pinfunction(9)pinmux_generic_remove_function(9)
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
- 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