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)
Mon, Mar 16, 4:36 AM
Unknown Object (File)
Wed, Mar 11, 10:30 AM
Unknown Object (File)
Mon, Mar 9, 10:33 AM
Unknown Object (File)
Mon, Mar 9, 9:28 AM
Unknown Object (File)
Mon, Mar 9, 9:11 AM
Unknown Object (File)
Feb 23 2026, 9:01 PM
Unknown Object (File)
Feb 8 2026, 12:23 PM
Unknown Object (File)
Feb 8 2026, 7:33 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