sw_cfg_port_based(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sw_cfg_port_based(9) β€” from the Kernel API Manual, bestie

okay so picture this: you're deep in the kernel, specifically the 9 section of the manual (you know, the kernel API one), and you need to set a port's priority. That's literally this whole page. It's short, it's sweet, it's giving "one job and it does it." πŸŽ€


✨ NAME ✨

sw_cfg_port_based β€” configure switch port based priority πŸ¦‹

No cap, that's the entire elevator pitch.


🌸 SYNOPSIS 🌸

void sw_cfg_port_based (struct ksz_hw *hw , int port , u8 prio );

look at that signature. three args, returns nothing, zero drama. πŸ’…


🫢 ARGUMENTS 🫢

  • hw β€” the hardware instance. your switch, basically. the main character. πŸ‘‘
  • port β€” the port index. which port we're doing the thing to. πŸ”₯
  • prio β€” the priority to set. a u8, so keep it small and cute. ⭐

πŸ’– DESCRIPTION πŸ’–

This routine configures the port based priority of the switch. That's it. That's the whole description. It's not a long page, bestie β€” it walks in, sets the port based priority on the switch, and leaves. Iconic behavior honestly. ✨


🌈 SEE ALSO 🌈

okay so this section is a whole friend group. like, everyone showed up to the party. the kernel file lives at ./drivers/net/ethernet/micrel/ksz884x.c, and here's the entire squad, in order, iykyk:


bestie heads up: every single one of those is exactly as written on the original page. don't let anyone tell you the list was shorter. fr fr. πŸ’€

🧚 the cute sign-off 🧚

this whole thing came out of ./drivers/net/ethernet/micrel, and the page is dated October 2026 β€” that's the source and version and date, all accounted for, no gatekeeping. now go set that port based priority, you absolute queen. slay. periodt. πŸ‘‘πŸ’œπŸŒΈ

πŸ“¦ where this page comes from