xemaclite_set_mac_address(9)
π NAME π
ok so bestie, this is xemaclite_set_mac_address β it literally sets the MAC address for this device. that's the whole vibe. β¨
π SYNOPSIS π
int xemaclite_set_mac_address (struct net_device *dev , void *address );
πΈ ARGUMENTS πΈ
devβ a pointer to the network device instance, aka the device we're doing all this for π«Άaddressβ a void pointer to thesockaddrstructure, where the address cooooomes from
π¦ DESCRIPTION π¦
okay so here's what happens, no cap: this function copies the HW address from the sockaddr structure over to the net_device structure, and then it updates the address in HW too. so like, both places. both. slay. π
β¨
π₯ RETURN π₯
it returns an error if the net device is busy π, or 0 if the addr is set successfully π β that's it, that's the whole deal.
β SEE ALSO β
- Kernel file
./drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_local(9)xemaclite_enable_interrupts(9)xemaclite_disable_interrupts(9)xemaclite_aligned_write(9)xemaclite_aligned_read(9)xemaclite_send_data(9)xemaclite_recv_data(9)xemaclite_update_address(9)xemaclite_tx_timeout(9)xemaclite_tx_handler(9)xemaclite_rx_handler(9)xemaclite_interrupt(9)xemaclite_mdio_wait(9)xemaclite_mdio_read(9)xemaclite_mdio_write(9)xemaclite_mdio_setup(9)xemaclite_adjust_link(9)xemaclite_open(9)xemaclite_close(9)xemaclite_send(9)get_bool(9)xemaclite_ethtools_get_drvinfo(9)xemaclite_of_probe(9)xemaclite_of_remove(9)
and that's a wrap, bestie π§π this page lives in ./drivers/net/ethernet/xilinx, it's dated October 2026, and it's brought to you by xemaclite_set_mac_address(9) β iconic behavior, fr fr. go read some kernel source, ily, bye π
π¦ 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