/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 36 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()
|
D | hugeshmat03.c | 37 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()
|
D | hugeshmat02.c | 38 static int shm_id_1 = -1; variable 48 {&shm_id_1, NULL, EINVAL},
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 36 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/ |
D | hugeshmctl03.c | 42 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()
|
D | hugeshmctl01.c | 42 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()
|
D | hugeshmctl02.c | 32 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/ |
D | shmdt01.c | 72 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/ |
D | hugeshmget01.c | 19 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()
|
D | hugeshmget03.c | 25 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()
|
D | hugeshmget05.c | 20 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()
|
D | hugeshmget02.c | 18 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()
|