Lines Matching refs:chunk_ptr
156 sysvshm_chunk_head *chunk_ptr; in PHP_FUNCTION() local
191 chunk_ptr = (sysvshm_chunk_head *) shm_ptr; in PHP_FUNCTION()
192 if (strcmp((char*) &(chunk_ptr->magic), "PHP_SM") != 0) { in PHP_FUNCTION()
193 strcpy((char*) &(chunk_ptr->magic), "PHP_SM"); in PHP_FUNCTION()
194 chunk_ptr->start = sizeof(sysvshm_chunk_head); in PHP_FUNCTION()
195 chunk_ptr->end = chunk_ptr->start; in PHP_FUNCTION()
196 chunk_ptr->total = shm_size; in PHP_FUNCTION()
197 chunk_ptr->free = shm_size-chunk_ptr->end; in PHP_FUNCTION()
202 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION()
421 sysvshm_chunk *chunk_ptr, *next_chunk_ptr; in php_remove_shm_data() local
424 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
425 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
427 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()
428 ptr->free += chunk_ptr->next; in php_remove_shm_data()
429 ptr->end -= chunk_ptr->next; in php_remove_shm_data()
431 memmove(chunk_ptr, next_chunk_ptr, memcpy_len); in php_remove_shm_data()