__bond_opt_set_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __bond_opt_set_notify(9) ✨

okay so this is a page from the Kernel API Manual and bestie, it's a good one β€” it's all about setting a bonding option and then telling everyone about it πŸ’…

🌸 NAME 🌸

__bond_opt_set_notify β€” set a bonding option, no cap πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int __bond_opt_set_notify (struct bonding *bond , unsigned int option ,
struct bond_opt_value *val );

πŸ’– ARGUMENTS πŸ’–

  • bond β€” the target bond device, like the main character of this whole operation πŸ‘‘
  • option β€” the option you're setting, i.e. which thing you're changing
  • val β€” the value you're setting it to, the actual vibe you're giving that option ✨

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea: this function is what you call to change the bond's option value and trigger a notification off to user space at the same time. Two birds, one slay. 🫢

It's flexible like that β€” you can use it for both enabling/changing an option and for disabling it. Turning things on, turning things off, whatever, it handles it.

⚠️ but fr fr, listen: RTNL lock must be obtained before calling this function. Not optional, bestie. Get that lock first or it's giving chaos. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/bonding/bond_options.c, plus the whole friend group:


and that's the page!! πŸŽ€ mwah πŸ’‹ this one lives in ./drivers/net/bonding, dated October 2026 β€” bye bestie, go get that RTNL lock first πŸ’œπŸ§š

πŸ“¦ where this page comes from