dev_mc_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dev_mc_add(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the multicast address corner of the kernel, this one's a little cutie from the 9 section of the manual, so grab your strawberry drink and let's go πŸ“


✨ NAME ✨

dev_mc_add β€” add a multicast address, that's literally the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

int dev_mc_add (struct net_device *dev , const unsigned char *addr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device, like the actual network device you're doing this to πŸ‘‘
  • addr β€” the address you want to add, that's it, that's the girl πŸ’…

⭐ DESCRIPTION ⭐

so what it does: it adds a multicast address to the device β€” iconic β€” OR, and this is the lowkey important part, if that address is already there, it just increases the reference count instead πŸ”₯

no duplicating, no drama, just a lil refcount bump, periodt 🫢


🌈 SEE ALSO 🌈

kernel file ./net/core/dev_addr_lists.c, plus the whole friend group, and yes there are a LOT of them, no cap:


and that's the whole page bestie, stan ./net/core, dated October 2026, page name dev_mc_add(9) β€” mwah, go add some multicast addresses responsibly πŸ’œπŸ§š

πŸ“¦ where this page comes from