Searched refs:max_idx (Results 1 – 4 of 4) sorted by relevance
122 ids->max_idx = -1; in ipc_init_ids()224 int max_idx; in ipc_idr_alloc() local226 max_idx = max(ids->in_use*3/2, ipc_min_cycle); in ipc_idr_alloc()227 max_idx = min(max_idx, ipc_mni); in ipc_idr_alloc()230 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()324 if (idx > ids->max_idx) in ipc_addid()325 ids->max_idx = idx; in ipc_addid()506 if (unlikely(idx == ids->max_idx)) { in ipc_rmid()507 idx = ids->max_idx-1; in ipc_rmid()510 ids->max_idx = idx; in ipc_rmid()
481 int max_idx; in msgctl_info() local501 max_idx = ipc_get_maxidx(&msg_ids(ns)); in msgctl_info()515 return (max_idx < 0) ? 0 : max_idx; in msgctl_info()
161 return ids->max_idx; in ipc_get_maxidx()
1312 int max_idx; in semctl_info() local1336 max_idx = ipc_get_maxidx(&sem_ids(ns)); in semctl_info()1340 return (max_idx < 0) ? 0 : max_idx; in semctl_info()