Lines Matching refs:prop

38  * are allocated by the callers through scf_tmpl_[pg|prop]_create(), and
39 * destroyed with scf_tmpl_[pg|prop]_destroy(). They are populated by
58 * followed by pg and prop template discovery functions, followed
250 _scf_get_prop_name(scf_property_t *prop)
257 } else if (scf_property_get_name(prop, buf, sz) == -1) {
280 _scf_get_prop_type(scf_property_t *prop)
285 if (scf_property_type(prop, &type) == -1) {
331 scf_property_t *prop;
340 prop = scf_property_create(h);
343 if (prop == NULL || *val == NULL) {
348 if (scf_pg_get_property(pg, prop_name, prop) != 0) {
353 if (scf_property_get_value(prop, *val) == -1) {
367 scf_property_destroy(prop);
535 scf_property_t *prop;
565 prop = scf_property_create(h);
569 if (prop == NULL || val == NULL || iter == NULL) {
574 if (scf_pg_get_property(pg, prop_name, prop) != 0) {
579 if (scf_iter_property_values(iter, prop) != 0) {
659 scf_property_destroy(prop);
836 * Returns the name of the property template prop (which is the name of
846 _tmpl_prop_name(const char *prop, scf_pg_tmpl_t *t)
852 assert(prop != NULL);
876 pg_name + prefix_size, prop);
2594 scf_tmpl_get_by_prop(scf_pg_tmpl_t *t, const char *prop,
2611 tmpl_prop_name = _tmpl_prop_name(prop, t);
3398 /* prop doesn't exist we take the default value */
3768 _scf_tmpl_get_count_ranges(const scf_prop_tmpl_t *t, const char *prop,
3781 if ((ret = _read_astrings_values(t->prt_pg, prop, &vals)) == NULL)
3867 _scf_tmpl_get_int_ranges(const scf_prop_tmpl_t *t, const char *prop,
3880 if ((ret = _read_astrings_values(t->prt_pg, prop, &vals)) == NULL)
5208 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop)
5224 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5226 if ((actual = _scf_get_prop_type(prop)) == NULL)
5286 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5307 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5395 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5414 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5486 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5507 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5672 * error is appended to "errs". pg and prop, if supplied, are used to
5689 _value_in_constraint(scf_propertygroup_t *pg, scf_property_t *prop,
5720 if (pg == NULL && prop == NULL) {
5831 * pg and prop are provided, we know we're
5836 if (pg == NULL && prop == NULL)
5841 prop, v_count, 0, 0) == -1)
5845 if (pg == NULL && prop == NULL)
5849 if (_add_tmpl_int_error(errs, terr_type, pg, pt, prop,
5854 if (pg == NULL && prop == NULL)
5859 pt, prop, value) == -1)
5978 scf_property_t *prop, scf_tmpl_errors_t *errs)
6000 h = scf_property_handle(prop);
6017 if (scf_iter_property_values(iter, prop) != 0) {
6040 pg, pt, prop, (uint64_t)count, &min, &max) == -1)
6066 scf_property_t *prop, scf_tmpl_errors_t *errs)
6107 } else if (scf_property_is_type(prop, tmpl_type) != 0) {
6113 prop) == -1)
6131 if (_validate_cardinality(pg, pt, prop, errs) == -1)
6139 if (scf_iter_property_values(iter, prop) != 0) {
6146 if (_value_in_constraint(pg, prop, pt, val, errs) == -1) {
6199 scf_property_t *prop = NULL;
6221 if ((prop = scf_property_create(h)) == NULL) {
6266 while ((r = scf_iter_next_property(iter, prop)) == 1) {
6267 if (scf_property_get_name(prop, prop_name, nsize) == -1) {
6286 if (_check_property(pt, pg, prop, errs) != 0)
6320 if (scf_pg_get_property(pg, prop_name, prop) != 0) {
6366 scf_property_destroy(prop);