gpiod_is_single_ended(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gpiod_is_single_ended(9)

okay so welcome to the Kernel API Manual, bestie β€” this is the gpiod_is_single_ended(9) page and it’s lowkey a tiny one. πŸ’…

πŸ’– NAME

gpiod_is_single_ended β€” check if the GPIO is configured as single-ended

🌈 SYNOPSIS

bool gpiod_is_single_ended (struct gpio_desc *desc );

πŸŽ€ ARGUMENTS

  • desc β€” the GPIO descriptor to check. That’s the whole input, bestie.

✨ DESCRIPTION

okay so this one returns true if the GPIO is configured as either Open Drain or Open Source. That’s the vibe check. πŸ”₯

In these modes, the direction of the line cannot always be reliably determined by reading hardware registers, because the "off" state (High-Z) is physically indistinguishable from an input state. Not me making the hardware shy or anything β€” it’s literally physically indistinguishable. πŸ’€

heads up: that High-Z thing is why register-peeking can’t always tell you the direction, no cap.

πŸ‘‘ SEE ALSO

Kernel file ./drivers/gpio/gpiolib.c is in the group chat too, along with this whole lineup:


mwah πŸ’– β€” signed off from the ./drivers/gpio source/version, dated October 2026.

πŸ“¦ where this page comes from