Lines Matching +refs:val +refs:resource
562 * resource.
579 * Remove a resource entry with the supplied type and id from the
893 const pool_value_t *val)
902 val));
906 BAD_CAST property_name_minus_ns(pe, name), val) == PO_FAIL)
908 val));
910 return (pool_xml_set_prop(node, BAD_CAST name, val));
1074 * Now add resource details (including components)
1116 xmlNodePtr resource = info.ktx_node;
1122 node_create(resource,
1283 pool_value_t val = POOL_VALUE_INITIALIZER;
1287 pool_value_get_name(qo->props[i]), &val) ==
1293 &val) != PO_TRUE) {
1338 * Note: This logic is resource specific and must be
1339 * extended for additional resource types.
1348 pool_value_t val = POOL_VALUE_INITIALIZER;
1352 pool_value_get_name(props[i]), &val) ==
1358 &val) != PO_TRUE) {
1440 pool_value_t val = POOL_VALUE_INITIALIZER;
1442 props[0] = &val;
1513 * the supplied type of resource. If a binding cannot be determined,
1528 pool_value_t val = POOL_VALUE_INITIALIZER;
1530 props[0] = &val;
1721 * If it's a resource class, it will need an initial size
1858 * Transfer resource components from one resource set to another.
1872 * Walk the Result Set and move the resource components
1949 * Note: This function is resource specific, needs extending for other
1950 * resource types
1965 * Note: This function is resource specific, needs extending for other
1966 * resource types
1980 * pool_knl_pool_associate() associates the supplied resource to the
1986 pool_knl_pool_associate(pool_t *pool, const pool_resource_t *resource)
1991 pool_resource_elem_class(TO_ELEM(resource));
1998 if (pool_knl_resource_can_associate(resource) == PO_FALSE) {
2005 pkp->pkp_assoc[res_class] = (pool_knl_resource_t *)resource;
2019 assoc->pau_newres = TO_ELEM(resource);
2029 pkp->pkp_assoc[res_class] = (pool_knl_resource_t *)resource;
2034 * pool_knl_pool_dissociate() dissociates the supplied resource from
2040 pool_knl_pool_dissociate(pool_t *pool, const pool_resource_t *resource)
2046 resource);
2048 pool_resource_elem_class(TO_ELEM(resource));
2065 dissoc->pdu_oldres = TO_ELEM(resource);
2073 pkp->pkp_assoc[res_class] = (pool_knl_resource_t *)resource;
2300 pool_value_t *val)
2308 return (pool_knl_get_dynamic_property(pe, name, val));
2315 if (pool_value_from_nvpair(val, pair) == PO_FAIL) {
2319 return (pool_value_get_type(val));
2334 pool_value_t *val)
2376 if (pool_value_from_nvpair(val, pair) == PO_FAIL) {
2381 return (pool_value_get_type(val));
2392 const pool_value_t *val)
2413 if (pool_knl_nvlist_add_value(pke->pke_properties, name, val) !=
2794 pool_value_t val = POOL_VALUE_INITIALIZER;
2843 pool_value_set_int64(&val, create->pcu_ioctl.pc_i_id);
2844 assert(pool_put_any_ns_property(pair, c_sys_prop, &val)
3068 pool_value_t val = POOL_VALUE_INITIALIZER;
3088 pool_value_set_uint64(&val, src_size);
3090 c_size_prop, &val);
3091 pool_value_set_uint64(&val, tgt_size);
3093 c_size_prop, &val);
3228 * Now reset the associations for all the resource
3232 * TODO: This is resource specific and must be
3233 * extended for additional resource types.