1BITMAP_FOLD(9)          Basic Kernel Library Functions          BITMAP_FOLD(9)
2
3
4

NAME

6       bitmap_fold - fold larger bitmap into smaller, modulo specified size
7

SYNOPSIS

9       void bitmap_fold(unsigned long * dst, const unsigned long * orig,
10                        int sz, int bits);
11

ARGUMENTS

13       dst
14           resulting smaller bitmap
15
16       orig
17           original larger bitmap
18
19       sz
20           specified size
21
22       bits
23           number of bits in each of these bitmaps
24

DESCRIPTION

26       For each bit oldbit in orig, set bit oldbit mod sz in dst. Clear all
27       other bits in dst. See further the comment and Example [2] for
28       bitmap_onto for why and how to use this.
29
31Kernel Hackers Manual 2.6.         June 2019                    BITMAP_FOLD(9)
Impressum