STRUCT DEV_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the struct dev_info(9) page β€” it's the network device information data structure, and it's literally the group-chat roster for this driver's struct πŸ’…βœ¨

πŸ’– NAME πŸ’–

struct dev_info β€” Network device information data structure 🫢

✨ SYNOPSIS ✨

The struct itself, exactly as it appears, no edits bestie:

struct dev_info {
    struct net_device *dev;
    struct pci_dev *pdev;
    struct ksz_hw hw;
    struct ksz_shared_mem desc_pool;
    spinlock_t hwlock;
    struct mutex lock;
    int (*dev_rcv)(struct dev_info *);
    struct sk_buff *last_skb;
    int skb_index;
    int skb_len;
    struct work_struct mib_read;
    struct ksz_timer_info mib_timer_info;
    struct ksz_counter_info counter[TOTAL_PORT_NUM];
    int mtu;
    int opened;
    struct tasklet_struct rx_tasklet;
    struct tasklet_struct tx_tasklet;
    int wol_enable;
    int wol_support;
    unsigned long pme_wait;
};

🫢 Members 🫢

Here's the member-by-member vibe check β€” every single one, no skips:

  • dev β€” pointer to the network device 🫢
  • pdev β€” pointer to the PCI device.
  • hw β€” the hardware structure.
  • desc_pool β€” physical memory used for the descriptor pool.
  • hwlock β€” spinlock to prevent hardware from accessing.
  • lock β€” mutex lock to prevent device from accessing.
  • dev_rcv β€” receive process function used.
  • last_skb β€” socket buffer allocated for descriptor rx fragments.
  • skb_index β€” buffer index for receiving fragments.
  • skb_len β€” buffer length for receiving fragments.
  • mib_read β€” workqueue to read MIB counters.
  • mib_timer_info β€” timer to read MIB counters.
  • counter β€” used for MIB reading.
  • mtu β€” current MTU used. The default is REGULAR_RX_BUF_SIZE; the maximum is MAX_RX_BUF_SIZE.
  • opened β€” counter to keep track of device open.
  • rx_tasklet β€” receive processing tasklet.
  • tx_tasklet β€” transmit processing tasklet.
  • wol_enable β€” Wake-on-LAN enable set by ethtool.
  • wol_support β€” Wake-on-LAN support used by ethtool.
  • pme_wait β€” used for KSZ8841 power management.

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file is ./drivers/net/ethernet/micrel/ksz884x.c, and here's the full reference squad in original order β€” every single one, fr fr:


This page came from ./drivers/net/ethernet/micrel and it's dated October 2026 β€” struct dev_info(9) signing off, love u bestie πŸ’–πŸŒΈ

πŸ“¦ where this page comes from