Home | History | Annotate | Download | only in kern

Lines Matching defs:mh

113 	struct malloc_header *mh;
139 mh = (void *)((char *)p + hdroffset);
140 mh->mh_size = allocsize - hdroffset;
142 mh->mh_rqsz = origsize;
144 mh++;
146 kasan_mark(mh, origsize, size, KASAN_MALLOC_REDZONE);
148 return mh;
154 struct malloc_header *mh;
156 mh = addr;
157 mh--;
159 kasan_mark(addr, mh->mh_size - sizeof(struct malloc_header),
160 mh->mh_size - sizeof(struct malloc_header), KASAN_MALLOC_REDZONE);
162 if (mh->mh_size >= PAGE_SIZE + sizeof(struct malloc_header)) {
164 mh->mh_size + PAGE_SIZE - sizeof(struct malloc_header),
167 mh->mh_size + PAGE_SIZE - sizeof(struct malloc_header));
169 kmsan_mark(mh, mh->mh_size, KMSAN_STATE_INITED);
170 kmem_intr_free(mh, mh->mh_size);
177 struct malloc_header *mh;
199 mh = curaddr;
200 mh--;
203 cursize = mh->mh_rqsz;
205 cursize = mh->mh_size - sizeof(struct malloc_header);