Searched refs:max_idx (Results 1 – 4 of 4) sorted by relevance
121 ids->max_idx = -1; in ipc_init_ids()223 int max_idx; in ipc_idr_alloc() local225 max_idx = max(ids->in_use*3/2, ipc_min_cycle); in ipc_idr_alloc()226 max_idx = min(max_idx, ipc_mni); in ipc_idr_alloc()229 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()323 if (idx > ids->max_idx) in ipc_addid()324 ids->max_idx = idx; in ipc_addid()470 if (unlikely(idx == ids->max_idx)) { in ipc_rmid()476 ids->max_idx = idx; in ipc_rmid()
459 int max_idx; in msgctl_info() local486 max_idx = ipc_get_maxidx(&msg_ids(ns)); in msgctl_info()488 return (max_idx < 0) ? 0 : max_idx; in msgctl_info()
158 return ids->max_idx; in ipc_get_maxidx()
1293 int max_idx; in semctl_info() local1317 max_idx = ipc_get_maxidx(&sem_ids(ns)); in semctl_info()1321 return (max_idx < 0) ? 0 : max_idx; in semctl_info()