Page MenuHomeFreeBSD

netlink: refactor writer initialization KPI
AcceptedPublic

Authored by glebius on Wed, Nov 13, 9:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 4:37 AM
Unknown Object (File)
Fri, Nov 22, 2:39 AM
Unknown Object (File)
Tue, Nov 19, 4:28 AM
Unknown Object (File)
Sun, Nov 17, 9:29 PM
Unknown Object (File)
Sun, Nov 17, 2:34 PM
Unknown Object (File)
Sat, Nov 16, 9:23 AM
Unknown Object (File)
Sat, Nov 16, 4:14 AM
Unknown Object (File)
Sat, Nov 16, 2:59 AM
Subscribers

Details

Reviewers
melifaro
Group Reviewers
network
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60528
Build 57412: arc lint + arc unit