gpiod_get_raw_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Bestie, welcome to the Kernel API Manual page for gpiod_get_raw_value(9) πŸ’…βœ¨. This is your group-chat cheat sheet for pulling a gpio's raw value, no cap. Let's get into it 🫢

✨ NAME ✨

gpiod_get_raw_value β€” return a gpio's raw value. Literally what it says on the label, bestie 🌸

πŸŽ€ SYNOPSIS πŸŽ€

int gpiod_get_raw_value (const struct gpio_desc *desc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the gpio whose value will be returned. That's the one we're checking, bestie πŸ‘€

πŸ’– RETURN πŸ’–

The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure. So you get the physical-line truth, not the active-low-flipped version β€” and if it fails, a negative errno is the vibe πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. So yes: no-sleep contexts are welcome, but if the GPIO chip functions potentially sleep, it's gonna complain 😭

🌈 SEE ALSO 🌈

Kernel file: ./drivers/gpio/gpiolib.c β€” and the whole function family is below, bestie. Every single reference, no skips 🫢


Okay that's the whole page, bestie 🫢 Stay raw, stay iconic, and don't forget the ACTIVE_LOW lore πŸ’…βœ¨ This one's from source/version ./drivers/gpio, dated October 2026, for gpiod_get_raw_value(9) β€” periodt πŸŽ€

πŸ“¦ where this page comes from