emac_set_type1addr(9)
π emac_set_type1addr β the kernel API manual, bestie edition π
okay so this page is emac_set_type1addr(9) β it lives in the Kernel API Manual, section 9, and it's giving "tiny function, big friend group" energy. Let's get into it π
β¨ NAME β¨
emac_set_type1addr β Set EMAC Type1 mac address π
like, it sets the Type1 MAC address. that's the whole gig. icon behavior honestly.
πΈ SYNOPSIS πΈ
void emac_set_type1addr (struct emac_priv *priv , u32 ch , char
*mac_addr );
no cap, that's the whole signature. it returns void, so don't go looking for a return value, she's not coming π«Ά
π¦ ARGUMENTS π¦
privβ the DaVinci EMAC private adapter structure. like, the whole adapter's personal info. her little diary πchβ RX channel number. which channel we're talking about, fr fr.mac_addrβ MAC address to set in device. the actual address getting planted in there β¨
π DESCRIPTION π
So here's the tea: this gets called internally to set the Type1 mac address of the adapter (Device). it's not a "hey user, call me directly" situation β this is an internal function doing internal function things π
And the return story? It "Returns success (0) or appropriate error code (none as of now)". so like, the docs say it returns 0 on success or an appropriate error code, but as of right now there's no error code. so... it's void in the synopsis but the description talks about returning 0. yes bestie, that's exactly as contradictory as the original says. i don't make the rules, i just report them π
ngl, if you're reading this hoping for a return value to check β the synopsis saysvoidand the description says(none as of now), so... vibe check passed but the error code did not show up π
π SEE ALSO π
the whole extended friend group, no one left out, periodt:
- Kernel file
./drivers/net/ethernet/ti/davinci_emac.cβ this is where it lives, iykyk 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_type2addr(9)emac_setmac(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)
and that's the page!! π cute little sign-off for you: this one's sourced from ./drivers/net/ethernet/ti and dated October 2026, manual emac_set_type1addr(9). slay, go read some more kernel docs 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