tag | line | file | source code |
bdir | 177 | lib/malloc.c | struct _bucket_dir *bdir; |
bdir | 190 | lib/malloc.c | bdir = bucket_dir; |
bdir | 191 | lib/malloc.c | for (bdir = bucket_dir ; bdir->size < len ; bdir++) { |
bdir | 192 | lib/malloc.c | if (!bdir->size) |
bdir | 201 | lib/malloc.c | for (bdesc = bdir->chain; bdesc != NULL; bdesc = bdesc->next) |
bdir | 237 | lib/malloc.c | bdesc->bucket_size = bdir->size; |
bdir | 241 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 0 ; i--) { |
bdir | 246 | lib/malloc.c | he = (struct hdr_end *)(page+(bdir->size-sizeof(struct hdr_end))); |
bdir | 250 | lib/malloc.c | hd->size = bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end); |
bdir | 255 | lib/malloc.c | *((void **) (hd+1)) = (i==1) ? NULL : (void *)(page + bdir->size); |
bdir | 257 | lib/malloc.c | *((void **) page) = (i==1) ? NULL : (void *)(page + bdir->size); |
bdir | 259 | lib/malloc.c | page += bdir->size; |
bdir | 266 | lib/malloc.c | bdesc->next = bdir->chain; /* OK, link it in! */ |
bdir | 267 | lib/malloc.c | bdir->chain = bdesc; |
bdir | 292 | lib/malloc.c | if(len > hd->size || len > bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end)) { |
bdir | 294 | lib/malloc.c | hd->size,bdir->size,len,hd->file,hd->line,deb_file,deb_line); |
bdir | 387 | lib/malloc.c | struct _bucket_dir *bdir; |
bdir | 426 | lib/malloc.c | for (bdir = bucket_dir; bdir->size; bdir++) { |
bdir | 429 | lib/malloc.c | if (bdir->size >= size) { |
bdir | 437 | lib/malloc.c | for (bdesc = bdir->chain; bdesc; bdesc = bdesc->next) { |
bdir | 467 | lib/malloc.c | hd->size = bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end); |
bdir | 486 | lib/malloc.c | (!prev && (bdir->chain != bdesc))) |
bdir | 487 | lib/malloc.c | for (prev = bdir->chain; prev; prev = prev->next) |
bdir | 493 | lib/malloc.c | if (bdir->chain != bdesc) |
bdir | 495 | lib/malloc.c | bdir->chain = bdesc->next; |
bdir | 512 | lib/malloc.c | struct _bucket_dir *bdir; |
bdir | 517 | lib/malloc.c | for (bdir = bucket_dir; bdir->size; bdir++) { |
bdir | 518 | lib/malloc.c | for (bdesc = bdir->chain; bdesc; bdesc = bdesc->next) { |
bdir | 520 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 0 ; i--) { |
bdir | 532 | lib/malloc.c | page += bdir->size; |