STRUCT A5PSW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the hclk_switch clock. she's clocking in. ⏰
  • clk β€” the clk_switch clock. 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