mv88e6352_g2...pio_get_pctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

mv88e6352_g2_scratch_gpio_get_pctl β€” bestie, it gets the pin control setting ✨

So like, this is one of those Kernel API Manual pages (section 9, iykyk) and honestly? It's a little icon and it does exactly one thing: reads the pctl of a pin. Periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

int mv88e6352_g2_scratch_gpio_get_pctl (struct mv88e6xxx_chip *chip ,
unsigned int pin , int *func );

πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the chip private data, aka the main character of this whole operation πŸ‘‘
  • pin β€” the gpio index, so you know which pin we're talking about, no cap
  • func β€” the function number, where the answer lands 🫢

🌸 DESCRIPTION 🌸

Okay so real talk: the function numbers themselves may vary by chipset. Not me guessing β€” that's literally what the page says, so don't come for me if your chipset's numbering is giving different vibes πŸ’€

Also highkey important: this thing gets the pin control setting. It does not set it. If you wanted to set it, wrong function bestie, keep scrolling to the set_pctl one down in SEE ALSO 🌈


⭐ SEE ALSO ⭐

Like, the whole friend group is here fr fr β€” go read the rest of them, they ate πŸ’œ


Quick reminder boo: this page lives at ./drivers/net/dsa/mv88e6xxx, and it's dated October 2026. Screenshot it, cite it, whatever β€” just don't say I didn't tell you πŸ“

And that's the whole page bestie, mwah πŸ’– go get that pin control setting and slay βœ¨πŸ§šβ€β™€οΈπŸŽ€

πŸ“¦ where this page comes from