table of contents
BITMAP_FROM_U32ARRAY(9) | Basic Kernel Library Functions | BITMAP_FROM_U32ARRAY(9) |
NAME¶
bitmap_from_u32array - copy the contents of a u32 array of bits to bitmap
SYNOPSIS¶
unsigned int bitmap_from_u32array(unsigned long * bitmap, unsigned int nbits, const u32 * buf, unsigned int nwords);
ARGUMENTS¶
unsigned long * bitmap
unsigned int nbits
const u32 * buf
unsigned int nwords
DESCRIPTION¶
copy min(nbits, 32*nwords) bits from buf to bitmap, remaining bits between nword and nbits in bitmap (if any) are cleared. In last word of bitmap, the bits beyond nbits (if any) are kept unchanged.
Return the number of bits effectively copied.
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.11 |