From: Ben Pfaff Date: Tue, 14 Dec 2004 01:34:56 +0000 (+0000) Subject: Comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a4295f76cbc154617e8093d7ad7851cd97c6748;p=pintos-anon Comment. --- diff --git a/src/lib/kernel/bitmap.c b/src/lib/kernel/bitmap.c index 95d6890..ea6ce5f 100644 --- a/src/lib/kernel/bitmap.c +++ b/src/lib/kernel/bitmap.c @@ -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