1BITMAP_FROM_U32ARRAY(9) Basic Kernel Library Functions BITMAP_FROM_U32ARRAY(9)
2
3
4
6 bitmap_from_u32array - copy the contents of a u32 array of bits to
7 bitmap
8
10 unsigned int bitmap_from_u32array(unsigned long * bitmap,
11 unsigned int nbits, const u32 * buf,
12 unsigned int nwords);
13
15 bitmap
16 array of unsigned longs, the destination bitmap, non NULL
17
18 nbits
19 number of bits in bitmap
20
21 buf
22 array of u32 (in host byte order), the source bitmap, non NULL
23
24 nwords
25 number of u32 words in buf
26
28 copy min(nbits, 32*nwords) bits from buf to bitmap, remaining bits
29 between nword and nbits in bitmap (if any) are cleared. In last word of
30 bitmap, the bits beyond nbits (if any) are kept unchanged.
31
32 Return the number of bits effectively copied.
33
35Kernel Hackers Manual 3.10 June 2019 BITMAP_FROM_U32ARRAY(9)