intel_gpio_add_pin_ranges(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

intel_gpio_add_pin_ranges(9) β€” straight out of the Kernel API Manual β€” is the function that does exactly this: add GPIO pin ranges for all groups in all communities. Periodt. ✨

πŸŽ€ SYNOPSIS πŸŽ€

int intel_gpio_add_pin_ranges (struct gpio_chip *gc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gc β€” the GPIO chip structure. That's the whole vibe. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

Okay so here's the tea: this function iterates over all communities and all groups, and it adds the respective GPIO pin ranges. Why? So the GPIO library will correctly map a GPIO offset to a pin number. No cap. πŸ’…

πŸ‘‘ RETURN πŸ‘‘

It returns 0, or a negative error code if the range can't be added. Simple as that. 😭

🌈 SEE ALSO 🌈


sign-off: this page came from source/version ./drivers/pinctrl/intel and is dated October 2026. mwah πŸ’‹

πŸ“¦ where this page comes from