Lines Matching refs:gp_alloc
2145 graph_t *gp_alloc = NULL; in flk_get_lock_graph() local
2159 gp_alloc = kmem_zalloc(sizeof (graph_t), KM_SLEEP); in flk_get_lock_graph()
2163 gp_alloc->active_locks.l_next = in flk_get_lock_graph()
2164 gp_alloc->active_locks.l_prev = in flk_get_lock_graph()
2165 (lock_descriptor_t *)ACTIVE_HEAD(gp_alloc); in flk_get_lock_graph()
2166 gp_alloc->sleeping_locks.l_next = in flk_get_lock_graph()
2167 gp_alloc->sleeping_locks.l_prev = in flk_get_lock_graph()
2168 (lock_descriptor_t *)SLEEPING_HEAD(gp_alloc); in flk_get_lock_graph()
2169 gp_alloc->index = index; in flk_get_lock_graph()
2170 mutex_init(&gp_alloc->gp_mutex, NULL, MUTEX_DEFAULT, NULL); in flk_get_lock_graph()
2182 ASSERT(gp_alloc != NULL); in flk_get_lock_graph()
2183 lock_graph[index] = gp = gp_alloc; in flk_get_lock_graph()
2195 if ((gp_alloc != NULL) && (gp != gp_alloc)) { in flk_get_lock_graph()
2197 mutex_destroy(&gp_alloc->gp_mutex); in flk_get_lock_graph()
2198 kmem_free(gp_alloc, sizeof (graph_t)); in flk_get_lock_graph()