HomeFreeBSD

netlink: refactor control data generation for recvmsg(2)

Description

netlink: refactor control data generation for recvmsg(2)

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.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D42989

Details

Provenance
glebiusAuthored on Jan 2 2024, 9:05 PM
Reviewer
melifaro
Differential Revision
D42989: netlink: refactor control data generation for recvmsg(2)
Parents
rG7e19c0186f00: netlink: improve nl_soreceive()
Branches
Unknown
Tags
Unknown