Home
last modified time | relevance | path

Searched refs:shm_addr (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/shmat/
Dshmat03.c47 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 …]
/external/autotest/client/tests/synctest/src/
Dsynctest.c32 char* shm_addr, *data_array; in main() local
60 shm_addr = shmat(shm_id, NULL, 0); in main()
61 if (!shm_addr) { /* operation failed. */ in main()
66 post_sync = (int*) shm_addr; in main()
143 if (shmdt(shm_addr) == -1) { in main()
/external/ltp/testcases/kernel/mem/mtest07/
Dshm_test.c135 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()