mv88e6352_g...gpio_get_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mv88e6352_g2_scratch_gpio_get_dir β€” from the mv88e6352_g...gpio_get_dir(9) kernel API manual, bestie πŸŽ€

okay so picture this: you're deep in the mv88e6xxx DSA driver, you're staring at a GPIO pin, and you just need to know which way it's facing. that's this function. that's the whole vibe. ✨


🌸 NAME 🌸

mv88e6352_g2_scratch_gpio_get_dir β€” literally just "get direction of gpio pin". that's it, that's the function, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int mv88e6352_g2_scratch_gpio_get_dir (struct mv88e6xxx_chip *chip ,
unsigned int pin );

two args, one int coming back at you. it's giving "small function, big main character energy" πŸ‘‘


πŸ“ ARGUMENTS πŸ“

  • chip β€” the chip private data. yeah, the whole private data struct, hand it over, it's fine 🫢
  • pin β€” the gpio index. just tell her which pin you're curious about πŸ™ˆ

⭐ RETURN ⭐

0 means output. 1 means input.

that's it. that's the entire answer. 0 = out, 1 = in. write it on your hand, iykyk 😭


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” go say hi:


ngl this page came straight out of ./drivers/net/dsa/mv88e6xxx, dated October 2026, and it's filed under mv88e6352_g...gpio_get_dir(9). slay. now go read a pin's mind πŸ’–πŸ§šβ€β™€οΈπŸŒˆ
πŸ“¦ where this page comes from