ovpn_socket_release(9)
π ovpn_socket_release(9) β like, the Kernel API Manual era π
okay bestie, so we're in the kernel docs rn and this one's from the Kernel API Manual, section 9. it's giving "cleanup function that eats and leaves no crumbs" β¨
πΈ NAME πΈ
ovpn_socket_release β releases all the resources that the socket user owns. yes, it's the "you had your turn, now give it back" function π«Ά
β¨ SYNOPSIS β¨
void ovpn_socket_release (struct ovpn_peer *peer );
π¦ ARGUMENTS π¦
peerβ the peer whose socket is getting released. that's the main character of this call, no cap π
π DESCRIPTION π
call this function when the peer is being removed and it wants to drop its link to the socket. it's the breakup text, but make it kernel-grade π
in the UDP case, the detach routine drops a reference to the ovpn netdev β the one pointed at by the ovpn_socket. lowkey just freeing the lease on the place it was living π
in the TCP case, releasing the socket drops the refcounter for the peer it's linked to, which means the peer gets to disappear too. bye bestie, you're free βοΈπ
β οΈ this function is expected to be invoked exactly once per peer. one (1) time. not twice, not zero times, not "ehh close enough". respect the count fr fr π
π NOTE π
this function may sleep π΄ β so don't go calling it somewhere that'll get mad about that, iykyk.
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ovpn/socket.c ovpn_socket_put(9)ovpn_socket_new(9)
and that's the whole page, bestie π§π β brought to you from ./drivers/net/ovpn, dated October 2026, footer and all. slay, periodt ππ
π¦ 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