Lines Matching defs:new
139 int hashtab_duplicate(struct hashtab *new, const struct hashtab *orig,
140 int (*copy)(struct hashtab_node *new,
149 memset(new, 0, sizeof(*new));
151 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL);
152 if (!new->htable)
155 new->size = orig->size;
172 new->htable[i] = tmp;
176 new->nel++;
183 for (i = 0; i < new->size; i++) {
184 for (cur = new->htable[i]; cur; cur = tmp) {
190 kfree(new->htable);
191 memset(new, 0, sizeof(*new));