Lines Matching refs:malloc_header
97 struct malloc_header { struct
113 struct malloc_header *mh; in kern_malloc() argument
123 hdroffset = PAGE_SIZE - sizeof(struct malloc_header); in kern_malloc()
125 allocsize = sizeof(struct malloc_header) + size; in kern_malloc()
154 struct malloc_header *mh; in kern_free()
159 kasan_mark(addr, mh->mh_size - sizeof(struct malloc_header), in kern_free()
160 mh->mh_size - sizeof(struct malloc_header), KASAN_MALLOC_REDZONE); in kern_free()
162 if (mh->mh_size >= PAGE_SIZE + sizeof(struct malloc_header)) { in kern_free()
164 mh->mh_size + PAGE_SIZE - sizeof(struct malloc_header), in kern_free()
167 mh->mh_size + PAGE_SIZE - sizeof(struct malloc_header)); in kern_free()
177 struct malloc_header *mh; in kern_realloc()
205 cursize = mh->mh_size - sizeof(struct malloc_header); in kern_realloc()