BITMAP_SCNLISTPRINTF(9) Basic Kernel Library Functions BITMAP_SCNLISTPRINTF(9)NAMEbitmap_scnlistprintf - convert bitmap to list format ASCII string
int bitmap_scnlistprintf(char * buf, unsigned int buflen,
const unsigned long * maskp, int nmaskbits);
byte buffer into which string is placed
reserved size of buf, in bytes
pointer to bitmap to convert
size of bitmap, in bits
Output format is a comma-separated list of decimal numbers and ranges.
Consecutively set bits are shown as two hyphen-separated decimal
numbers, the smallest and largest bit numbers set in the range. Output
format is compatible with the format accepted as input by
The return value is the number of characters which were written to *buf
excluding the trailing '\0', as per ISO C99's scnprintf.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 BITMAP_SCNLISTPRINTF(9)