bond_change_active_slave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bond_change_active_slave(9) ✨

Okay bestie, welcome to the Kernel API Manual β€” today’s main character is bond_change_active_slave(9), and she is literally here to swap in a new active slave. πŸ«ΆπŸ’…

🌸 NAME 🌸

bond_change_active_slave β€” change the active slave into the specified one. Periodt. πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

void bond_change_active_slave (struct bonding *bond , struct slave
       *new_active );

πŸŽ€ ARGUMENTS πŸŽ€

  • bond β€” our bonding struct. The whole vibe container, ngl. ✨
  • new_active β€” the new slave to make the active one. She’s getting the crown. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So here’s the tea: set the new slave to the bond’s settings, and unset them on the old curr_active_slave. Setting include flags, mc-list, promiscuity, allmulti, etc. β€” she’s doing the whole settings glow-up. 🧹✨

And if new’s link state is BOND_LINK_BACK, we’ll set it to BOND_LINK_UP, because it is apparently the best available slave we have β€” even though its updelay hasn’t timed out yet. No cap, she’s getting promoted anyway. πŸ’…πŸ”₯

⚠️ Caller must hold RTNL. This is not a drill, bestie β€” hold RTNL. πŸ˜­πŸ”’

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/bonding/bond_main.c, plus these absolute legends:


Mwah πŸ’‹ β€” this page’s source/version home is ./drivers/net/bonding, and it’s dated October 2026. Stay bonded, bestie. πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from