__bond_opt_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __bond_opt_set(9) πŸ’…

okay bestie so this is from the Kernel API Manual, and it's literally the manual page for __bond_opt_set β€” yes, with the double underscore, she's fancy like that ✨


🌸 NAME 🌸

__bond_opt_set β€” set a bonding option. that's it, that's the whole vibe check πŸŽ€


✨ SYNOPSIS ✨

int __bond_opt_set (struct bonding *bond , unsigned int option , struct
bond_opt_value *val , struct nlattr *bad_attr , struct netlink_ext_ack
*extack );

like, five whole arguments, no cap. she's high-maintenance but she delivers πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bond β€” the target bond device, aka the main character you're doing all this for πŸ‘‘
  • option β€” the option you want to set. yes, this one. pick her 🎯
  • val β€” the value you're setting it to. the whole point of the operation, ngl πŸ’–
  • bad_attr β€” the netlink attribute that caused the error (blame her, respectfully πŸ™ˆ)
  • extack β€” the extended netlink error structure ✨ this one's used when an error message needs to be returned to the caller via netlink, iykyk

πŸ”₯ DESCRIPTION πŸ”₯

so the way that this function works: it's used to change the bond's option value πŸ’« and it can do both things β€” enabling/changing an option and disabling it. versatile queen behavior, honestly 🌈

⚠️ but bestie, listen: the RTNL lock must be obtained before calling this function πŸ”’ like, don't just roll up without it, fr fr. get your lock first, then come talk to her.

πŸ’œ SEE ALSO πŸ’œ

go read those too, they're giving the same energy 🫢


okay and for the cute little sign-off: this whole thing comes from the source at ./drivers/net/bonding, dated October 2026 ⭐ and she's filed under __bond_opt_set(9) β€” iconic, no notes πŸ’– πŸŽ€ 🧚

πŸ“¦ where this page comes from