pinmux_gene...tion_is_gpio(9)
π pinmux_gene...tion_is_gpio(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual, and honestly? It's a little one but she serves. We're talking pinmux_generic_function_is_gpio β yes the name is long, yes it ate, no we're not changing it. π
β¨ NAME β¨
pinmux_generic_function_is_gpio β returns true if given function is a GPIO π«Ά
Like literally, that's the whole job. She checks a function and tells you if it's a GPIO. Iconic, no notes.
πΈ SYNOPSIS πΈ
bool pinmux_generic_function_is_gpio (struct pinctrl_dev *pctldev ,
unsigned int selector );
Not me giving you two whole arguments to pass. Two. Count 'em. π
π¦ ARGUMENTS π¦
pctldevβ the pin controller device π (your main character device, fr)selectorβ the function number π’ (just the number of the function you're curious about, iykyk)
β RETURN β
True if given function is a GPIO, false otherwise. π
That's it. That's the vibe check. true = she's a GPIO, false = she's not, and there's genuinely no in-between, periodt.
ngl bestie this one is a clean boolean β no weird sentinel values, no negative-error-code shenanigans hiding in there. Just true or false. We love a low-drama return value. π§
π SEE ALSO π
okay this is the part where I hand you the whole friend group π―ββοΈ β the Kernel file
./drivers/pinctrl/pinmux.c
and all her besties:
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_add_function(9)pinmux_generic_add_pinfunction(9)pinmux_generic_remove_function(9)pinmux_generic_free_functions(9)
Like... the whole generic-function cinematic universe. You could literally read them all in one sitting. Obsessed. π₯
π sign-off π
That's the page, bestie! This little cutie lives in ./drivers/pinctrl, and the doc itself is dated October 2026 under the Kernel API Manual β and yes, the title up top got squished into pinmux_gene...tion_is_gpio(9) because even manpage headers have to truncate sometimes π. Go check your GPIOs, stay hydrated, and remember: true is a lifestyle. πβ¨π¦
π¦ 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