gpiod_is_equal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the gpiod_is_equal(9) page from the Kernel API Manual, bestie ✨ this one is a tiny little bestie of a function and it's all about checking if two GPIO descriptors are pointing at the same pin. no cap.

gpiod_is_equal β€” check if two GPIO descriptors refer to the same pin. πŸ’…


✨ SYNOPSIS ✨

here's the whole signature, bestie β€” copy it exactly, no edits:

       bool gpiod_is_equal (const struct gpio_desc *desc , const struct
       gpio_desc *other );

πŸŽ€ ARGUMENTS πŸŽ€

  • desc β€” descriptor to compare. literally the first one you're checking, bestie 🫢
  • other β€” the second descriptor to compare against. yes, it takes two to do the equality tango πŸ’ƒ

🌈 RETURN 🌈

  • True β€” the descriptors refer to the same physical pin πŸ‘‘
  • False β€” otherwise, aka they're not the same pin πŸ™ˆ

πŸ’… SEE ALSO πŸ’…

okay so here's the whole friend group πŸ’– the kernel file is ./drivers/gpio/gpiolib.c, and these are all the related calls you might wanna peek at, iykyk:

that’s a wrap, bestie β€” source/version ./drivers/gpio, date October 2026, mwah πŸ’‹

πŸ“¦ where this page comes from