ksz_port_get_default_prio(9)
π 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 π
- Kernel file
./drivers/net/dsa/microchip/ksz_dcb.c ksz_get_dscp_prio_reg(9)ksz_get_apptrust_map_and_reg(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_set_apptrust(9)ksz_port_get_apptrust(9)ksz_dcb_init_port(9)ksz_dcb_init(9)
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
- 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