Comment.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 14 Dec 2004 01:34:56 +0000 (01:34 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 14 Dec 2004 01:34:56 +0000 (01:34 +0000)
src/lib/kernel/bitmap.c

index 95d689034617917f9cd23ef7b5423978fa774cec..ea6ce5f9f82103cbea2ad09004cfa602c888627d 100644 (file)
@@ -227,6 +227,7 @@ bitmap_scan (const struct bitmap *b, size_t start, size_t cnt, bool value)
    START that are all set to VALUE, flips them all to !VALUE,
    and returns the index of the first bit in the group.
    If there is no such group, returns BITMAP_ERROR.
+   If CNT is zero, returns 0.
    Bits are set atomically, but testing bits is not atomic with
    setting them. */
 size_t