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
F115779714: D42989.diff
Mon, Apr 28, 1:19 PM
Unknown Object (File)
Thu, Apr 24, 3:19 PM
Unknown Object (File)
Mar 19 2025, 11:09 PM
Unknown Object (File)
Mar 11 2025, 6:55 AM
Unknown Object (File)
Jan 27 2025, 4:58 PM
Unknown Object (File)
Jan 23 2025, 6:27 PM
Unknown Object (File)
Dec 28 2024, 6:49 AM
Unknown Object (File)
Dec 9 2024, 11:06 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