Home
last modified time | relevance | path

Searched refs:shm_fd (Results 1 – 11 of 11) 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_rstream.c42 shm_info->shm_fd = cras_shm_open_rw(shm_info->shm_name, shm_info->length); in setup_shm()
43 if (shm_info->shm_fd < 0) in setup_shm()
44 return shm_info->shm_fd; in setup_shm()
49 shm_info->shm_fd, 0); in setup_shm()
51 close(shm_info->shm_fd); in setup_shm()
273 stream->shm_info.shm_fd); in cras_rstream_destroy()
Dcras_rstream.h25 int shm_fd; member
221 return stream->shm_info.shm_fd; in cras_rstream_output_shm_fd()
227 return stream->shm_info.shm_fd; in cras_rstream_input_shm_fd()
Dcras_system_state.c54 int shm_fd; member
94 state.shm_fd = rw_shm_fd; in cras_system_state_init()
165 cras_shm_close_unlink(state.shm_name, state.shm_fd); in cras_system_state_deinit()
166 if (state.shm_fd_ro != state.shm_fd) in cras_system_state_deinit()
/external/perfetto/src/tracing/ipc/service/
Dproducer_ipc_service.cc386 const int shm_fd = in OnTracingSetup() local
390 cmd.set_fd(shm_fd); in OnTracingSetup()
/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.c1404 static int config_shm(struct cras_audio_shm *shm, int shm_fd, size_t size) in config_shm() argument
1408 shm_fd, 0); in config_shm()
1652 static int client_attach_shm(struct cras_client *client, int shm_fd) in client_attach_shm() argument
1665 PROT_READ, MAP_SHARED, shm_fd, 0); in client_attach_shm()
1667 close(shm_fd); in client_attach_shm()