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
Unknown Object (File)
Fri, Aug 14, 6:02 PM
Unknown Object (File)
Tue, Aug 11, 6:07 PM
Unknown Object (File)
Sun, Aug 9, 9:39 PM
Unknown Object (File)
Sun, Aug 9, 12:34 AM
Unknown Object (File)
Sat, Aug 8, 6:52 PM
Unknown Object (File)
Sat, Aug 8, 5:21 PM
Unknown Object (File)
Sat, Aug 8, 11:49 AM
Unknown Object (File)
Fri, Aug 7, 1:26 AM
Subscribers

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