Lines Matching refs:chunk_ptr
152 sysvshm_chunk_head *chunk_ptr; in PHP_FUNCTION() local
187 chunk_ptr = (sysvshm_chunk_head *) shm_ptr; in PHP_FUNCTION()
188 if (strcmp((char*) &(chunk_ptr->magic), "PHP_SM") != 0) { in PHP_FUNCTION()
189 strcpy((char*) &(chunk_ptr->magic), "PHP_SM"); in PHP_FUNCTION()
190 chunk_ptr->start = sizeof(sysvshm_chunk_head); in PHP_FUNCTION()
191 chunk_ptr->end = chunk_ptr->start; in PHP_FUNCTION()
192 chunk_ptr->total = shm_size; in PHP_FUNCTION()
193 chunk_ptr->free = shm_size-chunk_ptr->end; in PHP_FUNCTION()
198 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION()
417 sysvshm_chunk *chunk_ptr, *next_chunk_ptr; in php_remove_shm_data() local
420 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
421 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
423 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()
424 ptr->free += chunk_ptr->next; in php_remove_shm_data()
425 ptr->end -= chunk_ptr->next; in php_remove_shm_data()
427 memmove(chunk_ptr, next_chunk_ptr, memcpy_len); in php_remove_shm_data()