bond_ipsec_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bond_ipsec_dev β€” the Kernel API Manual moment ✨

okay so bestie, this is bond_ipsec_dev(9) from the kernel API manual and honestly it's giving "tiny function, big responsibilities" πŸŽ€ let me walk you through it.


🌸 NAME 🌸

bond_ipsec_dev β€” get the active device for IPsec offload, no cap πŸ’…

✨ SYNOPSIS ✨

struct net_device * bond_ipsec_dev (struct xfrm_state *xs );

like, it takes one pointer and hands you back a struct net_device *, periodt πŸ¦‹

🫢 ARGUMENTS 🫢

  • xs β€” pointer to the transformer state struct. that's the struct xfrm_state *, iykyk πŸ’œ

πŸ”₯ CONTEXT πŸ”₯

real talk: the caller must hold rcu_read_lock. not optional, not a vibe, it's the rule 😭

⭐ RETURN ⭐

it gives you the device for IPsec offload πŸŽ€ β€” or NULL if it doesn't exist. that's it, that's the whole return value πŸ’€

πŸ’œ SEE ALSO πŸ’œ

like, that's a whole friend group of bonding functions and they all live together in ./drivers/net/bonding πŸ§šπŸ’–


and that's the page, bestie β€” sourced from ./drivers/net/bonding, dated October 2026 πŸ—“οΈβœ¨ mwah, go hold that rcu_read_lock and slay πŸ‘‘πŸ’…

πŸ“¦ where this page comes from