gpiod_set_raw_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

okay so this is gpiod_set_raw_value(9), straight outta the Kernel API Manual β€” and it's here to assign a gpio's raw value. bestie, that's the whole vibe πŸ’–


✨ SYNOPSIS

int gpiod_set_raw_value (struct gpio_desc *desc , int value );

πŸŽ€ ARGUMENTS

  • desc β€” the gpio whose value will be assigned. that's the main character 🫢
  • value β€” the value to assign. yes, literally that 🌸

πŸ¦‹ DESCRIPTION

Set the raw value of the GPIO β€” i.e. the value of its physical line, without regard for its ACTIVE_LOW status. raw is raw, no cap πŸ’…

This function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep. so like, respect the no-sleep zone or it's gonna be a whole thing 😭


🌈 RETURN

0 on success, and a negative error number on failure. slay when it's zero, sad little number when it's not πŸ’€


πŸ‘‘ SEE ALSO

Kernel file: ./drivers/gpio/gpiolib.c β€” and then the whole friend group, go say hi:


mwah πŸ’‹ this page came from ./drivers/gpio, dated October 2026, and it's literally titled gpiod_set_raw_value(9) β€” periodt πŸŽ€

πŸ“¦ where this page comes from