Lines Matching defs:attrtab

1796 	struct zone_attrtab attrtab;
2023 while (zonecfg_getattrent(handle, &attrtab) == Z_OK) {
2026 export_prop(of, PT_NAME, attrtab.zone_attr_name);
2027 export_prop(of, PT_TYPE, attrtab.zone_attr_type);
2028 export_prop(of, PT_VALUE, attrtab.zone_attr_value);
2819 fill_in_attrtab(cmd_t *cmd, struct zone_attrtab *attrtab,
2828 bzero(attrtab, sizeof (*attrtab));
2838 (void) strlcpy(attrtab->zone_attr_name, pp->pv_simple,
2839 sizeof (attrtab->zone_attr_name));
2842 (void) strlcpy(attrtab->zone_attr_type, pp->pv_simple,
2843 sizeof (attrtab->zone_attr_type));
2846 (void) strlcpy(attrtab->zone_attr_value, pp->pv_simple,
2847 sizeof (attrtab->zone_attr_value));
2857 err = zonecfg_lookup_attr(handle, attrtab);
3116 struct zone_attrtab attrtab;
3118 if ((err = fill_in_attrtab(cmd, &attrtab, B_FALSE)) != Z_OK) {
3122 if ((err = zonecfg_delete_attr(handle, &attrtab)) != Z_OK)
5164 output_attr(FILE *fp, struct zone_attrtab *attrtab)
5167 output_prop(fp, PT_NAME, attrtab->zone_attr_name, B_TRUE);
5168 output_prop(fp, PT_TYPE, attrtab->zone_attr_type, B_TRUE);
5169 output_prop(fp, PT_VALUE, attrtab->zone_attr_value, B_TRUE);
5794 struct zone_attrtab attrtab;
6039 while (zonecfg_getattrent(handle, &attrtab) == Z_OK) {
6040 check_reqd_prop(attrtab.zone_attr_name, RT_ATTR, PT_NAME,
6042 check_reqd_prop(attrtab.zone_attr_type, RT_ATTR, PT_TYPE,
6044 check_reqd_prop(attrtab.zone_attr_value, RT_ATTR, PT_VALUE,
6181 validate_attr_type_val(struct zone_attrtab *attrtab)
6188 if (strcmp(attrtab->zone_attr_type, "boolean") == 0) {
6189 if (zonecfg_get_attr_boolean(attrtab, &boolval) == Z_OK)
6196 if (strcmp(attrtab->zone_attr_type, "int") == 0) {
6197 if (zonecfg_get_attr_int(attrtab, &intval) == Z_OK)
6204 if (strcmp(attrtab->zone_attr_type, "string") == 0) {
6205 if (zonecfg_get_attr_string(attrtab, strval,
6213 if (strcmp(attrtab->zone_attr_type, "uint") == 0) {
6214 if (zonecfg_get_attr_uint(attrtab, &uintval) == Z_OK)
6222 pt_to_str(PT_TYPE), attrtab->zone_attr_type);