dev_mc_del(9)
π dev_mc_del(9) β the Kernel API Manual, bestie edition π
okay so before we even get into it β hi, you're reading a page from the Kernel API Manual, and today's main character is dev_mc_del. yes it's a real function name, no I didn't make it up, and yes it's lowkey iconic. let's get into it β¨
πΈ NAME πΈ
dev_mc_del β Delete a multicast address. that's it. that's the whole job. she deletes. she's a deleter. periodt π
π¦ SYNOPSIS π¦
here's the whole vibe in one line, no cap:
int dev_mc_del (struct net_device *dev , const unsigned char *addr );
she takes two things and hands you back an int. that's the whole shape of her π«Ά
π ARGUMENTS π
two little besties walk in, and they are:
devβ the device. that's yourstruct net_device *, the whole main character energy context of this operation πaddrβ the address to delete. it's aconst unsigned char *, and it's the thing that's getting yeeted π
β¨ DESCRIPTION β¨
so here's what actually happens, bestie, listen up:
dev_mc_del releases the reference to a multicast address, and removes it from the device if the reference count drops to zero.
like β that "drops to zero" part? that's the whole plot twist. it's a refcount situation, so she's not just blindly nuking the address the second you ask. she drops the reference first, and only when the count hits zero does the address actually get removed from the device. iykyk π§
π₯ SEE ALSO π₯
okay this is the group chat, the whole friend group, the entire Kernel file ./net/core/dev_addr_lists.c squad β every single one of them, no cap:
__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_global(9)dev_mc_sync(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)
like, that's the whole crew right there. literally all of them. go say hi π
ok that's the page!! mwah π«Ά
and a tiny cute sign-off to wrap it up β this one comes from ./net/core, dated October 2026, and yeah, it's still dev_mc_del(9) at the end because she's the star of the show. bye bestie, slay your refcounts π
π¦ 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