| 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_to_pagebuf(bool list, char *buf, const unsigned long *maskp, int nmaskbits); | 
|---|
| 9 | int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, int nmaskbits, | 
|---|
| 10 | loff_t off, size_t count); | 
|---|
| 11 | int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, int nmaskbits, | 
|---|
| 12 | loff_t off, size_t count); | 
|---|
| 13 | int bitmap_parse(const char *buf, unsigned int buflen, unsigned long *dst, int nbits); | 
|---|
| 14 | int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits); | 
|---|
| 15 | int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen, | 
|---|
| 16 | unsigned long *dst, int nbits); | 
|---|
| 17 |  | 
|---|
| 18 | #endif /* __LINUX_BITMAP_STR_H */ | 
|---|
| 19 |  | 
|---|