ovpn_socket_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 peg
  • sock β€” 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 πŸŽ‰ ate
  • false β€” 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