STRUCT PISOSR_GPIO(9)
π struct pisosr_gpio(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for struct pisosr_gpio, and no cap, it's a little cutie. π
π NAME π
struct pisosr_gpio β literally the GPIO driver data. that's it, that's the vibe. π¦
β¨ SYNOPSIS β¨
struct pisosr_gpio {
struct gpio_chip chip;
struct spi_device *spi;
u8 *buffer;
size_t buffer_size;
struct gpio_desc *load_gpio;
struct mutex lock;
};
ngl, look at her. six fields, all iconic in their own way. π
πΈ Members πΈ
chipβ the GPIO controller chip itself. main character energy fr. π«Άspiβ a pointer to the SPI device. iykyk. πbufferβ the buffer for device reads. she holds the data, that's her job. πbuffer_sizeβ the size of that buffer. becausebufferwithoutbuffer_sizeis giving "unfinished sentence". πload_gpioβ the GPIO pin used to load input into the device. lowkey the most important pin here. π₯lockβ a mutex that protects read sequences. do not skip the lock, bestie, that's how you get chaos. π
β SEE ALSO β
- Kernel file
./drivers/gpio/gpio-pisosr.cβ go read it, it's right there. π
and that's the whole page, periodt. π
this came from ./drivers/gpio, dated October 2026 β so like, yeah, note the source and the date, slay. πβ¨πΈ
π¦ 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