Lines Matching refs:chunk_ptr
133 sysvshm_chunk_head *chunk_ptr; in PHP_FUNCTION() local
168 chunk_ptr = (sysvshm_chunk_head *) shm_ptr; in PHP_FUNCTION()
169 if (strcmp((char*) &(chunk_ptr->magic), "PHP_SM") != 0) { in PHP_FUNCTION()
170 strcpy((char*) &(chunk_ptr->magic), "PHP_SM"); in PHP_FUNCTION()
171 chunk_ptr->start = sizeof(sysvshm_chunk_head); in PHP_FUNCTION()
172 chunk_ptr->end = chunk_ptr->start; in PHP_FUNCTION()
173 chunk_ptr->total = shm_size; in PHP_FUNCTION()
174 chunk_ptr->free = shm_size-chunk_ptr->end; in PHP_FUNCTION()
183 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION()
430 sysvshm_chunk *chunk_ptr, *next_chunk_ptr; in php_remove_shm_data() local
435 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
436 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
438 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()
439 ptr->free += chunk_ptr->next; in php_remove_shm_data()
440 ptr->end -= chunk_ptr->next; in php_remove_shm_data()
442 memmove(chunk_ptr, next_chunk_ptr, memcpy_len); in php_remove_shm_data()