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
F132066095: D42989.id.diff
Mon, Oct 13, 8:54 AM
F132066093: D42989.id132153.diff
Mon, Oct 13, 8:54 AM
F132066092: D42989.id131229.diff
Mon, Oct 13, 8:54 AM
Unknown Object (File)
Sun, Oct 12, 8:28 PM
Unknown Object (File)
Thu, Oct 9, 6:50 AM
Unknown Object (File)
Mon, Oct 6, 7:23 AM
Unknown Object (File)
Fri, Oct 3, 3:05 PM
Unknown Object (File)
Thu, Oct 2, 12:48 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 Not Applicable
Unit
Tests Not Applicable