ovpn_nl_key_swap_notify(9)
π NAME π
okay so bestie, this is ovpn_nl_key_swap_notify(9) from the Kernel API Manual β say hi π β and it's literally the function that notifies userspace that a peer's key must be renewed. that's the whole vibe. it's giving "hey bestie, time for a new key" π
β¨ SYNOPSIS β¨
int ovpn_nl_key_swap_notify (struct ovpn_peer *peer , u8 key_id );
no cap, that's the whole signature. int going in, int coming out, two args in the middle. slay π
π«Ά ARGUMENTS π«Ά
peerβ the peer whose key needs to be renewed π§ like, the actual main character here. this is the one whose key is getting the glow-up.key_idβ the ID of the key that needs to be renewed πβ¨ it's au8, so keep it cute and keep it small.
π RETURN π
0on success π (we love a zero, zero is the happy number)- a negative error code otherwise π (not slaying, but that's how it is)
π¦ SEE ALSO π¦
bestie you have to check these out, they're all in the kernel file ./drivers/net/ovpn/netlink.c and they're iconic π:
ovpn_get_dev_from_attrs(9)ovpn_nl_peer_modify(9)ovpn_nl_key_new_doit(9)ovpn_nl_peer_del_notify(9)ovpn_nl_peer_float_notify(9)ovpn_nl_register(9)ovpn_nl_unregister(9)
iykyk π
ngl, this page does not list any extra options, env vars, files or exit statuses beyond what's up above β so don't come for me asking for more, this is the whole tea π
and that's the post! πΈ this page lives in ./drivers/net/ovpn, dated October 2026 β mwah, periodt, sending you all the key-renewal energy πβ¨π
π¦ 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