Subversion Repositories HelenOS-historic

Rev

Rev 676 | Rev 683 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 676 Rev 677
Line 481... Line 481...
481
    frame_t * frame;
481
    frame_t * frame;
482
    frame = list_get_instance(block, frame_t, buddy_link);
482
    frame = list_get_instance(block, frame_t, buddy_link);
483
    frame->refcount = 1;
483
    frame->refcount = 1;
484
}
484
}
485
 
485
 
-
 
486
/** Prints list of zones
486
 
487
 *
-
 
488
 */
487
void zone_print_list(void) {
489
void zone_print_list(void) {
488
    zone_t *zone = NULL;
490
    zone_t *zone = NULL;
489
    link_t *cur;
491
    link_t *cur;
490
    index_t i = 0;
492
    index_t i = 0;
491
    printf("No.\tBase address\tFree Frames\tBusy Frames\n");
493
    printf("No.\tBase address\tFree Frames\tBusy Frames\n");
Line 495... Line 497...
495
        printf("%d\t%L\t%d\t\t%d\n",i++,zone->base, zone->free_count, zone->busy_count);
497
        printf("%d\t%L\t%d\t\t%d\n",i++,zone->base, zone->free_count, zone->busy_count);
496
    }
498
    }
497
 
499
 
498
}
500
}
499
 
501
 
-
 
502
/** Prints zone details
-
 
503
 *
-
 
504
 * @param zone_index Zone order in zones list (0 is the first zone)
-
 
505
 */
500
void zone_print_one(index_t zone_index) {
506
void zone_print_one(index_t zone_index) {
501
    zone_t *zone = NULL;
507
    zone_t *zone = NULL;
502
    link_t *cur;
508
    link_t *cur;
503
    index_t i = 0;
509
    index_t i = 0;
504
   
510