GPIOINFO(1)

πŸ’– GPIOINFO(1) β€” the gpioinfo girlie's guide πŸ’–

okay so real talk, bestie: this is the gpioinfo page out of the libgpiod command-line utility lineup, and it's about to tell you absolutely everything about your GPIO lines. no gatekeeping here 🫢

✨ SYNOPSIS ✨

gpioinfo [OPTIONS] [line]...

like, options first if you want them, then the lines you're curious about. easy.

🌸 DESCRIPTION 🌸

It prints info about GPIO lines. that's the whole vibe. literally just… information about your GPIO lines πŸ’…

You can specify lines by name, or β€” if you also passed the chip option β€” by offset instead. both are valid, no cap.

And if you specify, like, no lines at all? it just shows you all of them. the whole lineup. main character energy for every single line ⭐

πŸŽ€ OPTIONS πŸŽ€

  • --by-name β€” treats your lines as names even if they'd otherwise parse as an offset. so if your line is literally named 7 and you mean the name, this is your girl ✨
  • -c, --chip <chip> β€” narrows the whole thing down to one particular chip. scope restriction, we love a boundary πŸ¦‹
  • -h, --help β€” shows you this help and dips out. iconic exit behavior πŸ’…
  • -s, --strict β€” checks every single line, no shortcuts β€” it does not assume line names are unique. thorough queen behavior πŸ‘‘
  • --unquoted β€” don't quote the line names or consumer names. raw and unfiltered, iykyk πŸ™ˆ
  • -v, --version β€” spits out version info and exits. short and sweet πŸ“

🧚 Chips 🧚

okay this part is lowkey important: a GPIO chip can be identified by number, name, or path. so like, '0', 'gpiochip0', and /dev/gpiochip0'… wait, no β€” '/dev/gpiochip0' β€” all refer to the same chip. three fits, one chip. periodt πŸ’–

πŸ’œ AUTHOR πŸ’œ

Bartosz Golaszewski <brgl@kernel.org> β€” the legend himself 🫢

😭 REPORTING BUGS 😭

found a bug? don't just scream into the group chat, report it to:

Bartosz Golaszewski <brgl@kernel.org>
linux-gpio <linux-gpio@vger.kernel.org>

Copyright Β© 2017-2023 Bartosz Golaszewski License: GPL-2.0-or-later

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

okay so the NO WARRANTY thing is in all caps in the original for a reason β€” it's not me being dramatic (for once). it's real. take it seriously, bestie πŸ’€

and that's the page!! this whole thing is from gpioinfo v2.3.2 (libgpiod v2....) and it's dated November 2026 β€” so yeah, she's current, she's documented, she ate πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: libgpiod 2.3.2-1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later AND CC-BY-SA-4.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms