Skip to content

Commit a392d26

Browse files
Wolfram Sangdennisszhou
authored andcommitted
include/bitmap.h: add new functions to documentation
I found these functions only by chance although I was looking exactly for something like them. So, add them to the list of functions to make them more visible. Fixes: e837dfd ("bitmap: genericize percpu bitmap region iterators") Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Dennis Zhou <[email protected]>
1 parent 780d2a9 commit a392d26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/linux/bitmap.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
* bitmap_clear(dst, pos, nbits) Clear specified bit area
5252
* bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area
5353
* bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above
54+
* bitmap_next_clear_region(map, &start, &end, nbits) Find next clear region
55+
* bitmap_next_set_region(map, &start, &end, nbits) Find next set region
56+
* bitmap_for_each_clear_region(map, rs, re, start, end)
57+
* Iterate over all clear regions
58+
* bitmap_for_each_set_region(map, rs, re, start, end)
59+
* Iterate over all set regions
5460
* bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n
5561
* bitmap_shift_left(dst, src, n, nbits) *dst = *src << n
5662
* bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest

0 commit comments

Comments
 (0)