Home
last modified time | relevance | path

Searched refs:shm_size (Results 1 – 25 of 30) sorted by relevance

12

/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c18 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()
Dhugeshmget05.c19 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()
Dhugeshmget03.c24 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()
Dhugeshmget02.c17 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/
Dhugeshmat01.c35 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()
Dhugeshmat03.c36 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()
Dhugeshmat02.c37 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/
D24-1.c42 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()
D24-2.c42 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()
D18-1.c72 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/
Dhugeshmctl02.c32 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()
Dhugeshmctl03.c41 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()
Dhugeshmctl01.c41 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/
Dhugeshmdt01.c35 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/
Dcore.c109 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()
Dcore.h208 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/
Dpage-poisoning.c83 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/
Dclient-conf.c69 .shm_size = 0,
146 { "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL }, in pa_client_conf_load()
Dclient-conf.h41 size_t shm_size; member
/third_party/ltp/testcases/kernel/mem/include/
Dmem.h77 void update_shm_size(size_t *shm_size);
/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c670 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/
Ddaemon-conf.h139 size_t shm_size; member
Dohos_daemon-conf.c109 .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()
Ddaemon-conf.c109 .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/
Dwsi_common_wayland.c914 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()

12