emac_set_type2addr(9)
π NAME π
okay so bestie, welcome to emac_set_type2addr(9) β the Kernel API Manual page for setting the EMAC Type2 mac address. itβs giving βtiny internal network helper with main character energy,β and honestly? highkey iconic. the vibe check is: this one sets the Type2 MAC. periodt. π
β¨
β¨ SYNOPSIS β¨
the whole signature, copied exactly, no cap:
void emac_set_type2addr (struct emac_priv *priv , u32 ch , char
*mac_addr , int index , int match );
π ARGUMENTS π
privβ the DaVinci EMAC private adapter structure. thatβs the big context object, bestie π«Άchβ RX channel number. which receive channel weβre talking about, iykykmac_addrβ MAC address to set in device. the actual address being assigned β¨indexβ index into RX address entries. it picks the slot in the RX address table πmatchβ match parameter for RX address matching logic. the matching logic gets handed this parameter, fr fr
πΈ DESCRIPTION πΈ
okay so this function is called internally β internally is the key word, bestie β to set the Type2 mac address of the adapter (Device). itβs not out here begging to be called from anywhere; the page literally says called internally. no cap. π
Returns success (0) or appropriate error code (none as of now). so rn itβs returning success like the reliable icon it is, but the docs still leave room for an appropriate error code. slay. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/net/ethernet/ti/davinci_emac.c
the whole squad, no one left behind:
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_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)
cute sign-off time: this pageβs source/version line is ./drivers/net/ethernet/ti, and the date is October 2026. thatβs the whole footer, bestie β mwah ππβ¨
π¦ 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