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

NAME

6       bitmap_scnlistprintf - convert bitmap to list format ASCII string
7

SYNOPSIS

9       int bitmap_scnlistprintf(char * buf, unsigned int buflen,
10                                const unsigned long * maskp, int nmaskbits);
11

ARGUMENTS

13       buf
14           byte buffer into which string is placed
15
16       buflen
17           reserved size of buf, in bytes
18
19       maskp
20           pointer to bitmap to convert
21
22       nmaskbits
23           size of bitmap, in bits
24

DESCRIPTION

26       Output format is a comma-separated list of decimal numbers and ranges.
27       Consecutively set bits are shown as two hyphen-separated decimal
28       numbers, the smallest and largest bit numbers set in the range. Output
29       format is compatible with the format accepted as input by
30       bitmap_parselist.
31
32       The return value is the number of characters which would be generated
33       for the given input, excluding the trailing ´\0´, as per ISO C99.
34
36Kernel Hackers Manual 2.6.         June 2019           BITMAP_SCNLISTPRINTF(9)
Impressum