centos man page for __bitmap_parselist

Query: __bitmap_parselist

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

__BITMAP_PARSELIST(9)					  Basic Kernel Library Functions				     __BITMAP_PARSELIST(9)

NAME
__bitmap_parselist - convert list format ASCII string to bitmap
SYNOPSIS
int __bitmap_parselist(const char * buf, unsigned int buflen, int is_user, unsigned long * maskp, int nmaskbits);
ARGUMENTS
buf read 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 . 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
-EINVAL: second number in range smaller than first -EINVAL: invalid character in string -ERANGE: bit number specified too large for mask
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 __BITMAP_PARSELIST(9)
Related Man Pages
hwloc_bitmap_allbut(3) - debian
hwloc_bitmap_and(3) - debian
hwloc_bitmap_clr_range(3) - debian
hwloc_bitmap_dup(3) - debian
hwloc_bitmap_foreach_end(3) - debian
Similar Topics in the Unix Linux Community
Set hard block limit for user using quota
Best performance UNIX just for HOST Virtualization?
DB2 convert digits to binary format
Docker learning Phase-I
Please Welcome Dave Munro to the Moderator Team!