.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "BITMAP_PARSE" "9" "09 October 2005" "" "" .SH NAME bitmap_parse \- convert an ASCII hex string into a bitmap. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int bitmap_parse (const char __user * \fIubuf\fB, unsigned int \fIubuflen\fB, unsigned long * \fImaskp\fB, int \fInmaskbits\fB); \fR .SH "ARGUMENTS" .TP \fB\fIubuf\fB\fR -- undescribed -- .TP \fB\fIubuflen\fB\fR -- undescribed -- .TP \fB\fImaskp\fB\fR pointer to bitmap array that will contain result. .TP \fB\fInmaskbits\fB\fR size of bitmap, in bits. .SH "DESCRIPTION" .PP 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.