projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28166ea
)
Comment.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 14 Dec 2004 01:34:56 +0000
(
01:34
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 14 Dec 2004 01:34:56 +0000
(
01:34
+0000)
src/lib/kernel/bitmap.c
patch
|
blob
|
history
diff --git
a/src/lib/kernel/bitmap.c
b/src/lib/kernel/bitmap.c
index 95d689034617917f9cd23ef7b5423978fa774cec..ea6ce5f9f82103cbea2ad09004cfa602c888627d 100644
(file)
--- 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