Lines Matching defs:selector

6151 	char *selector;
6179 free_selector_list(devlinktab_list->selector);
6226 if (split_devlinktab_entry(line, &selector, &p_link,
6231 vprint(DEVLINK_MID, "split_entry selector='%s' "
6232 "p_link='%s' s_link='%s'\n\n", selector,
6241 if ((entryp->selector = create_selector_list(selector))
6246 entryp->selector_pattern = s_strdup(selector);
6249 free_selector_list(entryp->selector);
6260 free_selector_list(entryp->selector);
6289 * selector, p_link, and an optionally s_link. If s_link field is not
6293 split_devlinktab_entry(char *entry, char **selector, char **p_link,
6298 *selector = entry;
6334 create_selector_list(char *selector)
6343 while ((*selector != NULL) && (error == FALSE)) {
6344 if (parse_selector(&selector, &key, &val) == DEVFSADM_FAILURE) {
6408 * Takes a semicolon separated list of selector elements and breaks up
6410 * replaced with NULL's. On success, selector is updated to point to the
6416 parse_selector(char **selector, char **key, char **val)
6421 *key = *selector;
6433 *selector = semi_colon + 1;
6435 *selector = equal + strlen(equal);
6579 * For a given devlink.tab devlinktab_list entry, see if the selector
6586 selector_list_t *selector = entry->selector;
6591 for (; selector != NULL; selector = selector->next) {
6592 switch (selector->key) {
6594 if (strcmp(di_node_name(node), selector->val) != 0) {
6601 if (strcmp(node_type, selector->val) != 0) {
6609 if (selector->arg == 0) {
6610 if (strcmp(addr, selector->val) != 0) {
6614 if (compare_field(addr, selector->val,
6615 selector->arg) == DEVFSADM_FAILURE) {
6624 if (selector->arg == 0) {
6625 if (strcmp(minor_name, selector->val) != 0) {
6629 if (compare_field(minor_name, selector->val,
6630 selector->arg) == DEVFSADM_FAILURE) {