1BITMAP_TO_U32ARRAY(9) Basic Kernel Library Functions BITMAP_TO_U32ARRAY(9)
2
3
4
6 bitmap_to_u32array - copy the contents of bitmap to a u32 array of bits
7
9 unsigned int bitmap_to_u32array(u32 * buf, unsigned int nwords,
10 const unsigned long * bitmap,
11 unsigned int nbits);
12
14 buf
15 array of u32 (in host byte order), the dest bitmap, non NULL
16
17 nwords
18 number of u32 words in buf
19
20 bitmap
21 array of unsigned longs, the source bitmap, non NULL
22
23 nbits
24 number of bits in bitmap
25
27 copy min(nbits, 32*nwords) bits from bitmap to buf. Remaining bits
28 after nbits in buf (if any) are cleared.
29
30 Return the number of bits effectively copied.
31
33Kernel Hackers Manual 3.10 June 2019 BITMAP_TO_U32ARRAY(9)