Home
last modified time | relevance | path

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

/ipc/
Dutil.c122 ids->max_idx = -1; in ipc_init_ids()
224 int max_idx; in ipc_idr_alloc() local
226 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()
Dmsg.c481 int max_idx; in msgctl_info() local
501 max_idx = ipc_get_maxidx(&msg_ids(ns)); in msgctl_info()
515 return (max_idx < 0) ? 0 : max_idx; in msgctl_info()
Dutil.h161 return ids->max_idx; in ipc_get_maxidx()
Dsem.c1312 int max_idx; in semctl_info() local
1336 max_idx = ipc_get_maxidx(&sem_ids(ns)); in semctl_info()
1340 return (max_idx < 0) ? 0 : max_idx; in semctl_info()