ksz_port_get_default_prio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the ksz_port_get_default_prio page from the Kernel API Manual ✨ This is the function that retrieves the default priority for a port on a KSZ switch β€” like, that's its whole main-character job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ksz_port_get_default_prio (struct dsa_switch *ds , int port );

πŸŽ€ ARGUMENTS πŸŽ€

  • ds β€” pointer to the DSA switch structure, no cap 🫢
  • port β€” the port number from which to get the default priority, periodt πŸ’œ

🌸 DESCRIPTION 🌸

okay so this function fetches the default priority for the specified port on a KSZ switch. That's the vibe: you point it at your switch and your port, and it goes and gets that default priority for you πŸ”₯

It's giving β€œsmall but important helper energy,” and honestly? Obsessed πŸ˜­πŸ’–


⭐ RETURN ⭐

On success, you get the default priority of the port πŸ‘‘ On failure, you get a negative error code β€” so like, not a priority, bestie, an error πŸ’€


🌈 SEE ALSO 🌈


cute little sign-off bestie: this one comes from the source tree ./drivers/net/dsa/microchip, dated October 2026, and it's living its best life in the Kernel API Manual β€” mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from