ksz_get_appt..._map_and_reg(9)
π ksz_get_appt..._map_and_reg(9) β from the Kernel API Manual, section 9, bestie π
Okay so real talk, this one's a kernel API page, section 9, and the function name is honestly a whole mouthful: ksz_get_apptrust_map_and_reg. Yes the title up top is abbreviated because even the manpage generator was like "girl, that's too long." We move. π
β¨ NAME β¨
ksz_get_apptrust_map_and_reg β literally just retrieves the apptrust map and the register. That's it. That's the whole gig. π«Ά
πΈ SYNOPSIS πΈ
void ksz_get_apptrust_map_and_reg (struct ksz_device *dev , const struct
ksz_apptrust_map **map , int *reg , u8 *mask );
Note the void, bestie β nothing comes back as a return value, everything you want gets written through the pointers. Classic. π
π¦ ARGUMENTS π¦
devβ Pointer to the KSZ switch device structure. The main character, honestly β it's the switch we're talking about.mapβ Pointer to the apptrust map to be set. Yeah, "to be set," that's what the page says, don't @ me.regβ Pointer to the register address to be set. Same energy.maskβ Pointer to the mask to be set. The third member of the pointer trio. π
fr fr, all three ofmap,regandmaskare described as "to be set" β that's straight from the source, no cap, I'm not editorializing.
β DESCRIPTION β
So what does it actually do? It retrieves the apptrust map and the register address for the apptrust configuration. That's the tea. β It's giving "small helper, big responsibilities." π§
π SEE ALSO π
Kernel file ./drivers/net/dsa/microchip/ksz_dcb.c β go read it, iykyk. π
And the whole friend group:
ksz_get_dscp_prio_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)
π that's the whole page, periodt π
Cute lil sign-off: this one lives in ./drivers/net/dsa/microchip, dated October 2026 β so yeah, it's from the future apparently, we stan a forward-thinking manpage. π¦β¨π
π¦ 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