Lines Matching refs:sem
3 * linux/ipc/sem.c
7 * /proc/sysvipc/sem support (c) 1999 Dragos Acostachioaie <dragos@iname.com>
40 * to /proc/sys/kernel/sem.
41 * - statistics about the usage are reported in /proc/sysvipc/sem.
95 struct sem {
126 struct sem sems[];
268 ipc_init_proc_interface("sysvipc/sem",
295 struct sem *curr;
316 struct sem *sem = &sma->sems[i];
318 list_splice_init(&sem->pending_alter, &sma->pending_alter);
338 struct sem *sem;
352 sem = &sma->sems[i];
353 spin_lock(&sem->lock);
354 spin_unlock(&sem->lock);
388 struct sem *sem;
408 sem = &sma->sems[idx];
419 spin_lock(&sem->lock);
426 spin_unlock(&sem->lock);
436 * with sem->lock.
438 * sma->use_global_lock after we have acquired sem->lock:
442 spin_lock(&sem->lock);
463 struct sem *sem = &sma->sems[locknum];
464 spin_unlock(&sem->lock);
654 struct sem *curr;
732 struct sem *curr;
1202 struct sem *sem = &sma->sems[i];
1203 list_for_each_entry_safe(q, tq, &sem->pending_const, list)
1208 list_for_each_entry_safe(q, tq, &sem->pending_alter, list)
1213 ipc_update_pid(&sem->sempid, NULL);
1380 struct sem *curr;
1439 struct sem *curr;
2192 struct sem *curr;
2454 struct sem *semaphore = &sma->sems[i];