---
name: "bitmap_parse_user"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bitmap_parse_user"
---

# bitmap\_parse\_user(9)

convert an ASCII hex string in a user buffer into a bitmap

## NAME

bitmap\_parse\_user - convert an ASCII hex string in a user buffer into a bitmap

## SYNOPSIS

**int bitmap\_parse\_user(const char \_\_user \*** *ubuf***, unsigned int** *ulen***, unsigned long \*** *maskp***, int** *nmaskbits***);**

## ARGUMENTS

*ubuf*

pointer to user buffer containing string.

*ulen*

buffer size in bytes. If string is smaller than this then it must be terminated with a \\0.

*maskp*

pointer to bitmap array that will contain result.

*nmaskbits*

size of bitmap, in bits.

## DESCRIPTION

Wrapper for **\_\_bitmap\_parse**, providing it with user buffer.

We cannot have this as an inline function in bitmap.h because it needs linux/uaccess.h to get the **access\_ok** declaration and this causes cyclic dependencies.

## COPYRIGHT
