rule_input 28 include/crm/common/nvpair_internal.h pcmk_rule_input_t rule_input; // Data used to evaluate rules rule_input 105 include/crm/common/rules.h int pcmk_evaluate_rule(xmlNode *rule, const pcmk_rule_input_t *rule_input, rule_input 33 include/crm/common/rules_internal.h int pcmk__evaluate_condition(xmlNode *expr, const pcmk_rule_input_t *rule_input, rule_input 35 include/crm/common/rules_internal.h int pcmk__evaluate_rules(xmlNode *xml, const pcmk_rule_input_t *rule_input, rule_input 378 lib/common/crmcommon_private.h const pcmk_rule_input_t *rule_input); rule_input 382 lib/common/crmcommon_private.h const pcmk_rule_input_t *rule_input); rule_input 386 lib/common/crmcommon_private.h const pcmk_rule_input_t *rule_input); rule_input 992 lib/common/rules.c const pcmk_rule_input_t *rule_input) rule_input 1010 lib/common/rules.c table = rule_input->rsc_params; rule_input 1014 lib/common/rules.c table = rule_input->rsc_meta; rule_input 1039 lib/common/rules.c const pcmk_rule_input_t *rule_input) rule_input 1056 lib/common/rules.c if ((expression == NULL) || (rule_input == NULL)) { rule_input 1079 lib/common/rules.c expanded_attr = pcmk__replace_submatches(attr, rule_input->rsc_id, rule_input 1080 lib/common/rules.c rule_input->rsc_id_submatches, rule_input 1081 lib/common/rules.c rule_input->rsc_id_nmatches); rule_input 1135 lib/common/rules.c reference = value_from_source(value, source, rule_input); rule_input 1138 lib/common/rules.c if (rule_input->node_attrs != NULL) { rule_input 1139 lib/common/rules.c actual = g_hash_table_lookup(rule_input->node_attrs, attr); rule_input 1189 lib/common/rules.c const pcmk_rule_input_t *rule_input) rule_input 1196 lib/common/rules.c if ((rsc_expression == NULL) || (rule_input == NULL)) { rule_input 1214 lib/common/rules.c && !pcmk__str_eq(standard, rule_input->rsc_standard, pcmk__str_none)) { rule_input 1217 lib/common/rules.c id, pcmk__s(rule_input->rsc_standard, ""), standard); rule_input 1224 lib/common/rules.c && !pcmk__str_eq(provider, rule_input->rsc_provider, pcmk__str_none)) { rule_input 1227 lib/common/rules.c id, pcmk__s(rule_input->rsc_provider, ""), provider); rule_input 1234 lib/common/rules.c && !pcmk__str_eq(type, rule_input->rsc_agent, pcmk__str_none)) { rule_input 1237 lib/common/rules.c id, pcmk__s(rule_input->rsc_agent, ""), type); rule_input 1260 lib/common/rules.c const pcmk_rule_input_t *rule_input) rule_input 1267 lib/common/rules.c if ((op_expression == NULL) || (rule_input == NULL)) { rule_input 1299 lib/common/rules.c if (!pcmk__str_eq(name, rule_input->op_name, pcmk__str_none)) { rule_input 1302 lib/common/rules.c id, pcmk__s(rule_input->op_name, ""), name); rule_input 1307 lib/common/rules.c if ((interval_s != NULL) && (interval_ms != rule_input->op_interval_ms)) { rule_input 1310 lib/common/rules.c id, pcmk__readable_interval(rule_input->op_interval_ms), rule_input 1316 lib/common/rules.c id, name, pcmk__readable_interval(rule_input->op_interval_ms)); rule_input 1334 lib/common/rules.c const pcmk_rule_input_t *rule_input, rule_input 1338 lib/common/rules.c if ((condition == NULL) || (rule_input == NULL)) { rule_input 1344 lib/common/rules.c return pcmk_evaluate_rule(condition, rule_input, next_change); rule_input 1348 lib/common/rules.c return pcmk__evaluate_attr_expression(condition, rule_input); rule_input 1353 lib/common/rules.c rule_input->now, rule_input 1360 lib/common/rules.c return pcmk__evaluate_rsc_expression(condition, rule_input); rule_input 1363 lib/common/rules.c return pcmk__evaluate_op_expression(condition, rule_input); rule_input 1385 lib/common/rules.c pcmk_evaluate_rule(xmlNode *rule, const pcmk_rule_input_t *rule_input, rule_input 1394 lib/common/rules.c if ((rule == NULL) || (rule_input == NULL)) { rule_input 1442 lib/common/rules.c if (pcmk__evaluate_condition(condition, rule_input, rule_input 1486 lib/common/rules.c pcmk__evaluate_rules(xmlNode *xml, const pcmk_rule_input_t *rule_input, rule_input 1506 lib/common/rules.c rc = pcmk_evaluate_rule(rule, rule_input, next_change); rule_input 31 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c static pcmk_rule_input_t rule_input = { rule_input 52 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c rule_input.rsc_params = pcmk__strkey_table(free, free); rule_input 53 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.rsc_params, "foo-param", "bar"); rule_input 54 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.rsc_params, "myparam", "different"); rule_input 56 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c rule_input.rsc_meta = pcmk__strkey_table(free, free); rule_input 57 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.rsc_meta, "foo-meta", "bar"); rule_input 58 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.rsc_params, "mymeta", "different"); rule_input 60 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c rule_input.node_attrs = pcmk__strkey_table(free, free); rule_input 61 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.node_attrs, "foo", "bar"); rule_input 62 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.node_attrs, "num", "10"); rule_input 63 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.node_attrs, "ver", "3.5.0"); rule_input 64 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c pcmk__insert_dup(rule_input.node_attrs, "prefer-north", "100"); rule_input 72 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c g_hash_table_destroy(rule_input.rsc_params); rule_input 73 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c g_hash_table_destroy(rule_input.rsc_meta); rule_input 74 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c g_hash_table_destroy(rule_input.node_attrs); rule_input 90 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c assert_int_equal(pcmk__evaluate_attr_expression(xml, &rule_input), rule_input 114 lib/common/tests/rules/pcmk__evaluate_attr_expression_test.c assert_int_equal(pcmk__evaluate_attr_expression(NULL, &rule_input), EINVAL); rule_input 23 lib/common/tests/rules/pcmk__evaluate_condition_test.c static pcmk_rule_input_t rule_input = { rule_input 54 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(NULL, &rule_input, next_change), rule_input 69 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, next_change), rule_input 86 lib/common/tests/rules/pcmk__evaluate_condition_test.c rule_input.node_attrs = pcmk__strkey_table(free, free); rule_input 87 lib/common/tests/rules/pcmk__evaluate_condition_test.c pcmk__insert_dup(rule_input.node_attrs, "foo", "bar"); rule_input 89 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), rule_input 92 lib/common/tests/rules/pcmk__evaluate_condition_test.c g_hash_table_destroy(rule_input.node_attrs); rule_input 93 lib/common/tests/rules/pcmk__evaluate_condition_test.c rule_input.node_attrs = NULL; rule_input 108 lib/common/tests/rules/pcmk__evaluate_condition_test.c rule_input.node_attrs = pcmk__strkey_table(free, free); rule_input 109 lib/common/tests/rules/pcmk__evaluate_condition_test.c pcmk__insert_dup(rule_input.node_attrs, CRM_ATTR_UNAME, "node1"); rule_input 111 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), rule_input 114 lib/common/tests/rules/pcmk__evaluate_condition_test.c g_hash_table_destroy(rule_input.node_attrs); rule_input 115 lib/common/tests/rules/pcmk__evaluate_condition_test.c rule_input.node_attrs = NULL; rule_input 133 lib/common/tests/rules/pcmk__evaluate_condition_test.c rule_input.now = now; rule_input 134 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, next_change), rule_input 137 lib/common/tests/rules/pcmk__evaluate_condition_test.c rule_input.now = NULL; rule_input 154 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), rule_input 169 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), rule_input 184 lib/common/tests/rules/pcmk__evaluate_condition_test.c assert_int_equal(pcmk__evaluate_condition(xml, &rule_input, NULL), rule_input 24 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c static pcmk_rule_input_t rule_input = { rule_input 42 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c assert_int_equal(pcmk__evaluate_op_expression(xml, &rule_input), rule_input 121 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c rule_input.op_name = NULL; rule_input 124 lib/common/tests/rules/pcmk__evaluate_op_expression_test.c rule_input.op_name = PCMK_ACTION_MONITOR; rule_input 24 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c static pcmk_rule_input_t rule_input = { rule_input 43 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c assert_int_equal(pcmk__evaluate_rsc_expression(xml, &rule_input), rule_input 117 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c rule_input.rsc_standard = NULL; rule_input 120 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c rule_input.rsc_standard = PCMK_RESOURCE_CLASS_OCF; rule_input 140 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c rule_input.rsc_provider = NULL; rule_input 143 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c rule_input.rsc_provider = "heartbeat"; rule_input 163 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c rule_input.rsc_agent = NULL; rule_input 166 lib/common/tests/rules/pcmk__evaluate_rsc_expression_test.c rule_input.rsc_agent = "IPaddr2"; rule_input 23 lib/common/tests/rules/pcmk_evaluate_rule_test.c static pcmk_rule_input_t rule_input = { rule_input 56 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(NULL, &rule_input, next_change), rule_input 76 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, next_change), rule_input 93 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(rule_xml, &rule_input, next_change), rule_input 108 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(rule_xml, &rule_input, next_change), rule_input 123 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 139 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 155 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 176 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 198 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 219 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); rule_input 236 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); rule_input 256 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 277 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 298 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); rule_input 318 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); rule_input 336 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), pcmk_rc_ok); rule_input 356 lib/common/tests/rules/pcmk_evaluate_rule_test.c assert_int_equal(pcmk_evaluate_rule(xml, &rule_input, NULL), rule_input 34 lib/pacemaker/pcmk_sched_constraints.c pcmk_rule_input_t rule_input = { rule_input 38 lib/pacemaker/pcmk_sched_constraints.c result = (pcmk__evaluate_rules(lifetime, &rule_input, rule_input 113 lib/pacemaker/pcmk_sched_location.c pcmk_rule_input_t *rule_input) rule_input 185 lib/pacemaker/pcmk_sched_location.c if ((rule_input->rsc_id != NULL) && (rule_input->rsc_id_nmatches > 0) rule_input 188 lib/pacemaker/pcmk_sched_location.c char *result = pcmk__replace_submatches(score, rule_input->rsc_id, rule_input 189 lib/pacemaker/pcmk_sched_location.c rule_input->rsc_id_submatches, rule_input 190 lib/pacemaker/pcmk_sched_location.c rule_input->rsc_id_nmatches); rule_input 201 lib/pacemaker/pcmk_sched_location.c rule_input->node_attrs = node->details->attrs; rule_input 202 lib/pacemaker/pcmk_sched_location.c rule_input->rsc_params = pe_rsc_params(rsc, node, rsc->cluster); rule_input 204 lib/pacemaker/pcmk_sched_location.c if (pcmk_evaluate_rule(rule_xml, rule_input, rule_input 288 lib/pacemaker/pcmk_sched_location.c pcmk_rule_input_t rule_input = { rule_input 310 lib/pacemaker/pcmk_sched_location.c &rule_input)) { rule_input 178 lib/pengine/rules.c if (pcmk__evaluate_rules(pair, &(unpack_data->rule_input), rule_input 248 lib/pengine/rules.c map_rule_input(&(data.rule_input), rule_data); rule_input 296 lib/pengine/rules.c pcmk_rule_input_t rule_input = { NULL, }; rule_input 298 lib/pengine/rules.c map_rule_input(&rule_input, rule_data); rule_input 299 lib/pengine/rules.c return pcmk__evaluate_rules(ruleset, &rule_input, rule_input 307 lib/pengine/rules.c pcmk_rule_input_t rule_input = { rule_input 312 lib/pengine/rules.c return pcmk__evaluate_rules(ruleset, &rule_input, next_change); rule_input 320 lib/pengine/rules.c pcmk_rule_input_t rule_input = { rule_input 326 lib/pengine/rules.c rule_input.rsc_params = match_data->params; rule_input 327 lib/pengine/rules.c rule_input.rsc_meta = match_data->meta; rule_input 329 lib/pengine/rules.c rule_input.rsc_id = match_data->re->string; rule_input 330 lib/pengine/rules.c rule_input.rsc_id_submatches = match_data->re->pmatch; rule_input 331 lib/pengine/rules.c rule_input.rsc_id_nmatches = match_data->re->nregs; rule_input 334 lib/pengine/rules.c return pcmk_evaluate_rule(rule, &rule_input, next_change) == pcmk_rc_ok; rule_input 372 lib/pengine/rules.c pcmk_rule_input_t rule_input = { rule_input 378 lib/pengine/rules.c rule_input.rsc_params = match_data->params; rule_input 379 lib/pengine/rules.c rule_input.rsc_meta = match_data->meta; rule_input 381 lib/pengine/rules.c rule_input.rsc_id = match_data->re->string; rule_input 382 lib/pengine/rules.c rule_input.rsc_id_submatches = match_data->re->pmatch; rule_input 383 lib/pengine/rules.c rule_input.rsc_id_nmatches = match_data->re->nregs; rule_input 386 lib/pengine/rules.c return pcmk__evaluate_condition(expr, &rule_input, rule_input 419 lib/pengine/rules.c pcmk_rule_input_t rule_input = { NULL, }; rule_input 421 lib/pengine/rules.c map_rule_input(&rule_input, rule_data); rule_input 422 lib/pengine/rules.c return pcmk_evaluate_rule(rule, &rule_input, next_change) == pcmk_rc_ok; rule_input 429 lib/pengine/rules.c pcmk_rule_input_t rule_input = { NULL, }; rule_input 431 lib/pengine/rules.c map_rule_input(&rule_input, rule_data); rule_input 432 lib/pengine/rules.c return pcmk__evaluate_condition(expr, &rule_input, rule_input 27 tools/crm_resource_print.c pcmk_rule_input_t rule_input = { rule_input 37 tools/crm_resource_print.c if (pcmk__evaluate_rules(lifetime, &rule_input, NULL) != pcmk_rc_ok) {