dev_mc_sync(9)
๐ธ 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 addressesfromโ 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 ๐
__hw_addr_sync_dev(9)__hw_addr_ref_sync_dev(9)__hw_addr_ref_unsync_dev(9)__hw_addr_unsync_dev(9)__hw_addr_list_snapshot(9)__hw_addr_list_reconcile(9)dev_addr_flush(9)dev_addr_init(9)dev_addr_add(9)dev_addr_del(9)dev_uc_add_excl(9)dev_uc_add(9)dev_uc_del(9)dev_uc_sync(9)dev_uc_sync_multiple(9)dev_uc_unsync(9)dev_uc_flush(9)dev_uc_init(9)dev_mc_add_excl(9)dev_mc_add(9)dev_mc_add_global(9)dev_mc_del(9)dev_mc_del_global(9)dev_mc_sync_multiple(9)dev_mc_unsync(9)dev_mc_flush(9)dev_mc_init(9)netif_uc_promisc_update(9)__dev_set_rx_mode(9)netif_rx_mode_sync(9)
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
- 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