Searched refs:new_cs (Results 1 – 1 of 1) sorted by relevance
740 critical_section_t *new_cs; in cs_alloc() local742 new_cs= (critical_section_t *)malloc(sizeof(critical_section_t)); in cs_alloc()743 if (new_cs == NULL) in cs_alloc()745 memset(new_cs, 0, sizeof(*new_cs)); in cs_alloc()747 TAILQ_INSERT_TAIL(&cs_tailq, new_cs, links); in cs_alloc()748 return new_cs; in cs_alloc()