pinmux_gener...ove_function(9)
π pinmux_generic_remove_function β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual β this one's short and sweet, and it's giving "small function, big responsibility" energy. Let's get into it. β¨
πΈ NAME πΈ
pinmux_generic_remove_function β literally just removes a numbered function. that's the whole job. no cap. π
β¨ SYNOPSIS β¨
int pinmux_generic_remove_function (struct pinctrl_dev *pctldev ,
unsigned int selector );
so you hand it a pin controller device and a function number, and it gives you back an int. iconic signature, no notes. π«Ά
π¦ ARGUMENTS π¦
pctldevβ the pin controller device. your main character struct, the one doing all the work. πselectorβ the function number. which function are we removing? this number. that's it, that's the vibe check. π₯
π DESCRIPTION π
okay so the actual thing this does is right there in the name β it removes a numbered function. simple. elegant. slay.
but read this part, bestie: the caller must take care of locking. not the function, not some helpful helper β you. so if you forget, that's on you, and the vibes will be immaculate but the concurrency will NOT be. π«
β οΈ fr fr: the caller must take care of locking. consider this your friendly reminder in bold, because locking bugs are the literal worst. π
π SEE ALSO π
Kernel file ./drivers/pinctrl/pinmux.c β plus a whole friend group of related functions, all here so you can go read them yourself, iykyk:
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_free_functions(9)
and that's the whole page, bestie!! π§π
sign-off time: this little gem comes from ./drivers/pinctrl, dated October 2026, and it's filed under pinmux_gener...ove_function(9) β yes the header name is truncated with the ..., no that's not a typo, that's just manpage life. π go forth, remove functions, and lock responsibly. mwah. ππ
π¦ 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