STRUCT BOARD_INFO(9)
β¨ struct board_info(9) β¨
okay bestie, real talk β this is a page out of the Kernel API Manual and it's all about struct board_info, the lil' memory box that keeps all the saved data. think of it as the group chat's pinned messages: everything you need to scroll back to later, held in one place. π
πΈ NAME πΈ
struct board_info β literally just here to maintain the saved data. that's the whole job. icon behaviour, no notes. π«Ά
π SYNOPSIS π
struct board_info {
u32 msg_enable;
struct spi_device *spidev;
struct net_device *ndev;
struct mii_bus *mdiobus;
struct phy_device *phydev;
struct sk_buff_head txq;
struct regmap *regmap_dm;
struct regmap *regmap_dmbulk;
struct work_struct rxctrl_work;
struct work_struct tx_work;
struct ethtool_pauseparam pause;
struct mutex spi_lockm;
struct mutex reg_mutex;
struct rx_ctl_mach bc;
struct dm9051_rxhdr rxhdr;
struct dm9051_rxctrl rctl;
u8 imr_all;
u8 lcr_all;
};
like, look at her. absolutely stacked. every field is a whole personality. π
π Members π
okay so let's meet the cast, one by one, no skips, we don't do skips here:
msg_enableβ the message level value. she decides how chatty we're being. π£οΈspidevβ the spi device structure.ndevβ the net device structure.mdiobusβ the mii bus structure.phydevβ the phy device structure.txqβ the tx queue structure.regmap_dmβ regmap for register read/write. the main character of the register world, fr.regmap_dmbulkβ extra regmap for bulk read/write. yes she's the extra one, and we love her for it. β¨rxctrl_workβ Work queue for updating RX mode and multicast lists.tx_workβ Work queue for tx packets.pauseβ ethtool pause parameter structure.spi_lockmβ between threads lock structure. keeping the peace so nobody's stepping on anybody πreg_mutexβ regmap access lock structure.bcβ rx control statistics structure.rxhdrβ rx header structure.rctlβ rx control setting structure.imr_allβ to store operating imr value for registerDM9051_IMR.lcr_allβ to store operating rcr value for registerDM9051_LMCR.
π¦ Description π¦
The saved data variables, keep up to date for retrieval back to use.
that's it, that's the vibe. it holds the stuff, it keeps the stuff fresh, and it hands the stuff back when you need it. lowkey the most reliable friend in the whole driver. π
π₯ SEE ALSO π₯
go check out the Kernel file ./drivers/net/ethernet/davicom/dm9051.c plus these absolute legends:
struct rx_ctl_mach(9)struct dm9051_rxctrl(9)struct dm9051_rxhdr(9)
ngl, nothing on this page is dangerous β it's a plain data-holding struct, so no scary warnings, no undefined behaviour lurking in the shadows. just vibes and fields. π
and that's the whole page, bestie π β brought to you by ./drivers/net/ethernet/davicom, dated October 2026, and filed under struct board_info(9). bestie behaviour from the kernel, honestly. slay. β
π¦ 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