mv88e6352_g2...t_has_serdes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mv88e6352_g2_scratch_port_has_serdes β€” NAME ✨

okay so this is a page from the Kernel API Manual (yes, the mv88e6352_g2...t_has_serdes(9) one, we love a truncated title bestie πŸ’…πŸ«Ά) and it's literally about one little function:

mv88e6352_g2_scratch_port_has_serdes β€” tells you whether a port has a serdes or not πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int mv88e6352_g2_scratch_port_has_serdes (struct mv88e6xxx_chip *chip ,
int port );

that's it, that's the whole vibe check 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the chip private data. it's giving "main character struct" ngl πŸ‘‘
  • port β€” the port number we're checking for serdes πŸ“

πŸ’œ DESCRIPTION πŸ’œ

so basically this function indicates whether the port may have a serdes attached, according to the pin strapping β€” and that strapping? it's cached at reset (that's scratch config3, iykyk ✨).

Here's the tea on what it returns β˜•:

  • returns 0 if the port is not configured to have a serdes πŸ’€
  • returns 1 if the port is configured to have a serdes attached πŸ”₯

no cap, that's the whole story. lowkey iconic for how tiny it is.


🌈 SEE ALSO 🌈

like, go read these next, they're all in the same orbit 🧚:

Kernel file: ./drivers/net/dsa/mv88e6xxx/global2_scratch.c


fr fr read them all, they're friends of the function, don't leave them on read πŸ™ˆ

πŸ₯Ί and that's the page!! source/version vibes: ./drivers/net/dsa/mv88e6xxx, dated October 2026, originally filed under mv88e6352_g2...t_has_serdes(9) β€” mwah, bye bestie πŸ’–β­πŸ¦‹

πŸ“¦ where this page comes from