ksz_port_add_dscp_prio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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