ksz_get_dscp_prio_reg(9)
π ksz_get_dscp_prio_reg(9) π
okay so bestie, welcome to the Kernel API Manual entry for ksz_get_dscp_prio_reg(9) β literally the little guy that retrieves the DSCP-to-priority-mapping register. it's giving "small function, big job" energy and honestly? we're obsessed π
β¨ NAME β¨
ksz_get_dscp_prio_reg β Retrieves the DSCP-to-priority-mapping register πΈ
π¦ SYNOPSIS π¦
void ksz_get_dscp_prio_reg (struct ksz_device *dev , int *reg , int
*per_reg , u8 *mask );
no cap, that's the whole signature right there β one void return, four args, zero drama π
π«Ά ARGUMENTS π«Ά
devβ Pointer to the KSZ switch device structure. this is your main character β the switch itself πregβ Pointer to the register address to be set. it's a pointer, so yeah, the function writes back through it πper_regβ Pointer to the number of DSCP values per register. basically "how many DSCP vibes fit in one register" β¨maskβ Pointer to the mask to be set. the mask, the icon, the moment π
π DESCRIPTION π
This function retrieves the DSCP to priority mapping register, the number of DSCP values per register, and the mask to be set. π¦
that's it, that's the whole vibe β it doesn't change anything, it just goes and fetches those three things for you and hands them over through the pointers you passed in. lowkey a giver ngl π
π SEE ALSO π
- Kernel file
./drivers/net/dsa/microchip/ksz_dcb.c 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_set_apptrust(9)ksz_port_get_apptrust(9)ksz_dcb_init_port(9)ksz_dcb_init(9)
like, go read the whole friend group, they all hang out together fr fr π
and that's the page!! π
brought to you by the fine folks at ./drivers/net/dsa/microchip, dated October 2026, and yes the footer still says ksz_get_dscp_prio_reg(9) because we would never forget her name π§ββοΈπ slay, 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