Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/buf.h
Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | |||||
#define GB_NOSPARSE 0x0040 /* Do not instantiate holes */ | #define GB_NOSPARSE 0x0040 /* Do not instantiate holes */ | ||||
#define GB_CVTENXIO 0x0080 /* Convert errors to ENXIO */ | #define GB_CVTENXIO 0x0080 /* Convert errors to ENXIO */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
extern int nbuf; /* The number of buffer headers */ | extern int nbuf; /* The number of buffer headers */ | ||||
extern u_long maxswzone; /* Max KVA for swap structures */ | extern u_long maxswzone; /* Max KVA for swap structures */ | ||||
extern u_long maxbcache; /* Max KVA for buffer cache */ | extern u_long maxbcache; /* Max KVA for buffer cache */ | ||||
extern int maxbcachebuf; /* Max buffer cache block size */ | extern int maxbcachebuf; /* Max buffer cache block size */ | ||||
extern long runningbufspace; | extern long runningbufspace; | ||||
asomers: Odd place for a blank line. | |||||
extern long hibufspace; | extern long hibufspace; | ||||
extern int dirtybufthresh; | extern int dirtybufthresh; | ||||
extern int bdwriteskip; | extern int bdwriteskip; | ||||
extern int dirtybufferflushes; | extern int dirtybufferflushes; | ||||
extern int altbufferflushes; | extern int altbufferflushes; | ||||
extern int nswbuf; /* Number of swap I/O buffer headers. */ | extern int nswbuf; /* Number of swap I/O buffer headers. */ | ||||
extern caddr_t unmapped_buf; /* Data address for unmapped buffers. */ | extern caddr_t unmapped_buf; /* Data address for unmapped buffers. */ | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
int bufwait(struct buf *); | int bufwait(struct buf *); | ||||
int bufwrite(struct buf *); | int bufwrite(struct buf *); | ||||
void bufdone(struct buf *); | void bufdone(struct buf *); | ||||
void bd_speedup(void); | void bd_speedup(void); | ||||
extern uma_zone_t pbuf_zone; | extern uma_zone_t pbuf_zone; | ||||
uma_zone_t pbuf_zsecond_create(const char *name, int max); | uma_zone_t pbuf_zsecond_create(const char *name, int max); | ||||
struct vn_clusterw; | |||||
void cluster_init_vn(struct vn_clusterw *vnc); | |||||
int cluster_read(struct vnode *, u_quad_t, daddr_t, long, | int cluster_read(struct vnode *, u_quad_t, daddr_t, long, | ||||
struct ucred *, long, int, int, struct buf **); | struct ucred *, long, int, int, struct buf **); | ||||
int cluster_wbuild(struct vnode *, long, daddr_t, int, int); | int cluster_wbuild(struct vnode *, long, daddr_t, int, int); | ||||
void cluster_write(struct vnode *, struct buf *, u_quad_t, int, int); | void cluster_write(struct vnode *, struct vn_clusterw *, struct buf *, | ||||
u_quad_t, int, int); | |||||
void vfs_bio_brelse(struct buf *bp, int ioflags); | void vfs_bio_brelse(struct buf *bp, int ioflags); | ||||
void vfs_bio_bzero_buf(struct buf *bp, int base, int size); | void vfs_bio_bzero_buf(struct buf *bp, int base, int size); | ||||
void vfs_bio_clrbuf(struct buf *); | void vfs_bio_clrbuf(struct buf *); | ||||
void vfs_bio_set_flags(struct buf *bp, int ioflags); | void vfs_bio_set_flags(struct buf *bp, int ioflags); | ||||
void vfs_bio_set_valid(struct buf *, int base, int size); | void vfs_bio_set_valid(struct buf *, int base, int size); | ||||
void vfs_busy_pages(struct buf *, int clear_modify); | void vfs_busy_pages(struct buf *, int clear_modify); | ||||
void vfs_unbusy_pages(struct buf *); | void vfs_unbusy_pages(struct buf *); | ||||
int vmapbuf(struct buf *, void *, size_t, int); | int vmapbuf(struct buf *, void *, size_t, int); | ||||
Show All 21 Lines |
Odd place for a blank line.