Lines Matching defs:new
416 struct kcage_glist *new, **lpp;
431 new = kcage_glist_alloc();
432 if (new == NULL) {
436 new->base = base;
437 new->lim = lim;
438 new->decr = (d == KCAGE_DOWN);
439 if (new->decr != 0)
440 new->curr = new->lim;
442 new->curr = new->base;
445 * from the new list as we search for the tail.
450 ret = kcage_glist_delete((*lpp)->base, (*lpp)->lim, &new);
456 *lpp = new;
583 struct kcage_glist *new;
585 if ((new = kcage_glist_freelist) != NULL) {
586 kcage_glist_freelist = new->next;
588 new = vmem_alloc(kcage_arena, sizeof (*new), VM_NOSLEEP);
595 new = kmem_zalloc(sizeof (*new), KM_NOSLEEP);
598 if (new != NULL)
599 bzero(new, sizeof (*new));
601 return (new);
633 struct kcage_glist *new;
637 * need to allocate a new element.
639 new = kcage_glist_alloc();
640 if (new == NULL) {
645 * Tranfser unused range to new.
649 new->decr = lp->decr;
650 if (new->decr != 0) {
651 new->base = lp->base;
652 new->lim = base;
653 new->curr = base;
657 new->base = lim;
658 new->lim = lp->lim;
659 new->curr = new->base;
664 /* Insert new. */
665 new->next = lp->next;
666 lp->next = new;
1593 * of use must be updated to match the new page_relocate() when it