xgpio_set_multiple(9)
π
xgpio_set_multiple β from the Kernel API Manual (yes, the (9) one)
Ok so bestie, listen. We're in the kernel man pages today β specifically section 9, the Kernel API Manual β and this little icon is called xgpio_set_multiple. Buckle up, it's actually so simple it's giving main character energy for a one-liner. π¦
β¨ NAME β¨
xgpio_set_multiple β write the specified signals of the GPIO device. That's it. That's the whole job. π
π SYNOPSIS π
int xgpio_set_multiple (struct gpio_chip *gc , unsigned long *mask , unsigned long *bits );
Returns an int, takes three args, no cap. πΈ
π ARGUMENTS π
gcβ pointer to thegpio_chipdevice structure. Like, the whole device vibe check. π«Άmaskβ mask of the GPIOS to modify. This is your "which ones are we touching" list, literally.bitsβ value to be wrote on each GPIO. (Yes, "wrote" β the original said it, we're respecting the original, don't come for me ππ)
π₯ DESCRIPTION π₯
So here's the tea: this function writes the specified values into the specified signals of the GPIO devices. Mask says which signals, bits says what value, and xgpio_set_multiple handles the rest. Slay. π
It's giving "selective update" energy and honestly? Obsessed. β
π SEE ALSO π
Kernel file ./drivers/gpio/gpio-xilinx.c, plus the whole friend group:
- struct
xgpio_instance(9) xgpio_get(9)xgpio_set(9)xgpio_dir_in(9)xgpio_dir_out(9)xgpio_save_regs(9)xgpio_remove(9)xgpio_irq_ack(9)xgpio_irq_mask(9)xgpio_irq_unmask(9)xgpio_set_irq_type(9)xgpio_irqhandler(9)xgpio_probe(9)
Heads up bestie: that bits description really does say "Value to be wrote on each GPIO" β I'm just the messenger, not the grammar police ππ
And that's the page! π Little sign-off moment for you: this one lives under ./drivers/gpio and it's stamped October 2026 in the Kernel API Manual. Periodt. ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms