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)
Sun, Feb 8, 12:23 PM
Unknown Object (File)
Sun, Feb 8, 7:33 AM
Unknown Object (File)
Mon, Jan 26, 6:12 PM
Unknown Object (File)
Sun, Jan 25, 5:35 AM
Unknown Object (File)
Sat, Jan 24, 4:50 PM
Unknown Object (File)
Sat, Jan 17, 9:25 AM
Unknown Object (File)
Dec 24 2025, 4:30 AM
Unknown Object (File)
Nov 26 2025, 3:09 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