Scroll to navigation

BITMAP_PARSELIST_USE(9) Basic Kernel Library Functions BITMAP_PARSELIST_USE(9)

NAME

bitmap_parselist_user -

SYNOPSIS

int bitmap_parselist_user(const char __user * ubuf, unsigned int ulen, unsigned long * maskp, int nmaskbits);

ARGUMENTS

const char __user * ubuf

pointer to user buffer containing string.

unsigned int ulen

buffer size in bytes. If string is smaller than this then it must be terminated with a \0.

unsigned long * maskp

pointer to bitmap array that will contain result.

int nmaskbits

size of bitmap, in bits.

DESCRIPTION

Wrapper for bitmap_parselist, 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.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11