/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 18 static size_t shm_size; variable 30 if (buf.shm_segsz != shm_size) { in test_hugeshmget() 57 shm_size = hpage_size * tst_hugepages / 2; in setup() 58 update_shm_size(&shm_size); in setup() 61 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmget05.c | 19 static size_t shm_size; variable 48 TEST(shmget(shmkey, shm_size, SHM_HUGETLB | SHM_RW)); in do_child() 69 shm_size = hpage_size * tst_hugepages / 2; in setup() 70 update_shm_size(&shm_size); in setup() 72 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmget03.c | 24 static size_t shm_size; variable 32 TEST(shmget(IPC_PRIVATE, shm_size, in test_hugeshmget() 56 shm_size = hpage_size; in setup() 63 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 72 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
|
D | hugeshmget02.c | 17 static size_t shm_size; variable 49 TEST(shmget(*(tcases[i].skey), tcases[i].size_coe * shm_size, in test_hugeshmget() 75 shm_size = hpage_size * tst_hugepages / 2; in setup() 76 update_shm_size(&shm_size); in setup() 80 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 35 static size_t shm_size; variable 102 if (buf.shm_segsz != shm_size) { in check_functionality() 157 shm_size = hpage_size * tst_hugepages / 2; in setup() 158 update_shm_size(&shm_size); in setup() 160 shm_id_1 = shmget(shmkey++, shm_size, in setup()
|
D | hugeshmat03.c | 36 static size_t shm_size; variable 77 shm_size = hpage_size * tst_hugepages / 2; in setup() 78 update_shm_size(&shm_size); in setup() 80 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmat02.c | 37 static size_t shm_size; variable 82 shm_size = hpage_size * tst_hugepages / 2; in setup() 83 update_shm_size(&shm_size); in setup() 88 shm_id_2 = shmget(shmkey++, shm_size, in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 24-1.c | 42 size_t shm_size = 1024; in main() local 57 if (ftruncate(fd, shm_size) == -1) { in main() 62 len = shm_size; in main() 74 mapped_size += shm_size; in main()
|
D | 24-2.c | 42 size_t shm_size; in main() local 46 shm_size = 2 * page_size; in main() 57 if (ftruncate(fd, shm_size) == -1) { in main() 70 len = shm_size; in main()
|
D | 18-1.c | 72 size_t shm_size; in main() local 93 shm_size = 1024; in main() 110 if (ftruncate(fd, shm_size) == -1) { in main()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl02.c | 32 static size_t shm_size; variable 112 shm_size = hpage_size * (tst_hugepages / 2); in setup() 113 update_shm_size(&shm_size); in setup() 117 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup() 122 shm_id_2 = shmget(shmkey + 1, shm_size, in setup()
|
D | hugeshmctl03.c | 41 static size_t shm_size; variable 109 shm_size = hpage_size * tst_hugepages / 2; in setup() 110 update_shm_size(&shm_size); in setup() 112 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmctl01.c | 41 static size_t shm_size; variable 75 shm_id_1 = shmget(shmkey, shm_size, in test_hugeshmctl() 170 if (buf.shm_segsz != shm_size) { in func_stat() 292 shm_size = hpage_size * tst_hugepages / 2; in setup() 293 update_shm_size(&shm_size); in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 35 static size_t shm_size; variable 122 shm_size = hpage_size * tst_hugepages / 2; in setup() 123 update_shm_size(&shm_size); in setup() 127 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
/third_party/pulseaudio/src/pulsecore/ |
D | core.c | 109 pa_core* pa_core_new(pa_mainloop_api *m, bool shared, bool enable_memfd, size_t shm_size) { in pa_core_new() argument 120 if (!(pool = pa_mempool_new(type, shm_size, false))) { in pa_core_new() 128 if (!(pool = pa_mempool_new(PA_MEM_TYPE_PRIVATE, shm_size, false))) { in pa_core_new() 178 c->shm_size = shm_size; in pa_core_new()
|
D | core.h | 208 size_t shm_size; member 248 pa_core* pa_core_new(pa_mainloop_api *m, bool shared, bool enable_memfd, size_t shm_size);
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
D | page-poisoning.c | 83 static int shm_size = SHM_SIZE; variable 608 if ((ipc->shm.id = shmget(IPC_PRIVATE, shm_size * PS, in shm_test() 862 shm_size = strtol(optarg, NULL, 0); in main() 863 if (shm_size < SHM_SIZE) in main() 864 shm_size = SHM_SIZE; in main()
|
/third_party/pulseaudio/src/pulse/ |
D | client-conf.c | 69 .shm_size = 0, 146 { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, in pa_client_conf_load()
|
D | client-conf.h | 41 size_t shm_size; member
|
/third_party/ltp/testcases/kernel/mem/include/ |
D | mem.h | 77 void update_shm_size(size_t *shm_size);
|
/third_party/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 670 void update_shm_size(size_t * shm_size) in update_shm_size() argument 675 if (*shm_size > shmmax) { in update_shm_size() 677 *shm_size = shmmax; in update_shm_size()
|
/third_party/pulseaudio/src/daemon/ |
D | daemon-conf.h | 139 size_t shm_size; member
|
D | ohos_daemon-conf.c | 109 .shm_size = 0 619 { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, in pa_daemon_conf_load() 837 pa_strbuf_printf(s, "shm-size-bytes = %lu\n", (unsigned long) c->shm_size); in pa_daemon_conf_dump()
|
D | daemon-conf.c | 109 .shm_size = 0 619 { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, in pa_daemon_conf_load() 837 pa_strbuf_printf(s, "shm-size-bytes = %lu\n", (unsigned long) c->shm_size); in pa_daemon_conf_dump()
|
/third_party/mesa3d/src/vulkan/wsi/ |
D | wsi_common_wayland.c | 914 unsigned shm_size; member 1129 image->shm_size = size; in wsi_wl_alloc_image_shm() 1160 image->shm_size); in wsi_wl_image_init() 1222 if (chain->images[i].shm_size) { in wsi_wl_swapchain_images_free() 1224 munmap(chain->images[i].shm_ptr, chain->images[i].shm_size); in wsi_wl_swapchain_images_free()
|