Lines Matching refs:prop

37  * are allocated by the callers through scf_tmpl_[pg|prop]_create(), and
38 * destroyed with scf_tmpl_[pg|prop]_destroy(). They are populated by
57 * followed by pg and prop template discovery functions, followed
249 _scf_get_prop_name(scf_property_t *prop)
256 } else if (scf_property_get_name(prop, buf, sz) == -1) {
279 _scf_get_prop_type(scf_property_t *prop)
284 if (scf_property_type(prop, &type) == -1) {
330 scf_property_t *prop;
339 prop = scf_property_create(h);
342 if (prop == NULL || *val == NULL) {
347 if (scf_pg_get_property(pg, prop_name, prop) != 0) {
352 if (scf_property_get_value(prop, *val) == -1) {
366 scf_property_destroy(prop);
534 scf_property_t *prop;
564 prop = scf_property_create(h);
568 if (prop == NULL || val == NULL || iter == NULL) {
573 if (scf_pg_get_property(pg, prop_name, prop) != 0) {
578 if (scf_iter_property_values(iter, prop) != 0) {
658 scf_property_destroy(prop);
834 * Returns the name of the property template prop (which is the name of
844 _tmpl_prop_name(const char *prop, scf_pg_tmpl_t *t)
850 assert(prop != NULL);
874 pg_name + prefix_size, prop);
2591 scf_tmpl_get_by_prop(scf_pg_tmpl_t *t, const char *prop,
2608 tmpl_prop_name = _tmpl_prop_name(prop, t);
3493 /* prop doesn't exist we take the default value */
3863 _scf_tmpl_get_count_ranges(const scf_prop_tmpl_t *t, const char *prop,
3876 if ((ret = _read_astrings_values(t->prt_pg, prop, &vals)) == NULL)
3962 _scf_tmpl_get_int_ranges(const scf_prop_tmpl_t *t, const char *prop,
3975 if ((ret = _read_astrings_values(t->prt_pg, prop, &vals)) == NULL)
5319 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop)
5335 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5337 if ((actual = _scf_get_prop_type(prop)) == NULL)
5397 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5418 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5506 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5525 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5597 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5618 if ((prop_name = _scf_get_prop_name(prop)) == NULL)
5783 * error is appended to "errs". pg and prop, if supplied, are used to
5800 _value_in_constraint(scf_propertygroup_t *pg, scf_property_t *prop,
5831 if (pg == NULL && prop == NULL) {
5942 * pg and prop are provided, we know we're
5947 if (pg == NULL && prop == NULL)
5952 prop, v_count, 0, 0) == -1)
5956 if (pg == NULL && prop == NULL)
5960 if (_add_tmpl_int_error(errs, terr_type, pg, pt, prop,
5965 if (pg == NULL && prop == NULL)
5970 pt, prop, value) == -1)
6089 scf_property_t *prop, scf_tmpl_errors_t *errs)
6111 h = scf_property_handle(prop);
6128 if (scf_iter_property_values(iter, prop) != 0) {
6151 pg, pt, prop, (uint64_t)count, &min, &max) == -1)
6177 scf_property_t *prop, scf_tmpl_errors_t *errs)
6218 } else if (scf_property_is_type(prop, tmpl_type) != 0) {
6224 prop) == -1)
6242 if (_validate_cardinality(pg, pt, prop, errs) == -1)
6250 if (scf_iter_property_values(iter, prop) != 0) {
6257 if (_value_in_constraint(pg, prop, pt, val, errs) == -1) {
6310 scf_property_t *prop = NULL;
6332 if ((prop = scf_property_create(h)) == NULL) {
6377 while ((r = scf_iter_next_property(iter, prop)) == 1) {
6378 if (scf_property_get_name(prop, prop_name, nsize) == -1) {
6397 if (_check_property(pt, pg, prop, errs) != 0)
6431 if (scf_pg_get_property(pg, prop_name, prop) != 0) {
6477 scf_property_destroy(prop);
7153 scf_property_t *prop;
7162 prop = scf_property_create(h);
7165 if (iter == NULL || dec_iter == NULL || prop == NULL || dec == NULL)
7223 while (scf_iter_next_property(iter, prop) > 0) {
7224 if (!scf_property_in_conflict(prop))
7227 if (scf_property_get_name(prop, prop_name, namelen) < 0) {
7239 if (scf_iter_property_decorations(dec_iter, prop,
7271 scf_property_destroy(prop);