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)
Wed, Jun 10, 5:51 AM
Unknown Object (File)
Thu, Jun 4, 1:47 PM
Unknown Object (File)
Thu, Jun 4, 9:08 AM
Unknown Object (File)
Wed, May 20, 10:37 AM
Unknown Object (File)
May 16 2026, 10:35 PM
Unknown Object (File)
May 16 2026, 10:49 AM
Unknown Object (File)
May 15 2026, 3:37 PM
Unknown Object (File)
May 15 2026, 2:07 PM
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