bitmap_print_to_pagebuf(9)

bitmap_print_to_pagebuf9

Convert bitmap to list or hex format ascii string

Usage

int bitmap_print_to_pagebuf(bool list, char * buf, const unsigned long * maskp, int nmaskbits);

Arguments

list

indicates whether the bitmap must be list

buf

page aligned buffer into which string is placed

maskp

pointer to bitmap to convert

nmaskbits

size of bitmap, in bits

Overview

Output format is a comma-separated list of decimal numbers and ranges if list is specified or hex digits grouped into comma-separated sets of 8 digits/set. Returns the number of characters written to buf.

It is assumed that buf is a pointer into a PAGE_SIZE area and that sufficient storage remains at buf to accommodate the bitmap_print_to_pagebuf output.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.