Changeset e456008 in mainline
- Timestamp:
- 2005-09-20T21:54:13Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fcacfb7
- Parents:
- c0a91d1
- Location:
- include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/mm/frame.h
rc0a91d1 re456008 38 38 #define FRAME_PANIC 2 /* panic on failure */ 39 39 40 struct frame_zone {41 link_t fz_link; /**< link to previous and next frame_zone */40 struct zone { 41 link_t link; /**< link to previous and next zone */ 42 42 43 43 spinlock_t lock; /**< this lock protects everything below */ … … 52 52 53 53 struct frame { 54 zone_t *zone; /**< host zone */ 54 55 count_t refcount; /**< when > 0, the frame is in busy list, otherwise the frame is in free list */ 55 56 link_t link; /**< link either to frame_zone free or busy list */ 56 57 }; 57 58 58 extern spinlock_t frame_zone_head_lock; /**< this lock protects frame_zone_head list */59 extern link_t frame_zone_head; /**< list of all frame_zone's in the system */59 extern spinlock_t zone_head_lock; /**< this lock protects zone_head list */ 60 extern link_t zone_head; /**< list of all zones in the system */ 60 61 61 62 extern count_t frames; … … 77 78 extern void frame_region_not_free(__address start, __address stop); 78 79 79 extern frame_zone_t *frame_zone_create(); 80 /* 81 * TODO: Implement the following functions. 82 */ 83 84 extern void zone_init(void); 85 extern zone_t *zone_create(__address start, size_t size, int flags); 86 extern void zone_attach(zone_t *zone); 87 88 /* 89 extern frame_t *frame_alloc(int flags); 90 extern void frame_free(frame_t *frame); 91 */ 92 extern void frame_initialize(frame_t *frame); 93 extern __address frame_get_address(frame_t *frame); 94 extern frame_t *frame_reference(frame_t *frame); 95 extern void frame_release(frame_t *frame); 96 80 97 #endif -
include/typedefs.h
rc0a91d1 re456008 64 64 typedef struct chunk chunk_t; 65 65 66 typedef struct frame_zone frame_zone_t;66 typedef struct zone zone_t; 67 67 typedef struct frame frame_t; 68 68
Note:
See TracChangeset
for help on using the changeset viewer.