ksz_port_set_default_prio(9)
π ksz_port_set_default_prio β the Kernel API Manual girlie is here
okay so bestie, buckle in, because today we're looking at ksz_port_set_default_prio(9) from the Kernel API Manual (section 9, yes ma'am) β¨
πΈ NAME πΈ
ksz_port_set_default_prio β literally just sets the default priority for a port on a KSZ switch π no cap, that's the whole gig
π¦ SYNOPSIS π¦
int ksz_port_set_default_prio (struct dsa_switch *ds , int port , u8
prio );
she takes three things and returns an int, periodt π
β¨ ARGUMENTS β¨
dsβ pointer to the DSA switch structure π«Ά like, the switch itself, the main characterportβ the port number for which to set the default priority π₯ which port are we glamming upprioβ the priority value to set β au8, so keep it cute and in range
π DESCRIPTION π
This function sets the default priority for the specified port on a KSZ switch. that's it, that's the vibe β you hand her a switch, a port, and a priority, and she goes and makes that port's default priority be that priority π lowkey iconic
π RETURN π
0 on success, or a negative error code on failure π so like, check your return value bestie, don't just rawdog it and assume everything slayed
π§ SEE ALSO π§
Kernel file ./drivers/net/dsa/microchip/ksz_dcb.c β go read the source, iykyk π
ksz_get_dscp_prio_reg(9)ksz_get_apptrust_map_and_reg(9)ksz_port_get_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_set_apptrust(9)ksz_port_get_apptrust(9)ksz_dcb_init_port(9)ksz_dcb_init(9)
the whole friend group fr fr π«Ά
ok that's the page!! she lives in ./drivers/net/dsa/microchip and this lil drop is dated October 2026 πΈ mwah, go set some default priorities bestie, ily, bye π
π
π¦ 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