pinmux_gene...tion_is_gpio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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