dev_mc_sync(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŒธ NAME

dev_mc_sync โ€” Synchronize device's multicast list to another device โœจ

hii bestie, welcome to dev_mc_sync(9), straight out of the Kernel API Manual ๐Ÿ’… this is the page for syncing one deviceโ€™s multicast list over to another device, and yes itโ€™s giving very โ€œsharing is caringโ€ energy ๐Ÿซถ


โœจ SYNOPSIS

int dev_mc_sync (struct net_device *to , struct net_device *from );

๐ŸŽ€ ARGUMENTS

  • to โ€” destination device ๐ŸŽฏ the one receiving the addresses
  • from โ€” source device ๐Ÿ›ซ the one theyโ€™re coming from

๐Ÿฆ‹ DESCRIPTION

okay so hereโ€™s the vibe: this function adds newly added addresses to the destination device and releases addresses that have no users left ๐Ÿ’– itโ€™s literally keeping the multicast list in sync, no cap.

bestie, the source device must be locked by netif_addr_lock_bh before you call this โ€” fr fr, donโ€™t skip the lock ๐Ÿ”’๐Ÿ˜ญ

This function is intended to be called from the ndo_set_rx_mode function of layered software devices ๐Ÿ‘‘ thatโ€™s its whole main character moment.


๐Ÿ”ฅ SEE ALSO

Kernel file: ./net/core/dev_addr_lists.c ๐ŸŒˆ


later bestie ๐Ÿซถ this pageโ€™s home base is ./net/core, its date stamp is October 2026, and the footer is still out here saying dev_mc_sync(9) โœจ๐Ÿ’œ

๐Ÿ“ฆ where this page comes from