Lines Matching refs:shm_id
32 $shm_id = shm_attach($SHMKEY, $MEMSIZE);
33 if ($shm_id === FALSE) {
38 echo "Success to attach shared memory : $shm_id.\n";
41 if (!shm_put_var($shm_id, 1, "Variable 1")) {
42 echo "Fail to put var 1 on shared memory $shm_id.\n";
44 shm_remove ($shm_id);
50 if (!shm_put_var($shm_id, 2, "Variable 2")) {
51 echo "Fail to put var 2 on shared memory $shm_id.\n";
53 shm_remove ($shm_id);
59 $var1 = shm_get_var ($shm_id, 1);
61 echo "Fail to retrieve Var 1 from Shared memory $shm_id, return value=$var1.\n";
67 $var2 = shm_get_var ($shm_id, 2);
69 echo "Fail to retrieve Var 2 from Shared memory $shm_id, return value=$var2.\n";
81 if (shm_remove ($shm_id)) {
84 echo "Fail to remove $shm_id shared memory from SysV.\n";