bond_opt_tryset_rtnl(9)
π bond_opt_tryset_rtnl(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a tiny little function from the bonding driver and it's honestly kind of iconic for how much it does with so few lines π
β¨ NAME β¨
bond_opt_tryset_rtnl β literally the "try to acquire rtnl and call __bond_opt_set" girlie π
πΈ SYNOPSIS πΈ
int bond_opt_tryset_rtnl (struct bonding *bond , unsigned int option ,
char *buf );
she returns an int, no cap π«Ά
π¦ ARGUMENTS π¦
bondβ the target bond device, aka the main character of this whole situation πoptionβ the option you wanna set, like, which knob are we turning bestiebufβ the value you're setting it to, the actual vibe you're assigning β¨
π DESCRIPTION π
so here's the tea β β this function tries to acquire RTNL without blocking, and if that works out? she calls __bond_opt_set. that's it, that's the whole personality.
she's mainly used for sysfs option manipulation, which is lowkey her whole gig. iykyk π
ngl the "without blocking" part is the moment β she does not sit around waiting for RTNL, she just tries and moves on. no obsessive energy, we love a healthy boundary π§
π₯ SEE ALSO π₯
all the siblings and neighbors, fr fr β over in the kernel file ./drivers/net/bonding/bond_options.c:
bond_opt_parse(9)__bond_opt_set(9)__bond_opt_set_notify(9)bond_opt_get(9)slave_set_ns_maddrs(9)slave_set_ns_maddr(9)
and that's a wrap! this lil page came to you straight out of ./drivers/net/bonding, dated October 2026 β periodt, go read the whole bonding directory, ily, bye πππ¦
π¦ 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