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
F87272450: D42989.diff
Mon, Jul 1, 2:10 AM
Unknown Object (File)
Sat, Jun 29, 12:23 AM
Unknown Object (File)
Sun, Jun 23, 9:53 AM
Unknown Object (File)
Thu, Jun 6, 4:20 PM
Unknown Object (File)
May 11 2024, 6:30 PM
Unknown Object (File)
May 8 2024, 5:13 PM
Unknown Object (File)
May 8 2024, 5:12 PM
Unknown Object (File)
May 8 2024, 1:14 PM

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