Page MenuHomeFreeBSD

netlink: refactor control data generation for recvmsg(2)
ClosedPublic

Authored by glebius on Dec 10 2023, 4:56 AM.
Tags
None
Referenced Files
F102718579: D42989.diff
Sat, Nov 16, 7:39 AM
Unknown Object (File)
Sun, Nov 10, 3:55 AM
Unknown Object (File)
Sun, Nov 3, 1:46 AM
Unknown Object (File)
Fri, Oct 18, 9:23 AM
Unknown Object (File)
Thu, Oct 17, 8:56 AM
Unknown Object (File)
Oct 16 2024, 5:58 PM
Unknown Object (File)
Oct 14 2024, 5:16 AM
Unknown Object (File)
Oct 12 2024, 11:39 AM

Details

Summary

Netlink should return a very simple control data on every recvmsg(2)
syscall. This data is associated with a syscall, not with an nlmsg,
neither with internal our internal representation (nl_bufs). There is
no need to pre-allocate it in non-sleepable context and attach to
nl_buf. Allocate right in the syscall with M_WAITOK. This also
shaves lots of code and simplifies things.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54888
Build 51777: arc lint + arc unit