Lines Matching refs: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; in reparse_init() local
68 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0)) in reparse_init()
71 return (nvl); in reparse_init()
81 reparse_free(nvlist_t *nvl) in reparse_free() argument
83 if (nvl) in reparse_free()
84 nvlist_free(nvl); in reparse_free()
98 reparse_parse(const char *string, nvlist_t *nvl) in reparse_parse() argument
102 if (string == NULL || nvl == NULL) in reparse_parse()
108 if ((err = reparse_create_nvlist(string, nvl)) != 0) in reparse_parse()
190 reparse_validate_create_nvlist(const char *string, nvlist_t *nvl) in reparse_validate_create_nvlist() argument
283 if (nvl != NULL && in reparse_validate_create_nvlist()
284 (err = reparse_add_nvpair(s_str, nvl)) != 0) { in reparse_validate_create_nvlist()
305 reparse_add_nvpair(char *token, nvlist_t *nvl) in reparse_add_nvpair() argument
315 err = nvlist_add_string(nvl, token, cp + 1); in reparse_add_nvpair()
322 reparse_create_nvlist(const char *string, nvlist_t *nvl) in reparse_create_nvlist() argument
324 if (nvl == NULL) in reparse_create_nvlist()
327 return (reparse_validate_create_nvlist(string, nvl)); in reparse_create_nvlist()