table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
| __BITMAP_PARSELIST(9) | Basic Kernel Library Functions | __BITMAP_PARSELIST(9) |
NAME¶
__bitmap_parselist - convert list format ASCII string to bitmapSYNOPSIS¶
int
__bitmap_parselist(const char * buf,
unsigned int buflen, int is_user,
unsigned long * maskp,
int nmaskbits);
ARGUMENTS¶
bufread nul-terminated user string from this
buffer
buflen
buffer size in bytes. If string is smaller
than this then it must be terminated with a \0.
is_user
location of buffer, 0 indicates kernel
space
maskp
write resulting mask here
nmaskbits
number of bits in mask to be written
DESCRIPTION¶
Input 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. Returns 0 on success, -errno on invalid input strings.ERROR VALUES¶
COPYRIGHT¶
| February 2017 | Kernel Hackers Manual 3.16 |