Searched refs:comm_strs (Results 1 – 1 of 1) sorted by relevance
17 static struct comm_strs { struct35 static struct comm_strs *comm_strs__get(void) in comm_strs__get() argument102 struct comm_strs *comm_strs = comm_strs__get(); in comm_strs__remove_if_last() local104 down_write(&comm_strs->lock); in comm_strs__remove_if_last()112 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last()115 for (int i = entry - comm_strs->strs; i < comm_strs->num_strs - 1; i++) in comm_strs__remove_if_last()116 comm_strs->strs[i] = comm_strs->strs[i + 1]; in comm_strs__remove_if_last()117 comm_strs->num_strs--; in comm_strs__remove_if_last()119 up_write(&comm_strs->lock); in comm_strs__remove_if_last()122 static struct comm_str *__comm_strs__find(struct comm_strs *comm_strs, const char *str) in __comm_strs__find() argument[all …]