STRUCT RTL8365MB_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is the struct rtl8365mb_port(9) page from the Kernel API Manual β€” we're talking about struct rtl8365mb_port, aka the private per-port data struct. it's giving "small but crucial" and I'm obsessed ✨.

✨ SYNOPSIS ✨

here's the struct in all its main-character glory, fr fr:

       struct rtl8365mb_port {
           struct realtek_priv *priv;
           unsigned int index;
           struct rtnl_link_stats64 stats;
           spinlock_t stats_lock;
           struct delayed_work mib_work;
        };

πŸŽ€ Members πŸŽ€

  • priv β€” pointer to parent realtek_priv data. parental supervision but make it struct πŸ’…
  • index β€” DSA port index, same as dsa_port::index. identity check: slayed βœ…
  • stats β€” link statistics populated by rtl8365mb_stats_poll, ready for atomic access via rtl8365mb_get_stats64. numbers go brrr, but atomically πŸ“Š
  • stats_lock β€” protect the stats structure during read/update. no racing, bestie πŸ”’
  • mib_work β€” delayed work for polling MIB counters. the little polling gremlin 🧚

🌈 SEE ALSO 🌈

also go look at these, iykyk:

  • Kernel file ./drivers/net/dsa/realtek/rtl8365mb_main.c
  • enum rtl8365mb_vlan_egress_mode(9)
  • struct rtl8365mb_extint(9)
  • struct rtl8365mb_chip_info(9)
  • struct rtl8365mb_cpu(9)
  • struct rtl8365mb(9)

byeee πŸ’– β€” source/version: ./drivers/net/dsa/realtek Β· date: October 2026 ✨ periodt.

πŸ“¦ where this page comes from