__bitmap_parse(9) centos man page | unix.com

Man Page: __bitmap_parse

Operating Environment: centos

Section: 9

__BITMAP_PARSE(9)					  Basic Kernel Library Functions					 __BITMAP_PARSE(9)

NAME
__bitmap_parse - convert an ASCII hex string into a bitmap.
SYNOPSIS
int __bitmap_parse(const char * buf, unsigned int buflen, int is_user, unsigned long * maskp, int nmaskbits);
ARGUMENTS
buf pointer to buffer containing string. 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 pointer to bitmap array that will contain result. nmaskbits size of bitmap, in bits.
DESCRIPTION
Commas group hex digits into chunks. Each chunk defines exactly 32 bits of the resultant bitmask. No chunk may specify a value larger than 32 bits (-EOVERFLOW), and if a chunk specifies a smaller value then leading 0-bits are prepended. -EINVAL is returned for illegal characters and for grouping errors such as "1,,5", ",44", "," and "". Leading and trailing whitespace accepted, but not embedded whitespace.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 __BITMAP_PARSE(9)
Related Man Pages
hwloc_bitmap_allbut(3) - debian
hwloc_bitmap_alloc_full(3) - debian
hwloc_bitmap_and(3) - debian
hwloc_bitmap_andnot(3) - debian
slurm::bitstr(3pm) - debian
Similar Topics in the Unix Linux Community
Weird 'find' results
How to increment version inside a file?
Tar Command
Controlling user input
Please Welcome Dave Munro to the Moderator Team!