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, Nov 16, 10:10 AM
Unknown Object (File)
Sat, Nov 16, 9:38 AM
Unknown Object (File)
Sat, Nov 16, 7:39 AM
Unknown Object (File)
Sun, Nov 10, 3:55 AM
Unknown Object (File)
Sun, Nov 3, 1:46 AM
Unknown Object (File)
Oct 18 2024, 9:23 AM
Unknown Object (File)
Oct 17 2024, 8:56 AM
Unknown Object (File)
Oct 16 2024, 5:58 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