Page MenuHomeFreeBSD

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

Authored by glebius on Mon, Jan 20, 9:06 PM.

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable