DESCRIPTION

These functions find the nvpair that matches the
name and type as indicated by the interface name. If one is found, nelem and val are modified to contain the
number of elements in value and the starting address of data, respectively.

These interfaces work for nvlist_ts allocated with NV_UNIQUE_NAME or NV_UNIQUE_NAME_TYPE specified
in nvlist_alloc(). (See nvlist_alloc(9F).)
If this is not the case, the interface will return ENOTSUP
because the list potentially contains multiple nvpairs
with the same name and type.

All memory required for storing the array elements, including string
values, are managed by the library. References to such data remain valid until nvlist_free() is called on nvl.