ovpn_peer_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ovpn_peer_add β€” the Kernel API Manual one πŸ¦‹

Okay so bestie, welcome to the ovpn_peer_add(9) page ✨ this is the kernel API manual's moment to shine, and honestly? It's giving "small function, big responsibility". Let's get into it πŸŽ€


✨ NAME ✨

ovpn_peer_add β€” add a peer to the related tables 🌸

✨ SYNOPSIS ✨

int ovpn_peer_add (struct ovpn_priv *ovpn , struct ovpn_peer *peer );

✨ ARGUMENTS ✨

  • ovpn β€” the openvpn instance that this peer belongs to πŸ’œ
  • peer β€” the peer object you're adding, the main character of this whole operation πŸ‘‘

✨ DESCRIPTION ✨

Not much to say here and that's kind of iconic of it, ngl 🫢 β€” assume the refcounter was increased by the caller. That's the whole vibe check: you (the caller) already bumped it up before coming here. Don't come in with a cold refcount, that's not the move πŸ™ˆ

✨ RETURN ✨

0 on success, or a negative error code otherwise 😭 β€” so yeah, always check the return value fr fr ⭐

No cap: negative means something went sideways. 0 means slay, it worked πŸ’…

✨ SEE ALSO ✨

Kernel file ./drivers/net/ovpn/peer.c, plus the whole friend group πŸ”₯:


And that's the page, bestie 🌈 sign-off time: this came out of ./drivers/net/ovpn, dated October 2026, and it's ovpn_peer_add(9) all the way down πŸ’– mwah, go bump that refcounter 🧚

πŸ“¦ where this page comes from