bond_select_active_slave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bond_select_active_slave(9) β€” Kernel API Manual, bestie edition ✨

okay so picture this: you're deep in the kernel, you're in the bonding driver, and the whole squad of network slaves needs a little vibe check to figure out who's the main character right now. that's this function. it's from the Kernel API Manual, and it's giving "quietly holding the group chat together" energy πŸ‘‘


🌸 NAME 🌸

bond_select_active_slave β€” picks a new active slave, but only if one's actually needed. lowkey the most reasonable function in the file fr fr 🫢


✨ SYNOPSIS ✨

void bond_select_active_slave (struct bonding *bond );

it returns nothing (void), it takes exactly one thing, and that thing is a bonding struct. no cap. πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • bond β€” our bonding struct πŸ’– like, ours. the one you're working with. your buddy. your ride or die.

πŸ¦‹ DESCRIPTION πŸ¦‹

soooo this function is the one you call when the active-slave situation needs a refresh. specifically, you should call it when one of these three things goes down:

  • The old curr_active_slave has been released or lost its link 😭 like she's gone, or at least she's not connecting anymore.
  • The primary_slave has got its link back πŸŽ‰ welcome back babe, we missed you.
  • A slave has got its link back and there's no old curr_active_slave β€” so somebody's gotta step up and be the icon πŸ‘‘
🚨 important caveat, do not skip this one: the caller must hold RTNL. that's not a suggestion, that's the rule. hold it before you call. no exceptions πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

all the siblings and neighbors, in the order the manpage gives them β€” this is the whole friend group, no one gets left out 🫢

Also worth knowing: the Kernel file ./drivers/net/bonding/bond_main.c is where this whole situation lives.


that's the whole page bestie, go hold RTNL and slay πŸ’…βœ¨

this masterpiece came from ./drivers/net/bonding, dated October 2026 β€” and yes, she's still bond_select_active_slave(9) in the header, iconic behavior πŸŽ€

πŸ“¦ where this page comes from