/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/ |
1-1-buildonly.c | 10 * Test that the sys/shm.h header file exists. 13 #include <sys/shm.h>
|
12-2-buildonly.c | 13 #include <sys/shm.h>
|
4-1-buildonly.c | 13 #include <sys/shm.h>
|
7-1-buildonly.c | 13 #include <sys/shm.h>
|
7-2-buildonly.c | 13 #include <sys/shm.h>
|
7-3-buildonly.c | 13 #include <sys/shm.h>
|
7-4-buildonly.c | 13 #include <sys/shm.h>
|
2-1-buildonly.c | 13 #include <sys/shm.h>
|
2-2-buildonly.c | 13 #include <sys/shm.h>
|
3-1-buildonly.c | 13 #include <sys/shm.h>
|
10-1-buildonly.c | 15 #include <sys/shm.h>
|
12-3-buildonly.c | 15 #include <sys/shm.h>
|
8-1-buildonly.c | 15 #include <sys/shm.h>
|
9-1-buildonly.c | 15 #include <sys/shm.h>
|
11-1-buildonly.c | 15 #include <sys/shm.h>
|
5-1-buildonly.c | 14 #include <sys/shm.h>
|
/external/adhd/cras/src/common/ |
cras_shm.h | 19 /* Configuration of the shm area. 29 /* Structure that is shared as shm between client and server. 64 /* Structure that holds the config for and a pointer to the audio shm area. 67 * area - Acutal shm region that is shared. 75 static inline uint8_t *cras_shm_buff_for_idx(const struct cras_audio_shm *shm, 80 return shm->area->samples + shm->config.used_size * idx; 85 unsigned cras_shm_check_read_offset(const struct cras_audio_shm *shm, 91 if (offset > shm->config.used_size) 98 unsigned cras_shm_check_write_offset(const struct cras_audio_shm *shm, [all...] |
/external/perfetto/src/tracing/ipc/ |
posix_shared_memory_unittest.cc | 44 std::unique_ptr<SharedMemory> shm = local 46 void* const shm_start = shm->start(); 47 const size_t shm_size = shm->size(); 54 shm.reset(); 59 std::unique_ptr<PosixSharedMemory> shm = local 61 int fd = shm->fd(); 65 shm.reset(); 75 std::unique_ptr<PosixSharedMemory> shm = local 77 void* const shm_start = shm->start(); 78 const size_t shm_size = shm->size() [all...] |
/external/adhd/cras/src/tests/ |
cras_client_unittest.cc | 52 void InitShm(struct cras_audio_shm* shm) { 53 shm->area = static_cast<cras_audio_shm_area*>( 54 calloc(1, sizeof(*shm->area))); 55 cras_shm_set_frame_bytes(shm, 4); 56 cras_shm_set_used_size(shm, shm_writable_frames_ * 4); 57 memcpy(&shm->area->config, &shm->config, sizeof(shm->config)); 60 void FreeShm(struct cras_audio_shm* shm) { 61 if (shm->area) [all...] |
dev_io_stubs.cc | 26 ShmPtr shm(reinterpret_cast<cras_audio_shm_area*>(calloc(1, shm_size)), 28 shm->config.used_size = used_size; 29 shm->config.frame_bytes = frame_bytes; 30 shm->volume_scaler = 1.0; 31 return shm; 38 cras_audio_shm_area* shm) { 46 rstream->shm.area = shm; 47 rstream->shm.config = shm->config 70 ShmPtr shm = create_shm(cb_threshold); local [all...] |
/external/ltp/testcases/cve/ |
cve-2017-17053.c | 77 static struct shm_data *shm; variable in typeref:struct:shm_data 83 shm->segfaulted = 1; 84 shm->do_exit = 1; 102 shm = SAFE_MMAP(NULL, sizeof(struct shm_data), 109 SAFE_MUNMAP(shm, sizeof(struct shm_data)); 126 if (shm->do_exit) 145 shm->do_exit = 0; 146 shm->segfaulted = 0; 153 shm->do_exit = 1; 158 if (WIFEXITED(status) && shm->segfaulted == 0 && tst_taint_check() == 0 [all...] |
/external/adhd/cras/src/server/ |
cras_rstream.c | 22 /* Configure the shm area for the stream. */ 24 struct cras_audio_shm *shm, 30 if (shm->area != NULL) /* already setup */ 46 /* mmap shm. */ 47 shm->area = mmap(NULL, shm_info->length, 50 if (shm->area == (struct cras_audio_shm_area *)-1) { 55 cras_shm_set_volume_scaler(shm, 1.0); 57 cras_shm_set_frame_bytes(shm, frame_bytes); 58 shm->config.frame_bytes = frame_bytes; 59 cras_shm_set_used_size(shm, used_size) 418 struct cras_audio_shm *shm = cras_rstream_input_shm(rstream); local 427 struct cras_audio_shm *shm = cras_rstream_input_shm(rstream); local 442 const struct cras_audio_shm *shm = cras_rstream_output_shm(rstream); local 456 const struct cras_audio_shm *shm = cras_rstream_output_shm(rstream); local [all...] |
cras_rstream.h | 19 /* Holds identifiers for an shm segment. 20 * shm_fd - File descriptor shared with client to access shm. 21 * shm_name - Name of the shm area. 22 * length - Size of the shm region. 55 * shm - shared memory 65 * queued_frames - Cached value of the number of queued frames in shm. 82 struct cras_audio_shm shm; member in struct:cras_rstream 218 /* Gets the shm key used to find the outputshm region. */ 224 /* Gets the shm key used to find the input shm region. * 310 const struct cras_audio_shm *shm = cras_rstream_input_shm(rstream); local 316 const struct cras_audio_shm *shm = cras_rstream_input_shm(rstream); local [all...] |
/external/ltp/testcases/kernel/syscalls/ipc/lib/ |
ipcshm.h | 30 #include <sys/shm.h>
|
/external/mesa3d/src/mesa/drivers/x11/ |
glxheader.h | 35 # ifdef USE_XSHM /* was SHM */ 37 # include <sys/shm.h>
|