ksz_port_set_apptrust(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz_port_set_apptrust(9) β€” a Kernel API Manual moment, section 9, bestie πŸ’…

okay so this is the page for ksz_port_set_apptrust from the Kernel API Manual, and it is lowkey iconic: it sets the apptrust selectors for a port on a KSZ switch. Very β€œspecific little helper doing its one job,” and honestly? We love that for it. πŸŽ€


🌸 NAME 🌸

ksz_port_set_apptrust β€” sets the apptrust selectors for a port on a KSZ switch. periodt. πŸ’–

✨ SYNOPSIS ✨

int ksz_port_set_apptrust (struct dsa_switch *ds , int port , const u8
*sel , int nsel );

πŸŽ€ ARGUMENTS πŸŽ€

  • ds β€” Pointer to the DSA switch structure. That’s the switch bb. πŸ¦‹
  • port β€” Port number for which to set the apptrust selectors. Yes, the specific port, no vague vibes.
  • sel β€” Array of apptrust selectors to set. The selector lineup.
  • nsel β€” Number of apptrust selectors in the array. Gotta know how many besties are in the array. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

This function sets the apptrust selectors for the specified port on a KSZ switch. That’s literally the whole plot: you give it the switch, the port, the selectors, and how many selectors there are, and it does the setting. No extra lore in the original, so no cap. ✨

πŸ’œ RETURN πŸ’œ

0 on success, or a negative error code on failure. So 0 is the slay outcome; a negative error code means something went sideways. 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/dsa/microchip/ksz_dcb.c

And the whole friend group:


this lil page comes from ./drivers/net/dsa/microchip, dated October 2026 β€” ksz_port_set_apptrust(9) signing off πŸ’…πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from