Make cross reference with text work

This commit is contained in:
Frans Kaashoek 2011-08-25 14:39:09 -04:00
parent 6f2327580f
commit 8a9b6dbd44

4
ide.c
View file

@ -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;