mv88e6352_g2...pio_get_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ:


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