ksz_get_appt..._map_and_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of map, reg and mask are 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:


πŸ’– 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