dev_mc_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 your struct net_device *, the whole main character energy context of this operation πŸ‘‘
  • addr β€” the address to delete. it's a const 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:

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