Page MenuHomeFreeBSD

netlink: refactor writer initialization KPI
ClosedPublic

Authored by glebius on Nov 13 2024, 9:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 6, 6:32 PM
Unknown Object (File)
Sep 16 2025, 8:20 AM
Unknown Object (File)
Sep 11 2025, 2:22 PM
Unknown Object (File)
Sep 11 2025, 2:17 AM
Unknown Object (File)
Sep 7 2025, 6:52 AM
Unknown Object (File)
Sep 5 2025, 4:39 AM
Unknown Object (File)
Sep 5 2025, 3:55 AM
Unknown Object (File)
Sep 2 2025, 2:37 AM
Subscribers

Details

Summary

o Allow callers to initialize a writer that will malloc(9) with M_WAITOK.
o Use size_t for expected malloc size.
o Use correct types to initialize a group writer.
o Rename functions into nl_writer_ namespace instead of nlmsg_, cause

they are working on nl_writer, not on nlmsg.

o Make the KPI responsible to sparsely initialize the writer structure.
o Garbage collect chain writer. Fixes 17083b94a915.

All current consumers are left as is, however some may benefit from
M_WAITOK allocation as well as supplying a correct expected size.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable