/third_party/boost/libs/interprocess/test/ |
D | managed_shared_memory_test.cpp | 38 managed_shared_memory shmem(create_only, ShmemName, ShmemSize); in main() local 43 array[i] = shmem.allocate(i+1); in main() 48 shmem.deallocate(array[i]); in main() 57 managed_shared_memory shmem(create_only, ShmemName, ShmemSize); in main() local 60 const allocator_int_t myallocator (shmem.get_segment_manager()); in main() 63 MyVect *shmem_vect = shmem.construct<MyVect> ("MyVector") (myallocator); in main() 66 if(shmem_vect != shmem.find<MyVect>("MyVector").first) in main() 70 shmem.destroy<MyVect> ("MyVector"); in main() 71 if(0 != shmem.find<MyVect>("MyVector").first) in main() 75 shmem_vect = shmem.construct<MyVect> ("MyVector") (myallocator); in main() [all …]
|
D | managed_xsi_shared_memory_test.cpp | 84 managed_xsi_shared_memory shmem(create_only, key, ShmemSize); in main() local 85 shmid = shmem.get_shmid(); in main() 89 array[i] = shmem.allocate(i+1); in main() 94 shmem.deallocate(array[i]); in main() 103 managed_xsi_shared_memory shmem(create_only, key, ShmemSize); in main() local 104 shmid = shmem.get_shmid(); in main() 107 const allocator_int_t myallocator (shmem.get_segment_manager()); in main() 110 MyVect *shmem_vect = shmem.construct<MyVect> ("MyVector") (myallocator); in main() 113 if(shmem_vect != shmem.find<MyVect>("MyVector").first) in main() 117 shmem.destroy<MyVect> ("MyVector"); in main() [all …]
|
D | shared_ptr_test.cpp | 60 managed_shared_memory shmem(create_only, process_name.c_str(), 10000); in simple_test() local 64 base_class_allocator(shmem.get_segment_manager()), in simple_test() 65 base_deleter_t(shmem.get_segment_manager())); in simple_test() 67 base_shared_ptr s_ptr2(shmem.construct<base_class>("base_class")(), in simple_test() 68 base_class_allocator(shmem.get_segment_manager()), in simple_test() 69 base_deleter_t(shmem.get_segment_manager())); in simple_test() 71 …base_shared_ptr s_ptr3(offset_ptr<derived_class>(shmem.construct<derived_class>("derived_class")()… in simple_test() 72 base_class_allocator(shmem.get_segment_manager()), in simple_test() 73 base_deleter_t(shmem.get_segment_manager())); in simple_test() 138 managed_shared_memory shmem(create_only, process_name.c_str(), 20000); in string_shared_ptr_vector_insertion_test() local [all …]
|
D | managed_windows_shared_memory_test.cpp | 90 managed_windows_shared_memory shmem(open_copy_on_write, MemName); in main() local 93 MyVect *shmem_vect = shmem.find<MyVect>("MyVector").first; in main() 98 shmem.destroy_ptr(shmem_vect); in main() 101 shmem_vect = shmem.find<MyVect>("MyVector").first; in main() 108 managed_windows_shared_memory shmem(open_copy_on_write, MemName); in main() local 111 MyVect *shmem_vect = shmem.find<MyVect>("MyVector").first; in main() 118 managed_windows_shared_memory shmem(open_read_only, MemName); in main() local 121 MyVect *shmem_vect = shmem.find<MyVect>("MyVector").first; in main()
|
D | enable_shared_from_this_test.cpp | 90 managed_shared_memory shmem(create_only, process_name.c_str(), 65536); in main() local 91 test_enable_shared_this(shmem); in main()
|
/third_party/boost/libs/interprocess/example/ |
D | doc_scoped_ptr.cpp | 74 managed_shared_memory shmem(create_only, test::get_process_id_name(), 10000); in main() local 77 managed_shared_memory shmem(create_only, "MySharedMemory", 10000); in main() local 86 my_class * my_object = shmem.construct<my_class>("my_object")(); in main() 87 my_class * my_object2 = shmem.construct<my_class>(anonymous_instance)(); in main() 88 shmem.destroy_ptr(my_object2); in main() 93 my_deleter<my_class> d(shmem.get_segment_manager()); in main() 113 if(!shmem.find<my_class>("my_object").first){ in main() 117 shmem.destroy<my_class>("my_object"); in main() 121 if(shmem.find<my_class>("my_object").first){ in main()
|
D | doc_intrusive.cpp | 99 managed_shared_memory shmem(create_only, test::get_process_id_name(), 10000); in main() local 102 managed_shared_memory shmem(create_only, "MySharedMemory", 10000); in main() local 109 shmem.construct<N::reference_counted_class> in main() 110 ("ref_counted")(shmem.get_segment_manager()); in main() 114 shmem.construct<intrusive_ptr_owner> in main() 124 shmem.destroy_ptr(intrusive_owner_array); in main() 127 if(shmem.find<intrusive_ptr_owner>("ref_counted").first) in main()
|
/third_party/ltp/testcases/kernel/containers/sysvipc/ |
D | shm_comm.c | 62 char *shmem; in chld1_shm() local 70 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) { in chld1_shm() 76 *shmem = 'A'; in chld1_shm() 81 if (*shmem != 'A') in chld1_shm() 87 shmdt(shmem); in chld1_shm() 95 char *shmem; in chld2_shm() local 103 if ((shmem = shmat(id, NULL, 0)) == (char *) -1) { in chld2_shm() 112 *shmem = 'B'; in chld2_shm() 116 shmdt(shmem); in chld2_shm()
|
/third_party/mesa3d/src/virtio/vulkan/ |
D | vn_cs.c | 36 struct vn_renderer_shmem *shmem, in vn_cs_encoder_add_buffer() argument 45 cur_buf->shmem = shmem; in vn_cs_encoder_add_buffer() 78 vn_renderer_shmem_unref(enc->instance->renderer, enc->buffers[i].shmem); in vn_cs_encoder_gc_buffers() 83 vn_cs_encoder_add_buffer(enc, cur_buf->shmem, used, in vn_cs_encoder_gc_buffers() 108 vn_renderer_shmem_unref(enc->instance->renderer, enc->buffers[i].shmem); in vn_cs_encoder_fini() 193 struct vn_renderer_shmem *shmem = in vn_cs_encoder_reserve_internal() local 195 if (!shmem) in vn_cs_encoder_reserve_internal() 201 vn_renderer_shmem_unref(enc->instance->renderer, shmem); in vn_cs_encoder_reserve_internal() 205 vn_cs_encoder_add_buffer(enc, shmem, 0, shmem->mmap_ptr, buf_size); in vn_cs_encoder_reserve_internal()
|
D | vn_renderer.h | 140 struct vn_renderer_shmem *shmem); 292 struct vn_renderer_shmem *shmem = in vn_renderer_shmem_create() local 294 if (shmem) { in vn_renderer_shmem_create() 295 assert(vn_refcount_is_valid(&shmem->refcount)); in vn_renderer_shmem_create() 296 assert(shmem->res_id); in vn_renderer_shmem_create() 297 assert(shmem->mmap_size >= size); in vn_renderer_shmem_create() 298 assert(shmem->mmap_ptr); in vn_renderer_shmem_create() 301 return shmem; in vn_renderer_shmem_create() 306 struct vn_renderer_shmem *shmem) in vn_renderer_shmem_ref() argument 308 vn_refcount_inc(&shmem->refcount); in vn_renderer_shmem_ref() [all …]
|
D | vn_instance.c | 126 instance->ring.shmem = in vn_instance_init_ring() 128 if (!instance->ring.shmem) { in vn_instance_init_ring() 138 instance->ring.shmem->mmap_ptr); in vn_instance_init_ring() 144 .resourceId = instance->ring.shmem->res_id, in vn_instance_init_ring() 370 .resourceId = buf->shmem->res_id, in vn_instance_submission_get_cs() 418 vn_renderer_shmem_ref(ring->renderer, cs->buffers[i].shmem); in vn_instance_submission_get_ring_submit() 555 struct vn_renderer_shmem *shmem = in vn_instance_grow_reply_shmem_locked() local 557 if (!shmem) in vn_instance_grow_reply_shmem_locked() 560 if (instance->reply.shmem) in vn_instance_grow_reply_shmem_locked() 561 vn_renderer_shmem_unref(instance->renderer, instance->reply.shmem); in vn_instance_grow_reply_shmem_locked() [all …]
|
D | vn_instance.h | 47 struct vn_renderer_shmem *shmem; member 60 struct vn_renderer_shmem *shmem; member
|
D | vn_renderer_vtest.c | 782 struct vtest_shmem *shmem = (struct vtest_shmem *)_shmem; in vtest_shmem_destroy() local 784 munmap(shmem->base.mmap_ptr, shmem->base.mmap_size); in vtest_shmem_destroy() 787 vtest_vcmd_resource_unref(vtest, shmem->base.res_id); in vtest_shmem_destroy() 813 struct vtest_shmem *shmem = in vtest_shmem_create() local 815 *shmem = (struct vtest_shmem){ in vtest_shmem_create() 824 return &shmem->base; in vtest_shmem_create()
|
D | vn_renderer_virtgpu.c | 1276 struct virtgpu_shmem *shmem = (struct virtgpu_shmem *)_shmem; in virtgpu_shmem_destroy() local 1278 munmap(shmem->base.mmap_ptr, shmem->base.mmap_size); in virtgpu_shmem_destroy() 1279 virtgpu_ioctl_gem_close(gpu, shmem->gem_handle); in virtgpu_shmem_destroy() 1300 struct virtgpu_shmem *shmem = in virtgpu_shmem_create() local 1302 *shmem = (struct virtgpu_shmem){ in virtgpu_shmem_create() 1312 return &shmem->base; in virtgpu_shmem_create()
|
D | vn_cs.h | 38 struct vn_renderer_shmem *shmem; member
|
/third_party/e2fsprogs/lib/ext2fs/tdb/patches/ |
D | replace-includes | 12 -#include "system/shmem.h"
|
/third_party/mesa3d/docs/relnotes/ |
D | 21.3.0.rst | 803 - venus: support reply shmem without ring 814 - venus: convert bo and shmem to use vn_refcount
|