Lines Matching defs:nvl
42 static int reparse_create_nvlist(const char *string, nvlist_t *nvl);
43 static int reparse_add_nvpair(char *token, nvlist_t *nvl);
45 static int reparse_validate_create_nvlist(const char *string, nvlist_t *nvl);
62 nvlist_t *nvl;
68 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0))
71 return (nvl);
81 reparse_free(nvlist_t *nvl)
83 nvlist_free(nvl);
97 reparse_parse(const char *string, nvlist_t *nvl)
101 if (string == NULL || nvl == NULL)
107 if ((err = reparse_create_nvlist(string, nvl)) != 0)
189 reparse_validate_create_nvlist(const char *string, nvlist_t *nvl)
282 if (nvl != NULL &&
283 (err = reparse_add_nvpair(s_str, nvl)) != 0) {
304 reparse_add_nvpair(char *token, nvlist_t *nvl)
314 err = nvlist_add_string(nvl, token, cp + 1);
321 reparse_create_nvlist(const char *string, nvlist_t *nvl)
323 if (nvl == NULL)
326 return (reparse_validate_create_nvlist(string, nvl));