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