intel_pin_to_gpio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ intel_pin_to_gpio πŸ’…

okay so bestie, this is a page from the Kernel API Manual (section 9, the kernel-y one 🧚) and it's literally all about intel_pin_to_gpio β€” the little function that does the glow-up from pin number to GPIO offset. no cap, that's the whole vibe of it. πŸ¦‹


🌸 SYNOPSIS 🌸

int intel_pin_to_gpio (const struct intel_pinctrl *pctrl , int pin );

that's the whole signature, bestie β€” int in, int out, two args, iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pctrl β€” the pinctrl structure 🫢 (yes, the const struct intel_pinctrl * one, she's const so hands off)
  • pin β€” the pin number, an int, just a number, that's her whole job πŸ’…

πŸ’– DESCRIPTION πŸ’–

so what she does is take the pin number from that pinctrl and translate it into a GPIO offset. that's it. that's the function. lowkey obsessed with how straightforward she is ✨


🌈 RETURN 🌈

she hands you back a GPIO offset πŸ’– …or a negative error code if the translation can't be done 😭 (so like, vibe check your return value, fr fr β€” don't just assume it's a happy little offset).

ngl, a negative error code is not a GPIO offset, so check before you use it. 🚨

⭐ SEE ALSO ⭐

  • the Kernel file ./drivers/pinctrl/intel/pinctrl-intel.c β€” she's the source file, the main character energy of this whole operation πŸŽ€
  • enum (anonymous)(9) πŸ‘€
  • enum (anonymous)(9) πŸ’€ (yes, she's listed twice β€” twice the anonymous enum, twice the mystery, iykyk)
  • intel_gpio_to_pin(9) β€” the reverse-glow-up queen πŸ¦‹
  • intel_gpio_add_pin_ranges(9) β€” the other sibling in this little pinctrl family 🌸

and that's the tea πŸ“ β€” this page lives in ./drivers/pinctrl/intel, dated October 2026, from the Kernel API Manual, and she's called intel_pin_to_gpio(9). periodt. πŸ’œβœ¨

πŸ“¦ where this page comes from