STRUCT A5PSW(9)
struct a5psw(9) π
okay so this little icon is straight out of the Kernel API Manual, and she's here to explain the struct a5psw situation. no cap, it's giving "switch struct" main character energy. π«Ά
πΈ NAME πΈ
struct a5psw β switch struct β¨
π¦ SYNOPSIS π¦
struct a5psw {
void __iomem *base;
struct clk *hclk;
struct clk *clk;
struct device *dev;
struct mii_bus *mii_bus;
struct phylink_pcs *pcs[A5PSW_PORTS_NUM - 1];
struct dsa_switch ds;
struct mutex lk_lock;
spinlock_t reg_lock;
u32 bridged_ports;
struct net_device *br_dev;
};
π Members π
baseβ bestie, this is the base address of the switch. iconic little home base. πhclkβ thehclk_switchclock. she's clocking in. β°clkβ theclk_switchclock. another clock, another slay. π°οΈdevβ the device associated to the switch. literally her plus-one. πmii_busβ the MDIO bus struct. bus girlie behavior. πpcsβ array of PCS connected to the switch ports β and not for the CPU, okay? noted. πdsβ the DSA switch struct. very demure, very DSA. πlk_lockβ lock for the lookup table. protect the table at all costs. πreg_lockβ lock for register read-modify-write operation. read, modify, write, repeat. π«bridged_portsβ mask of ports that are bridged and should be flooded. flood the ports, not the group chat. πbr_devβ bridge net device. bridge era. π
β SEE ALSO β
Kernel file ./drivers/net/dsa/rzn1_a5psw.h
and that's the whole vibe check, bestie. huge shoutout to ./drivers/net/dsa for the source/version energy, dated October 2026, and obviously to struct a5psw(9) herself. 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