Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat01.c36 static int shm_id_1 = -1; variable
45 {&shm_id_1, 0, 0},
50 {&shm_id_1, (void *)-1, SHM_RND},
52 {&shm_id_1, 0, SHM_RDONLY}
92 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality()
160 shm_id_1 = shmget(shmkey++, shm_size, in setup()
162 if (shm_id_1 == -1) in setup()
169 rm_shm(shm_id_1); in cleanup()
Dhugeshmat03.c37 static int shm_id_1 = -1; variable
51 addr = shmat(shm_id_1, NULL, 0); in verify_hugeshmat()
80 shm_id_1 = shmget(shmkey, shm_size, in setup()
82 if (shm_id_1 == -1) in setup()
90 rm_shm(shm_id_1); in cleanup()
Dhugeshmat02.c38 static int shm_id_1 = -1; variable
48 {&shm_id_1, NULL, EINVAL},
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c36 static int shm_id_1 = -1; variable
58 shared = shmat(shm_id_1, 0, 0); in hugeshmdt_test()
69 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality()
127 shm_id_1 = shmget(shmkey, shm_size, in setup()
129 if (shm_id_1 == -1) in setup()
133 shared = shmat(shm_id_1, 0, 0); in setup()
143 rm_shm(shm_id_1); in cleanup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl03.c42 static int shm_id_1 = -1; variable
54 {&shm_id_1, IPC_STAT, &buf, EACCES},
56 {&shm_id_1, IPC_SET, &buf, EPERM},
58 {&shm_id_1, IPC_RMID, &buf, EPERM},
112 shm_id_1 = shmget(shmkey, shm_size, in setup()
114 if (shm_id_1 == -1) in setup()
123 rm_shm(shm_id_1); in cleanup()
Dhugeshmctl01.c42 static int shm_id_1 = -1; variable
75 shm_id_1 = shmget(shmkey, shm_size, in test_hugeshmctl()
77 if (shm_id_1 == -1) in test_hugeshmctl()
83 if (shmctl(shm_id_1, tcases[i].cmd, &buf) == -1) { in test_hugeshmctl()
97 rval = shmat(shm_id_1, 0, 0); in set_shmat()
246 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in func_set()
270 if (shmctl(shm_id_1, IPC_STAT, &buf) != -1) in func_rmid()
279 shm_id_1 = -1; in func_rmid()
298 rm_shm(shm_id_1); in cleanup()
Dhugeshmctl02.c32 static int shm_id_1 = -1; variable
85 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup()
86 if (shm_id_1 == -1) in setup()
98 rm_shm(shm_id_1); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/ipc/shmdt/
Dshmdt01.c72 int shm_id_1 = -1; variable
107 shared = shmat(shm_id_1, 0, 0); in main()
128 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality()
195 if ((shm_id_1 = shmget(shmkey, INT_SIZE, SHM_RW | IPC_CREAT | in setup()
202 shared = shmat(shm_id_1, 0, 0); in setup()
219 rm_shm(shm_id_1); in cleanup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c19 static int shm_id_1 = -1; variable
25 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in test_hugeshmget()
61 shm_id_1 = shmget(shmkey, shm_size, in setup()
63 if (shm_id_1 == -1) in setup()
69 rm_shm(shm_id_1); in cleanup()
Dhugeshmget03.c25 static int shm_id_1 = -1; variable
63 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
65 while (shm_id_1 != -1) { in setup()
66 shm_id_arr[num_shms++] = shm_id_1; in setup()
72 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
Dhugeshmget05.c20 static int shm_id_1 = -1; variable
72 shm_id_1 = shmget(shmkey, shm_size, in setup()
74 if (shm_id_1 == -1) in setup()
83 rm_shm(shm_id_1); in cleanup()
Dhugeshmget02.c18 static int shm_id_1 = -1; variable
80 shm_id_1 = shmget(shmkey, shm_size, in setup()
82 if (shm_id_1 == -1) in setup()
88 rm_shm(shm_id_1); in cleanup()