VM: make mapping types explicit
[minix.git] / servers / pfs / buf.h
blobcd31f7e84e3e58123205c41d55d72b9326f20b1d
1 #ifndef __PFS_BUF_H__
2 #define __PFS_BUF_H__
4 /* Buffer (block) cache.
5 */
7 struct buf {
8 /* Data portion of the buffer. */
9 char b_data[PIPE_BUF]; /* ordinary user data */
11 /* Header portion of the buffer. */
12 struct buf *b_next; /* used to link all free bufs in a chain */
13 struct buf *b_prev; /* used to link all free bufs the other way */
14 ino_t b_num; /* inode number on minor device */
15 dev_t b_dev; /* major | minor device where block resides */
16 int b_bytes; /* Number of bytes allocated in bp */
17 int b_count; /* Number of users of this buffer */
20 /* A block is free if b_dev == NO_DEV. */
23 EXTERN struct buf *front; /* points to least recently used free block */
24 EXTERN struct buf *rear; /* points to most recently used free block */
26 #endif