at commit 2f93bcb3

1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_BITMAP_STR_H
3 #define __LINUX_BITMAP_STR_H
4
5 #include <linux/types.h>
6
7 int bitmap_parse_user(const char __user *ubuf, unsigned int ulen, unsigned long *dst, int nbits);
8 int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, int nmaskbits,
9 loff_t off, size_t count);
10 int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, int nmaskbits,
11 loff_t off, size_t count);
12 int bitmap_parse(const char *buf, unsigned int buflen, unsigned long *dst, int nbits);
13 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits);
14 int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
15 unsigned long *dst, int nbits);
16
17 #endif /* __LINUX_BITMAP_STR_H */