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