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=b2c7a704c963f5379280ae336c117e549f40f207;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