Searched refs:shm_addr (Results 1 – 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
D | shmat03.c | 47 static void *shm_addr; variable 56 if (shm_addr) in cleanup() 57 SAFE_SHMDT(shm_addr); in cleanup() 70 shm_addr = shmat(shm_id, ((void *)1), SHM_RND | SHM_REMAP); in run() 71 if (shm_addr == (void *)-1) { in run() 72 shm_addr = NULL; in run() 81 tst_res(TINFO, "Mapped shared memory to %p", shm_addr); in run() 83 if (!((size_t)shm_addr & (~0U << 16))) in run() 92 ((char *)shm_addr)[0] = 'P'; in run() 94 SAFE_SHMDT(shm_addr); in run() [all …]
|
/third_party/ltp/testcases/kernel/mem/mtest07/ |
D | shm_test.c | 135 char *shm_addr, /* address of shared mem seg to be removed */ in rm_shared_mem() argument 141 getpid(), shm_id, shm_addr, cmd); in rm_shared_mem() 149 if (shmdt((void *)shm_addr) == -1) { in rm_shared_mem() 150 dprt("pid[%d]:rm_shared_mem(): shmdt unable to detach addr = %#x\n", getpid(), shm_addr); in rm_shared_mem()
|
/third_party/openssl/providers/implementations/rands/seeding/ |
D | rand_unix.c | 421 static void *shm_addr; variable 425 shmdt(shm_addr); in cleanup_shm() 491 shm_addr = shmat(shm_id, NULL, SHM_RDONLY); in wait_random_seeded() 492 if (shm_addr != (void *)-1) in wait_random_seeded()
|