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

source code of linux/include/linux/bitmap-str.h