ovpn_peers_free(9)
π 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 π, thestruct ovpn_privwe're clearing out.skβ if notNULL, only peers using this socket are removed, and the socket is released immediately. so it's giving selective cleanup π¦ β passNULLand 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 anenum 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:
ovpn_peer_keepalive_set(9)ovpn_peer_keepalive_send(9)ovpn_peer_new(9)ovpn_peer_reset_sockaddr(9)ovpn_peer_endpoints_update(9)ovpn_peer_release_rcu(9)ovpn_peer_release(9)ovpn_peer_release_kref(9)ovpn_peer_skb_to_sockaddr(9)ovpn_nexthop_from_skb4(9)ovpn_nexthop_from_skb6(9)ovpn_peer_get_by_vpn_addr4(9)ovpn_peer_get_by_vpn_addr6(9)ovpn_peer_vpn_addr_conflict4(9)ovpn_peer_vpn_addr_conflict6(9)ovpn_peer_transp_match(9)ovpn_peer_get_by_transp_addr_p2p(9)ovpn_peer_get_by_transp_addr(9)ovpn_peer_get_by_id_p2p(9)ovpn_peer_get_by_id(9)ovpn_peer_get_by_dst(9)ovpn_nexthop_from_rt4(9)ovpn_nexthop_from_rt6(9)ovpn_peer_check_by_src(9)ovpn_peer_add_mp(9)ovpn_peer_add_p2p(9)ovpn_peer_add(9)ovpn_peer_del_mp(9)ovpn_peer_del_p2p(9)ovpn_peer_del(9)ovpn_peer_release_p2p(9)ovpn_peer_keepalive_work(9)
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
- 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