BITMAP_PARSE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

bitmap_parse - convert an ASCII hex string into a bitmap.  

SYNOPSIS

"SYNOPSIS"

int bitmap_parse (const char __user * ubuf, unsigned int ubuflen, unsigned long * maskp, int nmaskbits);  

ARGUMENTS

ubuf
-- undescribed --
ubuflen
-- undescribed --
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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:01:58 GMT, October 09, 2005