FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include "opt_geom.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bio.h>
#include <sys/conf.h>
#include <sys/disk.h>
#include <sys/sysctl.h>
#include <geom/geom_disk.h>
Go to the source code of this file.
Functions | |
__FBSDID ("$FreeBSD$") | |
SYSCTL_INT (_debug, OID_AUTO, bioq_batchsize, CTLFLAG_RW, &bioq_batchsize, 0, "BIOQ batch size") | |
void | disk_err (struct bio *bp, const char *what, int blkdone, int nl) |
void | bioq_init (struct bio_queue_head *head) |
void | bioq_remove (struct bio_queue_head *head, struct bio *bp) |
void | bioq_flush (struct bio_queue_head *head, struct devstat *stp, int error) |
void | bioq_insert_head (struct bio_queue_head *head, struct bio *bp) |
void | bioq_insert_tail (struct bio_queue_head *head, struct bio *bp) |
struct bio * | bioq_first (struct bio_queue_head *head) |
struct bio * | bioq_takefirst (struct bio_queue_head *head) |
static uoff_t | bioq_bio_key (struct bio_queue_head *head, struct bio *bp) |
void | bioq_disksort (struct bio_queue_head *head, struct bio *bp) |
Variables | |
static int | bioq_batchsize = 128 |
__FBSDID | ( | "$FreeBSD$" | ) |
|
inlinestatic |
Definition at line 235 of file subr_disk.c.
Referenced by bioq_disksort().
void bioq_disksort | ( | struct bio_queue_head * | head, |
struct bio * | bp | ||
) |
Definition at line 249 of file subr_disk.c.
References bioq_batchsize, bioq_bio_key(), and bioq_insert_tail().
struct bio * bioq_first | ( | struct bio_queue_head * | head | ) |
Definition at line 212 of file subr_disk.c.
void bioq_flush | ( | struct bio_queue_head * | head, |
struct devstat * | stp, | ||
int | error | ||
) |
Definition at line 181 of file subr_disk.c.
References biofinish(), and bioq_takefirst().
void bioq_init | ( | struct bio_queue_head * | head | ) |
Definition at line 154 of file subr_disk.c.
void bioq_insert_head | ( | struct bio_queue_head * | head, |
struct bio * | bp | ||
) |
Definition at line 190 of file subr_disk.c.
void bioq_insert_tail | ( | struct bio_queue_head * | head, |
struct bio * | bp | ||
) |
Definition at line 201 of file subr_disk.c.
Referenced by bioq_disksort().
void bioq_remove | ( | struct bio_queue_head * | head, |
struct bio * | bp | ||
) |
Definition at line 165 of file subr_disk.c.
Referenced by bioq_takefirst().
struct bio * bioq_takefirst | ( | struct bio_queue_head * | head | ) |
Definition at line 219 of file subr_disk.c.
References bioq_remove().
Referenced by bioq_flush().
void disk_err | ( | struct bio * | bp, |
const char * | what, | ||
int | blkdone, | ||
int | nl | ||
) |
Definition at line 41 of file subr_disk.c.
References devtoname(), and printf().
SYSCTL_INT | ( | _debug | , |
OID_AUTO | , | ||
bioq_batchsize | , | ||
CTLFLAG_RW | , | ||
& | bioq_batchsize, | ||
0 | , | ||
"BIOQ batch size" | |||
) |
|
static |
Definition at line 29 of file subr_disk.c.
Referenced by bioq_disksort().