sw_get_broad_storm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sw_get_broad_storm β€” get broadcast storm threshold πŸ’…

Hiii bestie πŸ’– welcome to the Kernel API Manual, section 9 β€” yes we're in the kernel-functions part of the man pages, grab a snack. Today's main character is sw_get_broad_storm(9), and honestly? She's a tiny little getter with zero drama and I love that for her. πŸŽ€


✨ NAME ✨

sw_get_broad_storm β€” literally just gets the broadcast storm threshold πŸ¦‹

No cap, that's the whole job. One function, one purpose, one vibe. 🌸


✨ SYNOPSIS ✨

void sw_get_broad_storm (struct ksz_hw *hw , u8 *percent );

Notice the void up front? She returns nothing β€” the answer gets written into percent instead. Very "I don't answer questions, I hand you the data" energy. πŸ‘‘


✨ ARGUMENTS ✨

  • hw β€” the hardware instance πŸ’œ this is the switch you're asking about, so like, be normal about it.
  • percent β€” buffer to store the broadcast storm threshold percentage πŸ“ iykyk, it's a u8 * so it's a pointer to where the percentage goes to live.

✨ DESCRIPTION ✨

okay so basically: this routine retrieves the broadcast storm threshold of the switch. 🫢

That's it. That's the description. She reads the threshold out of the switch and drops it in your buffer, and then she's done. Short king behavior, and we respect it. πŸ”₯


✨ SEE ALSO ✨

Genuinely obsessed with how long this list is β€” she's got more mutuals than anyone on the timeline πŸ˜­πŸ’€. The kernel file is ./drivers/net/ethernet/micrel/ksz884x.c, and the whole extended friend group is:

like… go off, honestly πŸŒˆπŸ‘‘


lowkey a reminder that this page lives under the Kernel API Manual, so you're reading driver-internals lore, not user-facing command stuff. sw_get_broad_storm(9) just reads a value β€” she's a getter, not a setter, so no surprises here πŸ’…

okay that's the whole page, bestie πŸ’– she's tiny, she's useful, she's from the source ./drivers/net/ethernet/micrel and this version is dated October 2026 β€” so mark your calendars, she said see you then βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from