bitmap_parse_user — convert an ASCII hex string in a user buffer into a bitmap
int bitmap_parse_user ( | const char __user * ubuf, |
| unsigned int ulen, | |
| unsigned long * maskp, | |
int nmaskbits); |
ubufpointer to user buffer containing string.
ulenbuffer size in bytes. If string is smaller than this then it must be terminated with a \0.
maskppointer to bitmap array that will contain result.
nmaskbitssize of bitmap, in bits.
Wrapper for __bitmap_parse, providing it with user buffer.
We cannot have this as an inline function in bitmap.h because it needs
linux/uaccess.h to get the access_ok declaration and this causes
cyclic dependencies.