Searched refs:shmat_addr (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/kernel/mem/mtest07/ |
D | shm_test.c | 180 char *shmat_addr; /* address of the attached memory */ in shmat_rd_wr() local 202 if ((shmat_addr = shmat(shm_id, NULL, 0)) == (void *)-1) { in shmat_rd_wr() 203 rm_shared_mem(shm_id, shmat_addr, 0); in shmat_rd_wr() 206 getpid(), (long)shmat_addr); in shmat_rd_wr() 210 dprt("pid[%d]: do_shmat_shmadt(): content of memory shmat_addr = %s\n", getpid(), shmat_addr); in shmat_rd_wr() 214 getpid(), (long)shmat_addr); in shmat_rd_wr() 219 write_to_mem = shmat_addr; in shmat_rd_wr() 230 read_from_mem = shmat_addr; in shmat_rd_wr() 242 if (rm_shared_mem(shm_id, shmat_addr, 1) == -1) { in shmat_rd_wr()
|