Lines Matching +defs:val +defs:info
876 struct knl_to_xml *info = (struct knl_to_xml *)user;
878 return (pool_knl_put_xml_property((pool_elem_t *)pe, info->ktx_node,
891 const pool_value_t *val)
900 val));
904 BAD_CAST property_name_minus_ns(pe, name), val) == PO_FAIL)
906 val));
908 return (pool_xml_set_prop(node, BAD_CAST name, val));
928 struct knl_to_xml info;
937 info.ktx_doc = xmlNewDoc(BAD_CAST "1.0");
938 (void) xmlCreateIntSubset(info.ktx_doc, BAD_CAST "system",
944 xmlFreeDoc(info.ktx_doc);
953 (void) xmlValidateDocument(cvp, info.ktx_doc);
955 if ((info.ktx_node = node_create(NULL, BAD_CAST "system")) ==
957 xmlFreeDoc(info.ktx_doc);
962 system = info.ktx_node;
963 info.ktx_doc->_private = (void *)conf;
965 (void) xmlDocSetRootElement(info.ktx_doc, info.ktx_node);
966 (void) xmlSetProp(info.ktx_node, BAD_CAST c_ref_id,
968 if ((node_comment = xmlNewDocComment(info.ktx_doc,
972 xmlFreeDoc(info.ktx_doc);
976 if (xmlAddPrevSibling(info.ktx_node, node_comment) == NULL) {
978 xmlFreeDoc(info.ktx_doc);
983 pool_conf_to_elem(conf), &info, prop_build_cb, 1) ==
985 xmlFreeDoc(info.ktx_doc);
989 xmlFreeDoc(info.ktx_doc);
1005 if ((info.ktx_node = node_create(system,
1010 xmlFreeDoc(info.ktx_doc);
1016 elem, &info, prop_build_cb, 1) == PO_FAIL) {
1019 xmlFreeDoc(info.ktx_doc);
1029 xmlFreeDoc(info.ktx_doc);
1037 xmlFreeDoc(info.ktx_doc);
1049 xmlFreeDoc(info.ktx_doc);
1055 (void) xmlSetProp(info.ktx_node, BAD_CAST "res",
1062 xmlFreeDoc(info.ktx_doc);
1065 (void) xmlSetProp(info.ktx_node,
1084 if ((info.ktx_node = node_create(system,
1089 xmlFreeDoc(info.ktx_doc);
1095 elem, &info, prop_build_cb, 1) == PO_FAIL) {
1098 xmlFreeDoc(info.ktx_doc);
1106 xmlFreeDoc(info.ktx_doc);
1109 (void) xmlSetProp(info.ktx_node,
1114 xmlNodePtr resource = info.ktx_node;
1119 if ((info.ktx_node =
1129 xmlFreeDoc(info.
1135 compelem, &info,
1141 xmlFreeDoc(info.
1153 xmlFreeDoc(info.
1157 (void) xmlSetProp(info.ktx_node,
1172 xmlFreeDoc(info.ktx_doc);
1178 if (xmlValidateDocument(cvp, info.ktx_doc) == 0) {
1180 xmlFreeDoc(info.ktx_doc);
1185 ret = xmlSaveFormatFile(location, info.ktx_doc, 1);
1186 xmlFreeDoc(info.ktx_doc);
1281 pool_value_t val = POOL_VALUE_INITIALIZER;
1285 pool_value_get_name(qo->props[i]), &val) ==
1291 &val) != PO_TRUE) {
1346 pool_value_t val = POOL_VALUE_INITIALIZER;
1350 pool_value_get_name(props[i]), &val) ==
1356 &val) != PO_TRUE) {
1438 pool_value_t val = POOL_VALUE_INITIALIZER;
1440 props[0] = &val;
1526 pool_value_t val = POOL_VALUE_INITIALIZER;
1528 props[0] = &val;
2132 * readonly then try to open an info device, otherwise try to open
2298 pool_value_t *val)
2306 return (pool_knl_get_dynamic_property(pe, name, val));
2313 if (pool_value_from_nvpair(val, pair) == PO_FAIL) {
2317 return (pool_value_get_type(val));
2332 pool_value_t *val)
2374 if (pool_value_from_nvpair(val, pair) == PO_FAIL) {
2379 return (pool_value_get_type(val));
2390 const pool_value_t *val)
2411 if (pool_knl_nvlist_add_value(pke->pke_properties, name, val) !=
2793 pool_value_t val = POOL_VALUE_INITIALIZER;
2842 pool_value_set_int64(&val, create->pcu_ioctl.pc_i_id);
2843 assert(pool_put_any_ns_property(pair, c_sys_prop, &val)
3071 pool_value_t val = POOL_VALUE_INITIALIZER;
3091 pool_value_set_uint64(&val, src_size);
3093 c_size_prop, &val);
3094 pool_value_set_uint64(&val, tgt_size);
3096 c_size_prop, &val);