bond_choose_...y_or_current(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bond_choose_primary_or_current β€” Kernel API Manual ✨

okay bestie, the page header up top is the truncated icon bond_choose_...y_or_current(9), and the manual is the Kernel API Manual. Yes, the dots are part of the header’s whole vibe. This page is about bond_choose_primary_or_current, and its job is literally right there in the name: select the primary or high priority slave. periodt. πŸ’…


🌸 NAME 🌸

bond_choose_primary_or_current β€” select the primary or high priority slave. That’s the assignment, no cap. πŸŽ€

✨ SYNOPSIS ✨

struct slave * bond_choose_primary_or_current (struct bonding *bond );

πŸŽ€ ARGUMENTS πŸŽ€

  • bond β€” our bonding struct. That’s it, that’s the arg, and yes it is iconic for being so simple. 🫢

πŸ’… DESCRIPTION πŸ’…

okay so here’s the tea, in two little steps:

  • Check if there is a primary link. If the primary link was set and is up, go on and do link reselection.
  • If primary link is not set or down, find the highest priority link. If the highest priority link is not current slave, set it as primary link and do link reselection.

That’s the whole flow. It’s giving β€œprimary link check, then priority link check, then reselection when needed,” and the page does not add any extra side quests. 🌈

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/net/bonding/bond_main.c. The SEE ALSO besties are all here, no skips:


source/version: ./drivers/net/bonding Β· date: October 2026 Β· mwah, bye bestie πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from