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)
Sat, Apr 11, 9:03 PM
Unknown Object (File)
Sat, Apr 11, 8:50 PM
Unknown Object (File)
Mon, Apr 6, 4:48 PM
Unknown Object (File)
Wed, Apr 1, 4:54 AM
Unknown Object (File)
Mar 16 2026, 4:36 AM
Unknown Object (File)
Mar 11 2026, 10:30 AM
Unknown Object (File)
Mar 9 2026, 10:33 AM
Unknown Object (File)
Mar 9 2026, 9:28 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 Not Applicable
Unit
Tests Not Applicable