nvs_ops
typedef struct nvs_ops nvs_ops_t;
const nvs_ops_t *nvs_ops;
if (nvs->nvs_ops->nvs_nvpair(nvs, &curr->nvi_nvp, NULL) != 0)
return (nvs->nvs_ops->nvs_nvl_fini(nvs));
while ((err = nvs->nvs_ops->nvs_nvpair(nvs, NULL, &nvsize)) == 0) {
if ((err = nvs->nvs_ops->nvs_nvp_op(nvs, nvp)) != 0) {
if (nvs->nvs_ops->nvs_nvp_size(nvs, &curr->nvi_nvp, &size) != 0)
if ((err = nvs->nvs_ops->nvs_nvlist(nvs, nvl, buflen)) != 0)
nvs->nvs_ops = &nvs_native_ops;
static const struct nvs_ops nvs_xdr_ops = {
nvs->nvs_ops = &nvs_xdr_ops;