Rev 373 | Rev 430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 373 | Rev 374 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | }; |
50 | }; |
51 | 51 | ||
52 | struct frame { |
52 | struct frame { |
53 | count_t refcount; /**< when == 0, the frame is in free list */ |
53 | count_t refcount; /**< when == 0, the frame is in free list */ |
54 | link_t link; /**< link to zone free list when refcount == 0 */ |
54 | link_t link; /**< link to zone free list when refcount == 0 */ |
55 | } __attribute__ ((packed)); |
55 | }; |
56 | 56 | ||
57 | extern spinlock_t zone_head_lock; /**< this lock protects zone_head list */ |
57 | extern spinlock_t zone_head_lock; /**< this lock protects zone_head list */ |
58 | extern link_t zone_head; /**< list of all zones in the system */ |
58 | extern link_t zone_head; /**< list of all zones in the system */ |
59 | 59 | ||
60 | extern void zone_init(void); |
60 | extern void zone_init(void); |