Lines Matching refs:arena
49 inet_arena_t *arena = kmem_alloc(sizeof (inet_arena_t), kmflags); in inet_minor_create() local
51 if (arena != NULL) { in inet_minor_create()
52 arena->ineta_maxminor = max_dev; in inet_minor_create()
53 arena->ineta_arena = vmem_create(name, in inet_minor_create()
54 (void *)min_dev, arena->ineta_maxminor - min_dev + 1, in inet_minor_create()
57 if (arena->ineta_arena == NULL) { in inet_minor_create()
58 kmem_free(arena, sizeof (inet_arena_t)); in inet_minor_create()
59 arena = NULL; in inet_minor_create()
63 return (arena); in inet_minor_create()
69 inet_arena_t *arena = (inet_arena_t *)a; in inet_minor_destroy() local
71 if (arena != NULL) { in inet_minor_destroy()
72 vmem_destroy(arena->ineta_arena); in inet_minor_destroy()
73 kmem_free(arena, sizeof (inet_arena_t)); in inet_minor_destroy()
78 inet_minor_alloc(void *arena) in inet_minor_alloc() argument
80 return ((dev_t)vmem_alloc(((inet_arena_t *)arena)->ineta_arena, in inet_minor_alloc()
85 inet_minor_free(void *arena, dev_t dev) in inet_minor_free() argument
88 vmem_free(((inet_arena_t *)arena)->ineta_arena, (void *)dev, 1); in inet_minor_free()