tag | line | file | source code |
nsems | 106 | include/linux/sem.h | asmlinkage int sys_semget (key_t key, int nsems, int semflg); |
nsems | 82 | ipc/sem.c | static int newary (key_t key, int nsems, int semflg) |
nsems | 89 | ipc/sem.c | if (!nsems) |
nsems | 91 | ipc/sem.c | if (used_sems + nsems > SEMMNS) |
nsems | 100 | ipc/sem.c | size = sizeof (*sma) + nsems * sizeof (struct sem); |
nsems | 101 | ipc/sem.c | used_sems += nsems; |
nsems | 105 | ipc/sem.c | used_sems -= nsems; |
nsems | 121 | ipc/sem.c | sma->sem_nsems = nsems; |
nsems | 132 | ipc/sem.c | asmlinkage int sys_semget (key_t key, int nsems, int semflg) |
nsems | 137 | ipc/sem.c | if (nsems < 0 || nsems > SEMMSL) |
nsems | 140 | ipc/sem.c | return newary(key, nsems, semflg); |
nsems | 144 | ipc/sem.c | return newary(key, nsems, semflg); |
nsems | 149 | ipc/sem.c | if (nsems > sma->sem_nsems) |
nsems | 369 | ipc/sem.c | unsigned int nsems; |
nsems | 428 | ipc/sem.c | nsems = sma->sem_nsems; |
nsems | 438 | ipc/sem.c | if (semnum >= nsems) |
nsems | 459 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems*sizeof(ushort)); |
nsems | 477 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, array, nsems*sizeof(ushort)))) |
nsems | 479 | ipc/sem.c | memcpy_fromfs (sem_io, array, nsems*sizeof(ushort)); |
nsems | 480 | ipc/sem.c | for (i = 0; i < nsems; i++) |
nsems | 508 | ipc/sem.c | memcpy_tofs (array, sem_io, nsems*sizeof(ushort)); |
nsems | 542 | ipc/sem.c | for (i = 0; i < nsems; i++) |
nsems | 545 | ipc/sem.c | for (i = 0; i < nsems; i++) |
nsems | 668 | ipc/sem.c | int nsems, i; |
nsems | 697 | ipc/sem.c | nsems = sma->sem_nsems; |
nsems | 698 | ipc/sem.c | for (i = 0; i < nsems; i++) { |
nsems | 65 | ipc/util.c | asmlinkage int sys_semget (key_t key, int nsems, int semflg) |