STRUCT RTL8365MB_PORT(9)
π 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 parentrealtek_privdata. parental supervision but make it struct πindexβ DSA port index, same asdsa_port::index. identity check: slayed βstatsβ link statistics populated byrtl8365mb_stats_poll, ready for atomic access viartl8365mb_get_stats64. numbers go brrr, but atomically πstats_lockβ protect thestatsstructure 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms