summaryrefslogtreecommitdiff
path: root/ide.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-08-25 14:39:09 -0400
committerFrans Kaashoek <[email protected]>2011-08-25 14:39:09 -0400
commit8a9b6dbd4468f6312f1d07226a623879f970bd4b (patch)
tree24932f251443e6b1c283dfe949506d852b631cdb /ide.c
parent6f2327580fe9a5f5b093814126fe7ffc02345407 (diff)
downloadxv6-labs-8a9b6dbd4468f6312f1d07226a623879f970bd4b.tar.gz
xv6-labs-8a9b6dbd4468f6312f1d07226a623879f970bd4b.tar.bz2
xv6-labs-8a9b6dbd4468f6312f1d07226a623879f970bd4b.zip
Make cross reference with text work
Diffstat (limited to 'ide.c')
-rw-r--r--ide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide.c b/ide.c
index 054bb76..4165831 100644
--- a/ide.c
+++ b/ide.c
@@ -134,11 +134,11 @@ iderw(struct buf *b)
if(b->dev != 0 && !havedisk1)
panic("iderw: ide disk 1 not present");
- acquire(&idelock);
+ acquire(&idelock); // DOC:acquire-lock
// Append b to idequeue.
b->qnext = 0;
- for(pp=&idequeue; *pp; pp=&(*pp)->qnext)
+ for(pp=&idequeue; *pp; pp=&(*pp)->qnext) // DOC:insert-queue
;
*pp = b;