What about a per-zone bitmap? That might make things like
page colouring easier to do and requires even less space.
Example colour checking code:
int has_colour(* mem_zone zone, unsigned long colour) {
if (zone->bitmap & 1 << colour)
return 1;
return 0;
}
Of course, this could be arch-specific, or made into a
nice/fast macro...
Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu