ksz_port_set_apptrust(9)
π 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:
ksz_get_dscp_prio_reg(9)ksz_get_apptrust_map_and_reg(9)ksz_port_get_default_prio(9)ksz_port_set_default_prio(9)ksz_port_get_dscp_prio(9)ksz_set_global_dscp_entry(9)ksz_init_global_dscp_map(9)ksz_port_add_dscp_prio(9)ksz_port_del_dscp_prio(9)ksz_apptrust_error(9)ksz_port_set_apptrust_validate(9)ksz_port_get_apptrust(9)ksz_dcb_init_port(9)ksz_dcb_init(9)
this lil page comes from ./drivers/net/dsa/microchip, dated October 2026 β ksz_port_set_apptrust(9) signing off π
πΈπ«Ά
π¦ 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