Lines Matching defs:new
604 static int cond_dup_av_list(struct cond_av_list *new,
610 memset(new, 0, sizeof(*new));
612 new->nodes = kcalloc(orig->len, sizeof(*new->nodes), GFP_KERNEL);
613 if (!new->nodes)
617 new->nodes[i] = avtab_insert_nonunique(avtab,
620 if (!new->nodes[i])
622 new->len++;
686 static int cond_bools_copy(struct hashtab_node *new, struct hashtab_node *orig, void *args)
695 new->key = orig->key; /* No need to copy, never modified */
696 new->datum = datum;
745 int cond_policydb_dup(struct policydb *new, struct policydb *orig)
747 cond_policydb_init(new);
749 if (duplicate_policydb_bools(new, orig))
752 if (duplicate_policydb_cond_list(new, orig)) {
753 cond_policydb_destroy_dup(new);