gpiod_set_raw_array_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 gpiod_set_raw_array_value(9) β€” the Kernel API Manual glow-up πŸŽ€

okay bestie, so you know how sometimes you gotta yeet a whole pile of values at a whole pile of GPIOs, all at once, no big deal? yeah. that's this. she's from the Kernel API Manual and she's lowkey iconic for it. periodt. ✨


πŸ¦‹ SYNOPSIS

int gpiod_set_raw_array_value (unsigned int array_size , struct
gpio_desc **desc_array , struct gpio_array *array_info , unsigned long
*value_bitmap );

like, that's the whole signature. she's not asking for much, she's just asking for everything at once πŸ’…


πŸŽ€ ARGUMENTS

  • array_size β€” how many things live in the descriptor array / value bitmap. it's giving "headcount for the group chat." ✨
  • desc_array β€” the array of GPIO descriptors that are about to get their values assigned. these are the girlies receiving the tea 🫢
  • array_info β€” info about whether the fast bitmap processing path is applicable. basically the vibe check on whether we can go fast or not ⚑
  • value_bitmap β€” the bitmap of values to assign. the actual content of the group message, if you will πŸ’Œ

πŸ’– DESCRIPTION

so what she does is: sets the raw values of the GPIOs. and "raw" here is doing a LOT of work, bestie β€” it means the values of the physical lines, without regard for their ACTIVE_LOW status. like she does not care about the polarity situation at all, she's looking straight at the hardware. no filter. no cap.

also important, so listen up: this function can be called from contexts where we cannot sleep πŸ”₯ and she will complain if the GPIO chip functions potentially sleep. so like, don't try it. she's not shy about it. she will say something. πŸ’€


πŸ‘‘ RETURN

0 on success, or negative errno on failure. slay when it's a zero, sad little errno when it's not 😭


πŸ’… SEE ALSO

the whole extended fam, fr fr. kernel file ./drivers/gpio/gpiolib.c plus:


bestie note 🧚: everything above lives under ./drivers/gpio 🌸 that's the source, and the version/date stamp says October 2026 ⭐ so like, she's fresh. and the page is, of course, gpiod_set_raw_array_value(9) β€” the main character herself πŸ‘‘πŸ’œ

okay that's the whole page, go forth and set those raw array values responsibly πŸ˜­πŸ«ΆπŸ“

πŸ“¦ where this page comes from