__bond_opt_set(9)
π __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 π
- Kernel file
./drivers/net/bonding/bond_options.c bond_opt_parse(9)__bond_opt_set_notify(9)bond_opt_tryset_rtnl(9)bond_opt_get(9)slave_set_ns_maddrs(9)slave_set_ns_maddr(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms