1BITMAP_PARSE_USER(9)    Basic Kernel Library Functions    BITMAP_PARSE_USER(9)
2
3
4

NAME

6       bitmap_parse_user - convert an ASCII hex string in a user buffer into a
7       bitmap
8

SYNOPSIS

10       int bitmap_parse_user(const char __user * ubuf, unsigned int ulen,
11                             unsigned long * maskp, int nmaskbits);
12

ARGUMENTS

14       ubuf
15           pointer to user buffer containing string.
16
17       ulen
18           buffer size in bytes. If string is smaller than this then it must
19           be terminated with a \0.
20
21       maskp
22           pointer to bitmap array that will contain result.
23
24       nmaskbits
25           size of bitmap, in bits.
26

DESCRIPTION

28       Wrapper for __bitmap_parse, providing it with user buffer.
29
30       We cannot have this as an inline function in bitmap.h because it needs
31       linux/uaccess.h to get the access_ok declaration and this causes cyclic
32       dependencies.
33
35Kernel Hackers Manual 3.10         June 2019              BITMAP_PARSE_USER(9)
Impressum