pinctrl_gpio_get_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is pinctrl_gpio_get_config(9) from the Kernel API Manual, and it's giving tiny-but-important helper energy. Its whole job? Get the config for a given GPIO pin. slay. πŸ’…


✨ SYNOPSIS ✨

int pinctrl_gpio_get_config (struct gpio_chip *gc , unsigned int offset
, unsigned long *config );

πŸŽ€ ARGUMENTS πŸŽ€

  • gc β€” the GPIO chip structure from the GPIO subsystem. that's the main-character struct right there 🫢
  • offset β€” the hardware offset of the GPIO relative to the controller. precise, iconic, no cap πŸ“
  • config β€” the configuration to query. on success it holds the result. so yes, this pointer comes back with the goods ✨

🌈 RETURN 🌈

0 on success, negative errno otherwise. that's the whole vibe check: zero means we ate, negative means something went sideways 😭


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./drivers/pinctrl/core.c, and these besties also want their shoutouts, fr fr:


okay bye bestie πŸ’– this page comes from ./drivers/pinctrl, dated October 2026, and its full name is pinctrl_gpio_get_config(9) β€” periodt. βœ¨πŸŽ€

πŸ“¦ where this page comes from