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
F163257308: D48568.id149618.diff
Tue, Jul 21, 12:10 PM
Unknown Object (File)
Mon, Jul 20, 12:14 PM
Unknown Object (File)
Fri, Jun 26, 11:42 AM
Unknown Object (File)
Mon, Jun 22, 11:18 PM
Unknown Object (File)
Mon, Jun 22, 11:09 PM
Unknown Object (File)
Mon, Jun 22, 10:01 AM
Unknown Object (File)
Jun 17 2026, 5:49 PM
Unknown Object (File)
Jun 16 2026, 1:20 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