ksz_port_add_dscp_prio(9)
π ksz_port_add_dscp_prio(9) β Kernel API Manual energy π
Okay so bestie, this is the ksz_port_add_dscp_prio(9) page from the Kernel API Manual. Itβs giving βvery specific kernel API, very important little jobβ and honestly weβre obsessed. πΈ
π NAME π
ksz_port_add_dscp_prio β adds a DSCP-to-priority mapping entry for a port on a KSZ switch. Thatβs the whole assignment, no cap. β¨
π SYNOPSIS π
int ksz_port_add_dscp_prio (struct dsa_switch *ds , int port , u8 dscp ,
u8 prio );
π¦ ARGUMENTS π¦
dsβ pointer to the DSA switch structure (struct dsa_switch *). The main-character struct, iykyk. πportβ port number for which to add the DSCP-to-priority mapping entry. Like, this is the port getting the new mapping. π«Άdscpβ DSCP value for which to add the priority. Yes bestie, that exact DSCP value. πprioβ priority value to set. Slay. π₯
π₯ RETURN π₯
Returns 0 on success, or a negative error code on failure. Thatβs it, thatβs the vibe check. π
bestie, remember: 0 means success, negative means failure. No extra lore, fr fr. π
π 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_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_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)
mwah π cute sign-off time: source/version is ./drivers/net/dsa/microchip, date is October 2026, and the page is ksz_port_add_dscp_prio(9). byeee bestie π«Άβ¨
π¦ 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