Rechercher une page de manuel
bitmap_parselist
Langue: en
Version: May 2009 (fedora - 06/07/09)
Section: 9 (Appels noyau Linux)
NAME
bitmap_parselist - convert list format ASCII string to bitmapSYNOPSIS
- int bitmap_parselist(const char * bp, unsigned long * maskp, int nmaskbits);
ARGUMENTS
bp
- read nul-terminated user string from this buffer
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
-EINVAL: second number in range smaller than first -EINVAL: invalid character in string -ERANGE: bit number specified too large for mask
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre