gpiod_direction_input(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ gpiod_direction_input(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the gpiod_direction_input(9) page from the Kernel API Manual. This is the little function that sets a GPIO’s direction to input, and it’s honestly iconic for it πŸ’…


🌸 NAME 🌸

gpiod_direction_input β€” set the GPIO direction to input πŸ¦‹

✨ SYNOPSIS ✨

int gpiod_direction_input (struct gpio_desc *desc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the GPIO to set to input. That’s the whole vibe 🫢

πŸ“ DESCRIPTION πŸ“

Set the direction of the passed GPIO to input, so that gpiod_get_value can be called safely on it. No cap, that’s the job πŸ’–

πŸ”₯ RETURN πŸ”₯

0 on success, or a negative errno on failure. Periodt πŸ’…

🌈 SEE ALSO 🌈

The kernel file is ./drivers/gpio/gpiolib.c, and here’s the whole bestie list β€” every single one, fr fr:

byeeee 🫢 this page lives in ./drivers/gpio, dated October 2026, and it’s literally the gpiod_direction_input(9) manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from