Lines Matching +refs:val +refs:result
90 pm_smf_listprop(nvlist_t **result, const char *instance)
126 * from the result set.
134 /* Add the value, if any, to the result list */
135 err = pm_result_add(result, PM_AUTHORITY_SMF,
191 char *val;
217 val = strdup(nvpair_name(nvp));
218 propname = pm_parse_propname(val, &pgname);
245 free(val);
249 free(val);
252 if (nvpair_value_string(nvp, &val) != 0) {
266 err = pm_smf_validate(prop, val, &(propvec[0].pv_ptr));
312 void *result;
326 result = NULL;
342 result = (void *)bap;
352 int64_t *val =
354 uap[i] = *val;
356 result = (void *)uap;
370 result = (void *)sap;
381 return (result);
386 pm_smf_add_pgname(nvlist_t *result, const char *instance)
415 /* Find the property in the result list */
417 if (nvlist_lookup_nvlist(result, propname, &nvl) == 0 &&
420 * The property exists in the result list. Check
441 "%s could not find property %s in result set\n",
456 pm_smf_validate(scf_simple_prop_t *prop, const char *val, void **result)
476 err = (ep->v_func)(prop, val, result);
483 pm_smf_validate_authority(scf_simple_prop_t *prop, const char *val,
484 void **result)
497 authority = pm_authority_get(val);
503 *result = (void *)strdup(val);
510 pm_smf_validate_boolean(scf_simple_prop_t *prop, const char *val,
511 void **result)
527 err = pm_parse_boolean(val, &b);
531 __FUNCTION__, val, scf_simple_prop_name(prop));
542 *result = r;
549 pm_smf_validate_integer(scf_simple_prop_t *prop, const char *val,
550 void **result)
569 err = pm_parse_integer(val, &i);
573 __FUNCTION__, val, scf_simple_prop_name(prop));
584 *result = r;