mv88e6352_g2...pio_get_data(9)
π NAME
okay so bestie, gather round β this one is mv88e6352_g2_scratch_gpio_get_data, and it's literally the function that gets data on gpio pin. that's it, that's the whole vibe. it's a kernel API thing from the Kernel API Manual, and it's giving "tiny helper, big responsibilities" β¨
β¨ SYNOPSIS
int mv88e6352_g2_scratch_gpio_get_data (struct mv88e6xxx_chip *chip ,
unsigned int pin );
like, you hand it a chip and a pin, it hands you back a number. no cap, that's the whole transaction π«Ά
π ARGUMENTS
chipβ chip private data π the main character of this lil call, fr.pinβ gpio index π which pin we're snooping on, bestie.
πΈ RETURN
0 for low, 1 for high, negative error π
so like β 0? low. 1? high. anything negative? that's the error girlies knocking, handle it. π
π¦ SEE ALSO
the kernel file it lives in, iconic location:
./drivers/net/dsa/mv88e6xxx/global2_scratch.c
and the whole friend group π:
mv88e6xxx_g2_scratch_get_bit(9)mv88e6xxx_g2_scratch_set_bit(9)mv88e6352_g2_scratch_gpio_set_data(9)mv88e6352_g2_scratch_gpio_get_dir(9)mv88e6352_g2_scratch_gpio_set_dir(9)mv88e6352_g2_scratch_gpio_get_pctl(9)mv88e6352_g2_scratch_gpio_set_pctl(9)mv88e6390_g2_scratch_gpio_set_smi(9)mv88e6393x_g2_scratch_gpio_set_smi(9)mv88e6352_g2_cache_global_scratch_config3(9)mv88e6352_g2_scratch_port_has_serdes(9)
and that's the whole page, bestie π§ source is ./drivers/net/dsa/mv88e6xxx, dated October 2026 β go forth and read your gpio pins, slay π
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