ovpn_peers_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ovpn_peers_free(9) β€” the Kernel API Manual glow-up

okay so bestie, welcome to ovpn_peers_free(9), page one of the Kernel API Manual, and honestly? she's a cleanup queen. this is the function you call when you want every single peer in an instance gone. like, the whole group chat, removed. 🧹✨


🌸 NAME 🌸

ovpn_peers_free β€” free all peers in the instance

no cap, that's the whole job. she releases everybody. πŸ’€


✨ SYNOPSIS ✨

void ovpn_peers_free (struct ovpn_priv *ovpn , struct sock *sk , enum
ovpn_del_peer_reason reason );

returns void, takes three (3) whole arguments, and does not come to play. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ovpn β€” the instance whose peers should be released. this is the main character right here πŸ‘‘, the struct ovpn_priv we're clearing out.
  • sk β€” if not NULL, only peers using this socket are removed, and the socket is released immediately. so it's giving selective cleanup πŸ¦‹ β€” pass NULL and it's everybody, pass a socket and it's just that socket's little squad, and the socket gets released right away too.
  • reason β€” the reason for releasing all peers. it's an enum ovpn_del_peer_reason, so like, tell her why we're doing this. communication is key πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ovpn/peer.c β€” and literally the entire peer.c extended universe, go off:


lowkey a whole friend group of functions. read the whole set, iykyk πŸ’…

and that's the page, bestie! πŸŽ€ this lil number comes to you from ./drivers/net/ovpn, dated October 2026, and it's ovpn_peers_free(9) forever and always. slay, stay hydrated, free your peers responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from