bond_get_slave_by_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bond_get_slave_by_id β€” from the Kernel API Manual, bestie ✨

okay so picture this: you're deep in the kernel, you're in the bonding driver, and you need a transmit slave by its id. that's the whole vibe of this page. it's bond_get_slave_by_id(9), and yes she's a real one 🫢


🌸 NAME 🌸

bond_get_slave_by_id β€” get xmit slave with slave_id πŸ’«


✨ SYNOPSIS ✨

struct slave * bond_get_slave_by_id (struct bonding *bond , int slave_id );

literally that's it. returns a struct slave *, takes a struct bonding * and an int. clean, iconic, no notes πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bond β€” the bonding device that's doing the transmitting, she's the main character here πŸ’–
  • slave_id β€” the slave id you want, and it goes up to slave_cnt-1, and that's the one you'll transmit through πŸ¦‹

πŸ’€ DESCRIPTION πŸ’€

okay so here's the tea β˜•: this function tries to get the slave with slave_id. but β€” and this is the important part β€” in case it fails, it does not just give up and cry about it 😭. nope. it tries to find the first available slave for transmission instead. fallback queen behavior, honestly 🌈


πŸ”₯ SEE ALSO πŸ”₯

so like, the whole friend group lives in the kernel file ./drivers/net/bonding/bond_main.c, and here's everyone in the group chat:

iykyk πŸ’…


ngl bestie, if you're reading this in the source tree, you're already doing amazing. go get that slave 🧚

and that's the page!! this one's from the ./drivers/net/bonding corner of the world 🌸, dated October 2026, and it's bond_get_slave_by_id(9) signing off β€” mwah, slay, periodt πŸ’œπŸŽ€

πŸ“¦ where this page comes from