Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/mtest07/
Dshm_test.c186 char *shmat_addr; /* address of the attached memory */ in shmat_rd_wr() local
207 if ((shmat_addr = shmat(shm_id, NULL, 0)) == (void *)-1) { in shmat_rd_wr()
208 rm_shared_mem(shm_id, shmat_addr, 0); in shmat_rd_wr()
211 getpid(), (long)shmat_addr); in shmat_rd_wr()
215 dprt("pid[%d]: do_shmat_shmadt(): content of memory shmat_addr = %s\n", getpid(), shmat_addr); in shmat_rd_wr()
219 getpid(), (long)shmat_addr); in shmat_rd_wr()
224 write_to_mem = shmat_addr; in shmat_rd_wr()
235 read_from_mem = shmat_addr; in shmat_rd_wr()
247 if (rm_shared_mem(shm_id, shmat_addr, 1) == -1) { in shmat_rd_wr()