nvlist_count - return number of nvpairs in the nvlist
cc [ flag... ] file... -lnvpair [ library... ] #include <libnvpair.h> int nvlist_count(nvlist_t *nvl, uint_t *npairs)
The nvlist_count() function returns number of nvpairs in the given nvlist in *npairs. It is valid for all types of list. If one of the nvpairs is of type DATA_TYPE_NVLIST or DATA_TYPE_NVLIST_ARRAY, it is considered as one node.
The nvlist_count() function returns 0 on success and an error value on failure.
The nvlist_count() function will fail with:
Invalid argument was provided.
See attributes(7) for descriptions of the following attributes:
|