Lines Matching refs:memory
2 General semaphore and shared memory test
11 $MEMSIZE = 512; // size of shared memory to allocate
13 $SHMKEY = ftok(__FILE__, 'Q'); // Shared memory key
34 echo "Fail to attach shared memory.\n";
38 echo "Success to attach shared memory : $shm_id.\n";
42 echo "Fail to put var 1 on shared memory $shm_id.\n";
47 echo "Write var1 to shared memory.\n";
51 echo "Fail to put var 2 on shared memory $shm_id.\n";
56 echo "Write var2 to shared memory.\n";
61 echo "Fail to retrieve Var 1 from Shared memory $shm_id, return value=$var1.\n";
69 echo "Fail to retrieve Var 2 from Shared memory $shm_id, return value=$var2.\n";
80 // remove shared memory segmant from SysV
82 echo "Shared memory successfully removed from SysV.\n";
84 echo "Fail to remove $shm_id shared memory from SysV.\n";
104 Success to attach shared memory : %s.
105 Write var1 to shared memory.
106 Write var2 to shared memory.
110 Shared memory successfully removed from SysV.