BITMAP_FIND_FREE_REGION
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
bitmap_find_free_region - find a contiguous aligned mem region
SYNOPSIS
"SYNOPSIS"
int bitmap_find_free_region (unsigned long * bitmap, int bits, int order);
ARGUMENTS
- bitmap
-
an array of unsigned longs corresponding to the bitmap
- bits
-
number of bits in the bitmap
- order
-
region size to find (size is actually 1<<order)
DESCRIPTION
This is used to allocate a memory region from a bitmap. The idea is
that the region has to be 1<<order sized and 1<<order aligned (this
makes the search algorithm much faster).
The region is marked as set bits in the bitmap if a free one is
found.
Returns either beginning of region or negative error
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:01:58 GMT, October 09, 2005