diff options
Diffstat (limited to 'kernel/buf.h')
-rw-r--r-- | kernel/buf.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/buf.h b/kernel/buf.h new file mode 100644 index 0000000..4a3a39d --- /dev/null +++ b/kernel/buf.h @@ -0,0 +1,13 @@ +struct buf { + int valid; // has data been read from disk? + int disk; // does disk "own" buf? + uint dev; + uint blockno; + struct sleeplock lock; + uint refcnt; + struct buf *prev; // LRU cache list + struct buf *next; + struct buf *qnext; // disk queue + uchar data[BSIZE]; +}; + |