ks8851_write_mac_addr(9)
πΈ NAME πΈ
ks8851_write_mac_addr β write mac address to device registers
okay so this is the ks8851_write_mac_addr(9) page from the Kernel API Manual, and it is lowkey giving βtiny but important kernel helperβ energy π
β¨
β¨ SYNOPSIS β¨
int ks8851_write_mac_addr (struct net_device *dev );
π ARGUMENTS π
devβ the network device. thatβs the whole argument, bestie, and sheβs iconic for it π«Ά
π DESCRIPTION π
It updates the KS8851 MAC address registers from the address in dev. literally just βtake the address sitting in dev and write it where it needs to goβ β¨
Heads up though: this call assumes the chip is not running, so there is no need to shutdown the RXQ process whilst setting this. like, thatβs the vibe it expects β chip not running, RXQ process not needing a shutdown, no drama ππ
π¦ SEE ALSO π¦
okay the whole friend group is here, no cap:
- Kernel file:
./drivers/net/ethernet/micrel/ks8851_common.cβ thatβs where it lives π§ ks8851_lock(9)ks8851_unlock(9)ks8851_wrreg16(9)ks8851_rdreg16(9)ks8851_soft_reset(9)ks8851_set_powermode(9)ks8851_read_mac_addr(9)ks8851_init_mac(9)ks8851_rx_pkts(9)ks8851_irq(9)ks8851_flush_tx_work(9)ks8851_net_open(9)ks8851_net_stop(9)ks8851_start_xmit(9)ks8851_rxctrl_work(9)ks8851_eeprom_claim(9)ks8851_eeprom_release(9)ks8851_phy_reg(9)ks8851_phy_read(9)ks8851_read_selftest(9)
mwah π this lilβ page comes from ./drivers/net/ethernet/micrel and is dated October 2026 β catch u later, bestie π«Άπ
π¦ 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