Source to include/abc.h


0001  #ifndef ABC_H
0002  #define ABC_H
0003  /*
0004   * abc.h
0005   *	Definitions for the Asynchronous Buffer Cache
0006   */
0007  #include <sys/types.h>
0008  
0009  /*
0010   * Types unique to ABC
0011   */
0012  typedef unsigned long daddr_t;
0013  
0014  /*
0015   * Flags to find_buf()
0016   */
0017  #define ABC_FILL (0x01)		/* Fill from disk? */
0018  #define ABC_BG (0x02)		/* Fill in background? */
0019  
0020  /*
0021   * Routines for accessing an ABC buf
0022   */
0023  extern struct buf *find_buf(daddr_t, uint, int);
0024  extern int resize_buf(daddr_t, uint, int);
0025  extern void *index_buf(struct buf *, uint, uint),
0026  	init_buf(port_t, int),
0027  	dirty_buf(struct buf *, void *),
0028  	lock_buf(struct buf *),
0029  	unlock_buf(struct buf *),
0030  	sync_buf(struct buf *),
0031  	inval_buf(daddr_t, uint),
0032  	sync_bufs(void *);
0033  
0034  #endif /* ABC_H */