/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 68 static size_t shm_size; variable 92 shm_id_1 = shmget(shmkey, shm_size, in main() 104 if (buf.shm_segsz != shm_size) { in main() 154 shm_size = hpage_size * hugepages / 2; in setup() 155 update_shm_size(&shm_size); in setup()
|
D | hugeshmget05.c | 70 static size_t shm_size; variable 120 TEST(shmget(shmkey, shm_size, SHM_HUGETLB | SHM_RW)); in do_child() 146 shm_size = hpage_size * hugepages / 2; in setup() 147 update_shm_size(&shm_size); in setup() 149 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmget03.c | 69 static size_t shm_size; variable 95 TEST(shmget(IPC_PRIVATE, shm_size, in main() 124 shm_size = hpage_size; in setup() 134 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 143 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
|
D | hugeshmget02.c | 61 static size_t shm_size; variable 116 TEST(shmget(*(TC[i].skey), TC[i].size_coe * shm_size, in main() 149 shm_size = hpage_size * hugepages / 2; in setup() 150 update_shm_size(&shm_size); in setup() 154 shm_id_1 = shmget(shmkey, shm_size, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl02.c | 64 static size_t shm_size; variable 142 shm_size = hpage_size * hugepages / 2; in setup() 143 update_shm_size(&shm_size); in setup() 147 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup() 152 shm_id_2 = shmget(shmkey + 1, shm_size, in setup()
|
D | hugeshmctl03.c | 71 static size_t shm_size; variable 168 shm_size = hpage_size * hugepages / 2; in setup() 169 update_shm_size(&shm_size); in setup() 171 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmctl01.c | 77 static size_t shm_size; variable 134 shm_id_1 = shmget(shmkey, shm_size, in main() 277 if (buf.shm_segsz != shm_size) { in func_stat() 404 shm_size = hpage_size * hugepages / 2; in setup() 405 update_shm_size(&shm_size); in setup()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 24-1.c | 43 size_t shm_size = 1024; in main() local 58 if (ftruncate(fd, shm_size) == -1) { in main() 63 len = shm_size; in main() 75 mapped_size += shm_size; in main()
|
D | 24-2.c | 43 size_t shm_size; in main() local 47 shm_size = 2 * page_size; in main() 58 if (ftruncate(fd, shm_size) == -1) { in main() 71 len = shm_size; in main()
|
D | 18-1.c | 73 size_t shm_size; in main() local 94 shm_size = 1024; in main() 111 if (ftruncate(fd, shm_size) == -1) { in main()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 69 static size_t shm_size; variable 161 if (buf.shm_segsz != shm_size) { in check_functionality() 220 shm_size = hpage_size * hugepages / 2; in setup() 221 update_shm_size(&shm_size); in setup() 223 shm_id_1 = shmget(shmkey++, shm_size, in setup()
|
D | hugeshmat02.c | 67 static size_t shm_size; variable 136 shm_size = hpage_size * hugepages / 2; in setup() 137 update_shm_size(&shm_size); in setup() 142 shm_id_2 = shmget(shmkey++, shm_size, in setup()
|
D | hugeshmat03.c | 67 static size_t shm_size; variable 142 shm_size = hpage_size * hugepages / 2; in setup() 143 update_shm_size(&shm_size); in setup() 145 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 68 static size_t shm_size; variable 176 shm_size = hpage_size * hugepages / 2; in setup() 177 update_shm_size(&shm_size); in setup() 181 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
/external/ltp/testcases/kernel/mem/include/ |
D | mem.h | 95 void update_shm_size(size_t *shm_size);
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 959 void update_shm_size(size_t * shm_size) in update_shm_size() argument 964 if (*shm_size > shmmax) { in update_shm_size() 966 *shm_size = shmmax; in update_shm_size()
|