pinmux_generic_add_function(9)
πΈ NAME πΈ
pinmux_generic_add_function β adds a function group. That's literally the whole assignment, bestie: it adds a function group. This page is from the Kernel API Manual, and we're about to make it make sense. π
β¨ SYNOPSIS β¨
int pinmux_generic_add_function (struct pinctrl_dev *pctldev , const
char *name , const char * const *groups , const unsigned int ngroups ,
void *data );
Okay so this is the incantation. It returns an int, and it takes five arguments. Copy the names exactly, no improvising, fr fr. π«Ά
π ARGUMENTS π
pctldevβ pin controller device. It's the pin controller bestie in question.nameβ name of the function. Yes, the function's name. Iconic.groupsβ array of pin groups. Not one group, an array of them.ngroupsβ number of pin groups. This is the count for thatgroupsarray.dataβ pin controller driver specific data. The driver's own little payload.
π¦ SEE ALSO π¦
Kernel file: ./drivers/pinctrl/pinmux.c β and then the whole related-page squad:
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_pinfunction(9)pinmux_generic_remove_function(9)pinmux_generic_free_functions(9)
Bye bestie π β footer vibe check: source/version ./drivers/pinctrl, date October 2026, page pinmux_generic_add_function(9). Periodt. π
π¦ 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