Lines Matching refs:users
68 static struct tipc_user *users = NULL; variable
84 if (!users) { in reg_init()
85 users = kzalloc(USER_LIST_SIZE, GFP_ATOMIC); in reg_init()
86 if (users) { in reg_init()
88 users[i].next = i - 1; in reg_init()
94 return users ? 0 : -ENOMEM; in reg_init()
128 if (users[u].callback) in tipc_reg_start()
130 (unsigned long)&users[u]); in tipc_reg_start()
143 if (!users) in tipc_reg_stop()
147 if (users[id].callback) in tipc_reg_stop()
148 reg_callback(&users[id]); in tipc_reg_stop()
150 kfree(users); in tipc_reg_stop()
151 users = NULL; in tipc_reg_stop()
166 if (!users) in tipc_attach()
174 user_ptr = &users[next_free_user]; in tipc_attach()
204 if ((!users) || (users[userid].next >= 0)) { in tipc_detach()
209 user_ptr = &users[userid]; in tipc_detach()
236 if ((tipc_mode == TIPC_NOT_RUNNING) || !users ) in tipc_reg_add_port()
240 user_ptr = &users[up_ptr->user_ref]; in tipc_reg_add_port()
256 if (!users ) in tipc_reg_remove_port()