Page MenuHomeFreeBSD

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

Authored by glebius on Jan 20 2025, 9:06 PM.
Tags
None
Referenced Files
F115912899: D48568.diff
Wed, Apr 30, 8:15 AM
Unknown Object (File)
Fri, Apr 18, 5:05 PM
Unknown Object (File)
Fri, Apr 11, 11:51 PM
Unknown Object (File)
Feb 17 2025, 9:11 PM
Unknown Object (File)
Feb 12 2025, 8:02 PM
Unknown Object (File)
Feb 9 2025, 7:02 AM
Unknown Object (File)
Feb 4 2025, 4:38 PM
Unknown Object (File)
Feb 3 2025, 12:21 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 61841
Build 58725: arc lint + arc unit