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