emac_set_type2addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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, iykyk
  • mac_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:


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