Home
last modified time | relevance | path

Searched refs:shm (Results 1 – 25 of 218) sorted by relevance

123456789

/third_party/alsa-lib/src/control/
Dcontrol_shm.c52 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_action() local
55 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_action()
56 err = write(shm->socket, buf, 1); in snd_ctl_shm_action()
59 err = read(shm->socket, buf, 1); in snd_ctl_shm_action()
71 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_action_fd() local
74 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_action_fd()
75 err = write(shm->socket, buf, 1); in snd_ctl_shm_action_fd()
78 err = snd_receive_fd(shm->socket, buf, 1, fd); in snd_ctl_shm_action_fd()
90 snd_ctl_shm_t *shm = ctl->private_data; in snd_ctl_shm_close() local
91 volatile snd_ctl_shm_ctrl_t *ctrl = shm->ctrl; in snd_ctl_shm_close()
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_shm.c62 snd_pcm_shm_t *shm = pcm->private_data; in snd_pcm_shm_action_fd0() local
65 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_action_fd0()
67 err = write(shm->socket, buf, 1); in snd_pcm_shm_action_fd0()
70 err = snd_receive_fd(shm->socket, buf, 1, fd); in snd_pcm_shm_action_fd0()
80 static int snd_pcm_shm_new_rbptr(snd_pcm_t *pcm, snd_pcm_shm_t *shm, in snd_pcm_shm_new_rbptr() argument
94 shm->ctrl->cmd = &pcm->hw == rbptr ? SND_PCM_IOCTL_HW_PTR_FD : SND_PCM_IOCTL_APPL_PTR_FD; in snd_pcm_shm_new_rbptr()
114 snd_pcm_shm_t *shm = pcm->private_data; in snd_pcm_shm_action() local
117 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; in snd_pcm_shm_action()
121 err = write(shm->socket, buf, 1); in snd_pcm_shm_action()
124 err = read(shm->socket, buf, 1); in snd_pcm_shm_action()
[all …]
Dpcm_mmap.c252 info->u.shm.shmid = shmid; in snd_pcm_channel_info_shm()
253 info->u.shm.area = NULL; in snd_pcm_channel_info_shm()
326 if (i1->u.shm.shmid != i->u.shm.shmid) in snd_pcm_mmap()
351 if (i->u.shm.shmid < 0) { in snd_pcm_mmap()
359 i->u.shm.shmid = id; in snd_pcm_mmap()
360 ptr = shmat(i->u.shm.shmid, 0, 0); in snd_pcm_mmap()
370 i->u.shm.area = snd_shm_area_create(id, ptr); in snd_pcm_mmap()
371 if (i->u.shm.area == NULL) { in snd_pcm_mmap()
380 if (i1->u.shm.shmid < 0) { in snd_pcm_mmap()
381 i1->u.shm.shmid = id; in snd_pcm_mmap()
[all …]
/third_party/boost/libs/interprocess/example/
Ddoc_managed_grow.cpp50 managed_shared_memory shm(create_only, test::get_process_id_name(), 1000); in main() local
53 managed_shared_memory shm(create_only, "MySharedMemory", 1000); in main()
59 assert(shm.get_size() == 1000); in main()
61 MyClass *myclass = shm.construct<MyClass>("MyClass")(); in main()
82 managed_shared_memory shm(open_only, test::get_process_id_name()); in main() local
85 managed_shared_memory shm(open_only, "MySharedMemory"); in main() local
90 assert(shm.get_size() == 1500); in main()
92 MyClass *myclass = shm.find<MyClass>("MyClass").first; in main()
114 managed_shared_memory shm(open_only, test::get_process_id_name()); in main() local
117 managed_shared_memory shm(open_only, "MySharedMemory"); in main() local
[all …]
Ddoc_shared_memory.cpp48 shared_memory_object shm (create_only, test::get_process_id_name(), read_write); in main() local
51 shared_memory_object shm (create_only, "MySharedMemory", read_write); in main() local
57 shm.truncate(1000); in main()
60 mapped_region region(shm, read_write); in main()
77 shared_memory_object shm (open_only, argv[2], read_only); in main() local
80 shared_memory_object shm (open_only, "MySharedMemory", read_only); in main()
86 mapped_region region(shm, read_only); in main()
Ddoc_windows_shared_memory.cpp33 windows_shared_memory shm (create_only, test::get_process_id_name(), read_write, 1000); in main() local
36 windows_shared_memory shm (create_only, "MySharedMemory", read_write, 1000); in main()
42 mapped_region region(shm, read_write); in main()
60 windows_shared_memory shm (open_only, argv[2], read_only); in main() local
63 windows_shared_memory shm (open_only, "MySharedMemory", read_only); in main()
69 mapped_region region(shm, read_only); in main()
Ddoc_where_allocate.cpp56 managed_shared_memory shm(create_only, test::get_process_id_name(), 10000); in main() local
59 managed_shared_memory shm(create_only, "MySharedMemory", 10000); in main() local
65 CharAllocator charallocator (shm.get_segment_manager()); in main()
66 StringAllocator stringallocator(shm.get_segment_manager()); in main()
88 shm.construct<MyShmStringVector>("myshmvector")(stringallocator); in main()
92 shm.destroy_ptr(myshmvector); in main()
Ddoc_move_containers.cpp55 managed_shared_memory shm(create_only, test::get_process_id_name(), 65536); in main() local
58 managed_shared_memory shm(create_only, "MySharedMemory", 10000); in main() local
64 CharAllocator charallocator (shm.get_segment_manager()); in main()
65 StringAllocator stringallocator(shm.get_segment_manager()); in main()
69 shm.construct<MyShmStringVector>("myshmvector")(stringallocator); in main()
102 shm.destroy_ptr(myshmvector); in main()
Ddoc_xsi_shared_memory.cpp45 xsi_shared_memory shm (create_only, key, 1000); in main() local
53 } remover(shm.get_shmid()); in main()
56 mapped_region region(shm, read_write); in main()
71 xsi_shared_memory shm (open_only, key); in main() local
74 mapped_region region(shm, read_only); in main()
Dcomp_doc_anonymous_semaphoreA.cpp32 shared_memory_object shm in main() local
39 shm.truncate(sizeof(shared_memory_buffer)); in main()
43 (shm //What to map in main()
Dcomp_doc_anonymous_upgradable_mutexA.cpp33 shared_memory_object shm in main() local
40 shm.truncate(sizeof(shared_data)); in main()
44 (shm //What to map in main()
Dcomp_doc_anonymous_conditionA.cpp35 shared_memory_object shm in main() local
42 shm.truncate(sizeof(trace_queue)); in main()
46 (shm //What to map in main()
Dcomp_doc_anonymous_mutexA.cpp35 shared_memory_object shm in main() local
42 shm.truncate(sizeof(shared_memory_log)); in main()
46 (shm //What to map in main()
/third_party/ltp/testcases/cve/
Dcve-2017-17053.c64 static struct shm_data *shm; variable
70 shm->segfaulted = 1; in handler()
71 shm->do_exit = 1; in handler()
87 shm = SAFE_MMAP(NULL, sizeof(struct shm_data), in setup()
94 SAFE_MUNMAP(shm, sizeof(struct shm_data)); in cleanup()
111 if (shm->do_exit) in run_test()
130 shm->do_exit = 0; in run()
131 shm->segfaulted = 0; in run()
138 shm->do_exit = 1; in run()
143 if (WIFEXITED(status) && shm->segfaulted == 0 && tst_taint_check() == 0) in run()
/third_party/boost/libs/interprocess/test/
Dunordered_test.cpp41 bip::managed_shared_memory shm(bip::create_only, bip::test::get_process_id_name(), 65536); in main() local
48 shm.construct<MyUnorderedSet>(bip::anonymous_instance) in main()
52 , shm.get_allocator<int>()); in main()
54 shm.construct<MyUnorderedMultiSet>(bip::anonymous_instance) in main()
58 , shm.get_allocator<int>()); in main()
81 shm.destroy_ptr(myset); in main()
82 shm.destroy_ptr(mymset); in main()
84 shm.shrink_to_fit_indexes(); in main()
85 if(!shm.all_memory_deallocated()) in main()
Dnode_pool_test.hpp139 …managed_shared_memory shm(create_only, test::get_process_id_name(), 4*1024*sizeof(segment_manager:… in test_all_node_pool() local
146 (shm.construct<node_pool_t>(anonymous_instance)(shm.get_segment_manager()) in test_all_node_pool()
147 ,deleter_t(shm.get_segment_manager())); in test_all_node_pool()
/third_party/boost/libs/intrusive/example/
Ddoc_offset_ptr.cpp77 ip::managed_shared_memory shm(ip::create_only, ShmName, ShmSize); in main() local
85 shm_allocator_t shm_alloc(shm.get_segment_manager()); in main()
87 shm.construct<shm_vector_t>(ip::anonymous_instance)(shm_alloc); in main()
94 intrusive_list_t *plist = shm.construct<intrusive_list_t>(ip::anonymous_instance)(); in main()
107 shm.destroy_ptr(plist); in main()
108 shm.destroy_ptr(pshm_vect); in main()
/third_party/python/Lib/multiprocessing/
Dshared_memory.py327 self.shm = SharedMemory(name, create=True, size=requested_size)
329 self.shm = SharedMemory(name)
335 self.shm.buf,
342 self.shm.buf,
348 self.shm.buf,
354 self.shm.buf,
364 self.shm.buf,
377 self.shm.buf,
393 self.shm.buf,
409 self.shm.buf,
[all …]
/third_party/gstreamer/gstplugins_bad/sys/shm/
Dmeson.build11 if get_option('shm').disabled()
26 elif get_option('shm').enabled()
27 error('shm plugin enabled but librt not found')
30 if not shm_enabled and get_option('shm').enabled()
31 error('shm plugin enabled but socket.h not found')
/third_party/gstreamer/gstplugins_bad/ext/wpe/
DWPEThreadedView.cpp514 if (shm.pending) { in ~WPEView()
515 GST_TRACE ("%p freeing shm pending %" GST_PTR_FORMAT, this, shm.pending); in ~WPEView()
516 shm_pending = shm.pending; in ~WPEView()
517 shm.pending = nullptr; in ~WPEView()
519 if (shm.committed) { in ~WPEView()
520 GST_TRACE ("%p freeing shm commited %" GST_PTR_FORMAT, this, shm.committed); in ~WPEView()
521 shm_committed = shm.committed; in ~WPEView()
522 shm.committed = nullptr; in ~WPEView()
634 … GST_TRACE("pending %" GST_PTR_FORMAT " (%d) committed %" GST_PTR_FORMAT " (%d)", shm.pending, in buffer()
635 …GST_IS_BUFFER(shm.pending) ? GST_MINI_OBJECT_REFCOUNT_VALUE(GST_MINI_OBJECT_CAST(shm.pending)) : 0, in buffer()
[all …]
/third_party/flutter/skia/infra/wasm-common/docker/
DREADME.md42 Of note, some versions (generally before Chrome 60) run out of space on /dev/shm when
44 with the flag --shm-size=2gb.
50 docker run -it --shm-size=2gb karma-chrome-tests /bin/bash
52 …docker run --shm-size=2gb -v $SKIA_ROOT:/SRC karma-chrome-tests karma start /SRC/infra/pathkit/kar…
69 Of note, some versions (generally before Chrome 60) run out of space on /dev/shm when
71 with the flag --shm-size=2gb.
78 docker run -it --shm-size=2gb gold-karma-chrome-tests /bin/bash
81 …docker run --shm-size=2gb -v $SKIA_ROOT:/SRC -v /tmp/dockergold:/OUT gold-karma-chrome-tests /SRC/…
98 Of note, some versions (generally before Chrome 60) run out of space on /dev/shm when
100 with the flag --shm-size=2gb.
[all …]
/third_party/skia/infra/wasm-common/docker/
DREADME.md39 Of note, some versions (generally before Chrome 60) run out of space on /dev/shm when
41 with the flag --shm-size=2gb.
47 docker run -it --shm-size=2gb karma-chrome-tests /bin/bash
49 …docker run --shm-size=2gb -v $SKIA_ROOT:/SRC karma-chrome-tests karma start /SRC/infra/pathkit/kar…
66 Of note, some versions (generally before Chrome 60) run out of space on /dev/shm when
68 with the flag --shm-size=2gb.
75 docker run -it --shm-size=2gb gold-karma-chrome-tests /bin/bash
78 …docker run --shm-size=2gb -v $SKIA_ROOT:/SRC -v /tmp/dockergold:/OUT gold-karma-chrome-tests /SRC/…
95 Of note, some versions (generally before Chrome 60) run out of space on /dev/shm when
97 with the flag --shm-size=2gb.
[all …]
/third_party/boost/boost/interprocess/detail/
Dportable_intermodule_singleton.hpp132 …erase_func(const char *shm_name, const char *singleton_lock_file_path, managed_global_memory & shm) in gmem_erase_func()
133 :shm_name_(shm_name), singleton_lock_file_path_(singleton_lock_file_path), shm_(shm) in gmem_erase_func()
171 managed_global_memory shm(open_only, str.c_str()); in apply_gmem_erase_logic() local
172 gmem_erase_func func(str.c_str(), filepath, shm); in apply_gmem_erase_logic()
173 shm.try_atomic_func(func); in apply_gmem_erase_logic()
203 lock_file_logic(managed_global_memory &shm) in lock_file_logic()
204 : mshm(shm) in lock_file_logic()
205 { shm.atomic_func(*this); } in lock_file_logic()
/third_party/weston/compositor/
Dscreen-share.c61 struct wl_shm *shm; member
78 } shm; member
421 wl_list_insert(&sb->output->shm.free_buffers, &sb->free_link); in buffer_release()
446 if (so->shm.width != width || in shared_output_get_shm_buffer()
447 so->shm.height != height) { in shared_output_get_shm_buffer()
450 wl_list_for_each_safe(sb, bnext, &so->shm.free_buffers, free_link) in shared_output_get_shm_buffer()
454 wl_list_for_each(sb, &so->shm.buffers, link) in shared_output_get_shm_buffer()
457 so->shm.width = width; in shared_output_get_shm_buffer()
458 so->shm.height = height; in shared_output_get_shm_buffer()
461 if (!wl_list_empty(&so->shm.free_buffers)) { in shared_output_get_shm_buffer()
[all …]
/third_party/alsa-lib/aserver/
Daserver.c206 } shm; member
247 volatile snd_pcm_shm_ctrl_t *ctrl = client->transport.shm.ctrl; in pcm_shm_hw_ptr_changed()
266 volatile snd_pcm_shm_ctrl_t *ctrl = client->transport.shm.ctrl; in pcm_shm_appl_ptr_changed()
304 client->transport.shm.ctrl_id = shmid; in pcm_shm_open()
305 client->transport.shm.ctrl = shmat(shmid, 0, 0); in pcm_shm_open()
306 if (client->transport.shm.ctrl == (void*) -1) { in pcm_shm_open()
324 snd_pcm_shm_ctrl_t *ctrl = client->transport.shm.ctrl; in pcm_shm_close()
333 if (client->transport.shm.ctrl) { in pcm_shm_close()
334 err = shmdt((void *)client->transport.shm.ctrl); in pcm_shm_close()
337 err = shmctl(client->transport.shm.ctrl_id, IPC_RMID, 0); in pcm_shm_close()
[all …]

123456789