Page MenuHomeFreeBSD

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

Authored by glebius on Mon, Jan 20, 9:06 PM.
Tags
None
Referenced Files
F108200642: D48568.id.diff
Wed, Jan 22, 1:57 PM
Unknown Object (File)
Wed, Jan 22, 9:43 AM
Unknown Object (File)
Wed, Jan 22, 7:48 AM
Unknown Object (File)
Wed, Jan 22, 5:22 AM
Unknown Object (File)
Mon, Jan 20, 9:16 PM
Subscribers

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