Page MenuHomeFreeBSD

libsa: Make the nvlist implementation more self-contained
ClosedPublic

Authored by markj on May 19 2022, 4:23 PM.
Tags
None
Referenced Files
F141050874: D35255.id106165.diff
Wed, Dec 31, 5:40 AM
F141050868: D35255.id106165.diff
Wed, Dec 31, 5:39 AM
F141050860: D35255.id106165.diff
Wed, Dec 31, 5:39 AM
Unknown Object (File)
Thu, Dec 25, 7:59 AM
Unknown Object (File)
Sun, Dec 7, 11:00 PM
Unknown Object (File)
Fri, Dec 5, 11:53 PM
Unknown Object (File)
Mon, Dec 1, 4:37 PM
Unknown Object (File)
Nov 30 2025, 8:39 PM
Subscribers

Details

Summary

This makes the nvlist code easier to reuse elsewhere. In particular,
the implementation in sys/contrib/libnv does not provide XDR encoding,
but this is needed when reading from or writing to ZFS pools.

Also:

  • Remove references to boolean_t. It has to be a 32-bit int here, so just reference the underlying type.
  • Add includes needed when compiling the nvlist code outside of stand/.

No functional change intended.

Diff Detail

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