Home
last modified time | relevance | path

Searched refs:shm_fd (Results 1 – 12 of 12) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D7-4.c43 int shm_fd; in main() local
54 shm_fd = in main()
56 if (shm_fd == -1) { in main()
63 if (ftruncate(shm_fd, size) == -1) { in main()
68 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
82 shm_fd, 0); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/
D2-1.c53 int shm_fd; in main() local
58 shm_fd = in main()
60 if (shm_fd == -1) { in main()
65 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main()
74 MAP_SHARED, shm_fd, 0); in main()
133 MAP_SHARED, shm_fd, 0); in main()
D2-2.c60 int shm_fd; in main() local
66 shm_fd = in main()
68 if (shm_fd == -1) { in main()
73 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main()
82 MAP_SHARED, shm_fd, 0); in main()
139 MAP_SHARED, shm_fd, 0); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/
D2-1.c55 int shm_fd; in main() local
83 shm_fd = in main()
85 if (shm_fd == -1) { in main()
90 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main()
99 MAP_SHARED, shm_fd, 0); in main()
164 MAP_SHARED, shm_fd, 0); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/
D2-1.c65 int shm_fd; in main() local
104 shm_fd = in main()
106 if (shm_fd == -1) { in main()
111 if (ftruncate(shm_fd, sizeof(pthread_barrier_t)) != 0) { in main()
119 MAP_SHARED, shm_fd, 0); in main()
149 PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
/external/adhd/cras/src/server/
Dcras_system_state.c65 int shm_fd; member
138 state.shm_fd = rw_shm_fd; in cras_system_state_init()
218 cras_shm_close_unlink(state.shm_name, state.shm_fd); in cras_system_state_deinit()
219 if (state.shm_fd_ro != state.shm_fd) in cras_system_state_deinit()
/external/perfetto/src/tracing/ipc/producer/
Dproducer_ipc_client_impl.cc160 int shm_fd = -1; in OnConnect() local
162 shm_fd = static_cast<PosixSharedMemory*>(shared_memory_.get())->fd(); in OnConnect()
174 producer_port_.InitializeConnection(req, std::move(on_init), shm_fd); in OnConnect()
/external/crosvm/gpu_display/src/
Ddwl.rs97 shm_fd: ::std::os::raw::c_int, in dwl_context_surface_new()
Ddisplay_wl.c557 int shm_fd, size_t shm_size, in dwl_context_surface_new() argument
582 wl_shm_create_pool(self->ifaces.shm, shm_fd, shm_size); in dwl_context_surface_new()
/external/perfetto/src/tracing/ipc/service/
Dproducer_ipc_service.cc459 const int shm_fd = in SendSetupTracing() local
462 cmd.set_fd(shm_fd); in SendSetupTracing()
/external/libchrome/base/memory/
Dshared_memory_unittest.cc677 int shm_fd = in TEST_P() local
680 EXPECT_EQ(0, fstat(shm_fd, &shm_stat)); in TEST_P()
/external/adhd/cras/src/libcras/
Dcras_client.c1724 static int client_attach_shm(struct cras_client *client, int shm_fd) in client_attach_shm() argument
1737 shm_fd, 0); in client_attach_shm()
1739 close(shm_fd); in client_attach_shm()