Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/
Dshmget03.c25 static int maxshms, queue_cnt, used_cnt; variable
30 TST_EXP_FAIL2(shmget(shmkey + maxshms, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW), ENOSPC, in verify_shmget()
31 "shmget(%i, %i, %i)", shmkey + maxshms, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in verify_shmget()
42 SAFE_FILE_SCANF("/proc/sys/kernel/shmmni", "%i", &maxshms); in setup()
44 queues = SAFE_MALLOC((maxshms - used_cnt) * sizeof(int)); in setup()
45 for (num = 0; num < maxshms - used_cnt; num++) { in setup()
53 maxshms); in setup()