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.c57 static void *shm_addr; variable
66 if (shm_addr) in cleanup()
67 SAFE_SHMDT(shm_addr); in cleanup()
80 shm_addr = shmat(shm_id, ((void *)1), SHM_RND | SHM_REMAP); in run()
81 if (shm_addr == (void *)-1) { in run()
82 shm_addr = NULL; in run()
91 tst_res(TINFO, "Mapped shared memory to %p", shm_addr); in run()
93 if (!((size_t)shm_addr & (~0U << 16))) in run()
102 ((char *)shm_addr)[0] = 'P'; in run()
104 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.c127 char *shm_addr, /* address of shared mem seg to be removed */ in rm_shared_mem() argument
133 getpid(), shm_id, shm_addr, cmd); in rm_shared_mem()
141 if (shmdt((void *)shm_addr) == -1) { in rm_shared_mem()
142 dprt("pid[%d]:rm_shared_mem(): shmdt unable to detach addr = %#x\n", getpid(), shm_addr); in rm_shared_mem()