axienet_set_mac_address(9)
π axienet_set_mac_address(9) β from the Kernel API Manual, bestie
okay so imagine you're deep in the kernel docs (the Kernel API Manual, no less) and you land on this one. it's short, it's sweet, it's giving "one job, does it well." let's get into it π
β¨ NAME β¨
axienet_set_mac_address β writes the MAC address. that's it, that's the whole vibe. she writes the MAC address π
π¦ SYNOPSIS π¦
void axienet_set_mac_address (struct net_device *ndev , const void *address );
returns nothing (void), takes two things, slays. periodt.
πΈ ARGUMENTS πΈ
ndevβ a pointer to thenet_devicestructure. you know her, you love her.addressβ the 6 byte address that's getting written as the MAC address. six bytes, no more, no less, fr fr.
π DESCRIPTION π
so this function gets called to initialize the MAC address of the Axi Ethernet core. that's the whole main character moment β¨
how does she do it? she writes to the UAW0 and UAW1 registers of the core. those two registers, that's where the magic happens. iconic behaviour, no cap π₯
π SEE ALSO π
the friend group π every single one of these is in the group chat:
Kernel file ./drivers/net/ethernet/xilinx/xilinx_axienet_main.caxienet_dma_in32(9)axienet_dma_bd_release(9)axienet_calc_cr(9)axienet_coalesce_params(9)axienet_dma_start(9)axienet_dma_bd_init(9)netdev_set_mac_address(9)axienet_set_multicast_list(9)axienet_setoptions(9)axienet_dma_stop(9)axienet_device_reset(9)axienet_free_tx_chain(9)axienet_check_tx_bd_space(9)axienet_dma_tx_cb(9)axienet_start_xmit_dmaengine(9)axienet_tx_poll(9)axienet_start_xmit(9)axienet_dma_rx_cb(9)axienet_rx_poll(9)axienet_tx_irq(9)axienet_rx_irq(9)axienet_eth_irq(9)axienet_rx_submit_desc(9)axienet_init_dmaengine(9)axienet_init_legacy_dma(9)axienet_open(9)axienet_stop(9)axienet_change_mtu(9)axienet_poll_controller(9)axienet_ethtools_get_drvinfo(9)axienet_ethtools_get_regs_len(9)axienet_ethtools_get_regs(9)axienet_ethtools_get_pauseparam(9)axienet_ethtools_set_pauseparam(9)axienet_update_coalesce_rx(9)axienet_dim_coalesce_count_rx(9)axienet_rx_dim_work(9)axienet_update_coalesce_tx(9)axienet_ethtools_get_coalesce(9)axienet_ethtools_set_coalesce(9)axienet_dma_err_handler(9)axienet_probe(9)
lowkey the shortest manpage ever and honestly? she ate. go read the rest of them, iykyk π«Ά
and that's the page!! brought to you by ./drivers/net/ethernet/xilinx, dated October 2026, and yes the title is still axienet_set_mac_address(9) in case you forgot already π mwah, go initialize something ππβ
π¦ 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