emac_setmac(9)
π emac_setmac(9) β Kernel API Manual energy π
okay so bestie, this is the emac_setmac(9) page from the Kernel API Manual, and we're about to talk about setting a MAC address in the adapter. It's an internal function, so it's giving backstage-pass vibes only. π«Ά
β¨ NAME β¨
emac_setmac β Set mac address in the adapter (internal function) π
π SYNOPSIS π
void emac_setmac (struct emac_priv *priv , u32 ch , char *mac_addr );
π ARGUMENTS π
privβ the DaVinci EMAC private adapter structure. That's the main-character struct, obvs. πchβ RX channel number. Yep, exactly that. π¦mac_addrβ MAC address to set in device. Slay. π
π§ DESCRIPTION π§
Called internally to set the mac address of the adapter (Device). No cap. β¨
Returns success (0) or appropriate error code (none as of now). So success is literally 0, and the error-code situation is, as of now, a future plotline. π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/ti/davinci_emac.c is where the lore lives. Also, go say hi to all these besties:
emac_get_drvinfo(9)emac_get_coalesce(9)emac_set_coalesce(9)emac_update_phystatus(9)hash_get(9)emac_hash_add(9)emac_hash_del(9)emac_add_mcast(9)emac_dev_mcast_set(9)emac_int_disable(9)emac_int_enable(9)emac_irq(9)emac_dev_xmit(9)emac_dev_tx_timeout(9)emac_set_type0addr(9)emac_set_type1addr(9)emac_set_type2addr(9)emac_dev_setmac_addr(9)emac_hw_enable(9)emac_poll(9)emac_poll_controller(9)emac_devioctl(9)emac_dev_open(9)emac_dev_stop(9)emac_dev_getnetstats(9)davinci_emac_probe(9)davinci_emac_remove(9)davinci_emac_init(9)davinci_emac_exit(9)
okay that's the whole page bestie! Final cute sign-off: this one lives under the emac_setmac(9) name in the Kernel API Manual, the source/version line energy is ./drivers/net/ethernet/ti, and it's dated October 2026. Periodt. πβ¨
π¦ 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