nvlist_copy_embedded
if ((err = nvlist_copy_embedded(nvl, onvl, nnvl)) != 0) {
if ((err = nvlist_copy_embedded(nvl,