Page MenuHomeFreeBSD

sockets: enable protocol specific socket buffers
ClosedPublic

Authored by glebius on May 23 2022, 9:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 12, 2:27 AM
Unknown Object (File)
Mon, Nov 10, 7:59 PM
Unknown Object (File)
Tue, Nov 4, 10:53 PM
Unknown Object (File)
Tue, Nov 4, 8:35 AM
Unknown Object (File)
Oct 13 2025, 9:35 PM
Unknown Object (File)
Oct 7 2025, 12:26 PM
Unknown Object (File)
Sep 23 2025, 6:43 PM
Unknown Object (File)
Sep 20 2025, 2:18 PM
Subscribers

Details

Summary

Split struct sockbuf into common shared fields and protocol specific
union, where protocols are free to implement whatever buffer they
want. Such protocols should mark themselves with PR_SOCKBUF and are
expected to initialize their buffers in their pr_attach and tear
them down in pr_detach.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45745
Build 42633: arc lint + arc unit

Event Timeline

Note: this patch is a step towards D35303.

markj added inline comments.
sys/sys/sockbuf.h
106
This revision is now accepted and ready to land.May 24 2022, 3:17 PM
This revision now requires review to proceed.May 27 2022, 3:28 PM
This revision is now accepted and ready to land.May 30 2022, 1:45 PM