Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 2 of 2) sorted by relevance

/ipc/
Dutil.c203 int idx, next_id = -1; in ipc_idr_alloc() local
229 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()
232 if (idx >= 0) { in ipc_idr_alloc()
238 if (idx <= ids->last_idx) { in ipc_idr_alloc()
243 ids->last_idx = idx; in ipc_idr_alloc()
250 idr_replace(&ids->ipcs_idr, new, idx); in ipc_idr_alloc()
254 idx = idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), in ipc_idr_alloc()
257 if (idx >= 0) in ipc_idr_alloc()
258 new->id = (new->seq << ipcmni_seq_shift()) + idx; in ipc_idr_alloc()
259 return idx; in ipc_idr_alloc()
[all …]
Dsem.c390 int idx; in sem_lock() local
408 idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in sem_lock()
409 sem = &sma->sems[idx]; in sem_lock()
657 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop_slow() local
658 curr = &sma->sems[idx]; in perform_atomic_semop_slow()
738 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop() local
740 curr = &sma->sems[idx]; in perform_atomic_semop()
2140 int idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in do_semtimedop() local
2141 curr = &sma->sems[idx]; in do_semtimedop()