Home
last modified time | relevance | path

Searched refs:max_idx (Results 1 – 4 of 4) sorted by relevance

/ipc/
Dutil.c121 ids->max_idx = -1; in ipc_init_ids()
223 int max_idx; in ipc_idr_alloc() local
225 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()
Dmsg.c459 int max_idx; in msgctl_info() local
486 max_idx = ipc_get_maxidx(&msg_ids(ns)); in msgctl_info()
488 return (max_idx < 0) ? 0 : max_idx; in msgctl_info()
Dutil.h158 return ids->max_idx; in ipc_get_maxidx()
Dsem.c1293 int max_idx; in semctl_info() local
1317 max_idx = ipc_get_maxidx(&sem_ids(ns)); in semctl_info()
1321 return (max_idx < 0) ? 0 : max_idx; in semctl_info()