New field b_biodone_chain to support nested b_iodone's.

This commit is contained in:
Bruce Evans 1995-02-18 21:12:33 +00:00
parent c0577faf0c
commit 9d2ccc8e66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6549
2 changed files with 30 additions and 2 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.7 (Berkeley) 1/21/94
* $Id: buf.h,v 1.10 1994/10/18 06:55:57 davidg Exp $
* $Id: buf.h,v 1.11 1995/01/09 16:05:12 davidg Exp $
*/
#ifndef _SYS_BUF_H_
@ -45,6 +45,18 @@
#define NOLIST ((struct buf *)0x87654321)
struct buf;
struct iodone_chain {
long ic_prev_flags;
void (*ic_prev_iodone) __P((struct buf *));
void *ic_prev_iodone_chain;
struct {
long ia_long;
void *ia_ptr;
} ic_args[5];
};
/*
* The buffer header describes an I/O operation in the kernel.
*/
@ -69,6 +81,8 @@ struct buf {
daddr_t b_blkno; /* Underlying physical block number. */
/* Function to call upon completion. */
void (*b_iodone) __P((struct buf *));
/* For nested b_iodone's. */
struct iodone_chain *b_iodone_chain;
struct vnode *b_vp; /* Device vnode. */
int b_pfcent; /* Center page when swapping cluster. */
int b_dirtyoff; /* Offset in buffer of dirty region. */

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.7 (Berkeley) 1/21/94
* $Id: buf.h,v 1.10 1994/10/18 06:55:57 davidg Exp $
* $Id: buf.h,v 1.11 1995/01/09 16:05:12 davidg Exp $
*/
#ifndef _SYS_BUF_H_
@ -45,6 +45,18 @@
#define NOLIST ((struct buf *)0x87654321)
struct buf;
struct iodone_chain {
long ic_prev_flags;
void (*ic_prev_iodone) __P((struct buf *));
void *ic_prev_iodone_chain;
struct {
long ia_long;
void *ia_ptr;
} ic_args[5];
};
/*
* The buffer header describes an I/O operation in the kernel.
*/
@ -69,6 +81,8 @@ struct buf {
daddr_t b_blkno; /* Underlying physical block number. */
/* Function to call upon completion. */
void (*b_iodone) __P((struct buf *));
/* For nested b_iodone's. */
struct iodone_chain *b_iodone_chain;
struct vnode *b_vp; /* Device vnode. */
int b_pfcent; /* Center page when swapping cluster. */
int b_dirtyoff; /* Offset in buffer of dirty region. */