HomeFreeBSD

netlink: provide snl_clone() to create a secondary snl state

Description

netlink: provide snl_clone() to create a secondary snl state

The function will clone an existing snl_state(). The clone points at the
same socket, but has a separate allocator. Closing a clone frees the
memory, but doesn't close the socket. Such clones are handy in a
multithreaded process that has a single socket with multiple writers and a
serialized reader. It can be easily extended to support multiple readers,
too, but now there is no use.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D48568

Details

Provenance
glebiusAuthored on Mon, Jan 20, 9:15 PM
Reviewer
melifaro
Differential Revision
D48568: netlink: provide snl_clone() to create a secondary snl state
Parents
rGdae4eb623e86: libsecureboot add sha384 and sha512 for OpenPGP
Branches
Unknown
Tags
Unknown