The libnvpair library exports a set of functions for managing name-value pairs.
The library defines two opaque handles:
-
nvpair_t
- handle to a name-value pair
-
nvlist_t
- handle to a list of name-value pairs
The library supports the following operations:
- Allocate and free an nvlist_t.
- Add and remove an nvpair_t from a list.
- Search nvlist_t for a specified name pair.
- Pack an nvlist_t into a contiguous buffer.
- Expand a packed nvlist into a searchable nvlist_t.
See libnvpair(3LIB) for a complete list of libnvpair functions.
|