mv88e6352_g...gpio_get_dir(9)
π
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:
- Kernel file
./drivers/net/dsa/mv88e6xxx/global2_scratch.c mv88e6xxx_g2_scratch_get_bit(9)mv88e6xxx_g2_scratch_set_bit(9)mv88e6352_g2_scratch_gpio_get_data(9)mv88e6352_g2_scratch_gpio_set_data(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)
ngl this page came straight out of./drivers/net/dsa/mv88e6xxx, dated October 2026, and it's filed undermv88e6352_g...gpio_get_dir(9). slay. now go read a pin's mind ππ§ββοΈπ
π¦ 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