Add memory region bitmap implementations
authorJames Bottomley <jejb@mulgrave.(none)>
Wed, 30 Jun 2004 16:08:15 +0000 (11:08 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Wed, 30 Jun 2004 16:08:15 +0000 (11:08 -0500)
commit29ad27a5c803f50b6d9129d54871f4887a71f8f9
tree1409f7340d7139e00cb269a6a868920dd10380ae
parent6b1a96a1f33a04958f8cad140868f28143242c9a
Add memory region bitmap implementations

These APIs deal with bitmaps representing contiguous
memory regions.  The idea is to set, free and find
a contiguous area.

For ease of implementation (as well as to conform
to the standard requirements), the bitmaps always
return n aligned n length regions.  The implementation
is also limited to BITS_PER_LONG contiguous regions.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
include/linux/bitmap.h
lib/bitmap.c