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, Dec 28, 6:49 AM
Unknown Object (File)
Dec 9 2024, 11:06 PM
Unknown Object (File)
Dec 8 2024, 11:03 PM
Unknown Object (File)
Nov 25 2024, 8:42 AM
Unknown Object (File)
Nov 24 2024, 12:22 AM
Unknown Object (File)
Nov 23 2024, 10:23 PM
Unknown Object (File)
Nov 16 2024, 10:10 AM
Unknown Object (File)
Nov 16 2024, 9:38 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