Lines Matching defs:users
41 * TIPC user registry keeps track of users of the tipc_port interface.
68 static struct tipc_user *users = NULL;
84 if (!users) {
85 users = kzalloc(USER_LIST_SIZE, GFP_ATOMIC);
86 if (users) {
88 users[i].next = i - 1;
94 return users ? 0 : -ENOMEM;
128 if (users[u].callback)
130 (unsigned long)&users[u]);
143 if (!users)
147 if (users[id].callback)
148 reg_callback(&users[id]);
150 kfree(users);
151 users = NULL;
166 if (!users)
174 user_ptr = &users[next_free_user];
204 if ((!users) || (users[userid].next >= 0)) {
209 user_ptr = &users[userid];
236 if ((tipc_mode == TIPC_NOT_RUNNING) || !users )
240 user_ptr = &users[up_ptr->user_ref];
256 if (!users )