Changeset b43eaba0 in mainline for kernel/generic/src/mm/frame.c
- Timestamp:
- 2006-12-25T11:38:48Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66eb2c8
- Parents:
- b2e5e25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
rb2e5e25 rb43eaba0 84 84 count_t busy_count; /**< number of busy frame_t structures */ 85 85 86 buddy_system_t * 86 buddy_system_t *buddy_system; /**< buddy system for the zone */ 87 87 int flags; 88 88 } zone_t; … … 177 177 /** 178 178 * Try to find a zone where can we find the frame 179 * 179 180 * Assume interrupts are disabled. 181 180 182 * @param frame Frame number contained in zone 181 183 * @param pzone If not null, it is used as zone hint. Zone index 182 184 * is filled into the variable on success. 183 * @return Pointer to LOCKED zone containing frame 184 * 185 * Assume interrupts disable 185 * @return Pointer to locked zone containing frame 186 186 */ 187 187 static zone_t * find_zone_and_lock(pfn_t frame, int *pzone) … … 223 223 } 224 224 225 /** 226 * Find AND LOCK zone that can allocate order frames 227 * 228 * Assume interrupts are disabled!! 225 /** Find and lock zone that can allocate order frames. 226 * 227 * Assume interrupts are disabled. 229 228 * 230 229 * @param order Size (2^order) of free space we are trying to find … … 261 260 } 262 261 263 /************************** ******************/262 /**************************/ 264 263 /* Buddy system functions */ 264 /**************************/ 265 265 266 266 /** Buddy system find_block implementation … … 437 437 }; 438 438 439 /****************** *******************/439 /******************/ 440 440 /* Zone functions */ 441 /******************/ 441 442 442 443 /** Allocate frame in particular zone … … 535 536 * @param z2 Zone to merge 536 537 */ 537 538 538 static void _zone_merge(zone_t *z, zone_t *z1, zone_t *z2) 539 539 {
Note:
See TracChangeset
for help on using the changeset viewer.