ovpn_socket_put(9)
π ovpn_socket_put β Kernel API Manual, bestie edition β¨
okay so this is ovpn_socket_put(9), straight out of the kernel API manual, and it's lowkey one of those tiny functions that keeps everything from falling apart. it's giving "small but mighty" π
β¨ NAME β¨
ovpn_socket_put β decrease reference counter
like, that's the whole job. it decrements a refcount. no cap. π¦
πΈ SYNOPSIS πΈ
bool ovpn_socket_put (struct ovpn_peer *peer , struct ovpn_socket *sock
);
π«Ά ARGUMENTS π«Ά
peerβ the peer whose socket reference counter should be decreased π this is the main character, the one holding the refcount we're about to knock down a pegsockβ the RCU protected peer socket π yes, RCU protected, so mind your manners around it
π DESCRIPTION π
okay so real talk: this function is only used internally π it's not for you, it's for the kernel's own business. it's the backstage crew, not the opening act.
so if you're a user who's willing to release references to the ovpn_socket, do not just grab this one β you should use ovpn_socket_release instead. periodt. that's the public-facing bestie, this one is the internal one. iykyk π
π₯ RETURN π₯
trueβ if the socket was released π atefalseβ otherwise π
π SEE ALSO π
- Kernel file
./drivers/net/ovpn/socket.cβ the source, go read it, it's iconic β¨ ovpn_socket_release(9)β the one you actually want if you're a user π«Άovpn_socket_new(9)β where sockets come from π±
ngl bestie, if you take one thing from this page: internal function, don't touch, use ovpn_socket_release instead π
and that's the vibe check β
this page lives in ./drivers/net/ovpn, dated October 2026, and it's ovpn_socket_put(9) all day every day. slay, go decrement those refcounts 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