FreeBSD kernel kern code
subr_disk.c File Reference
#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 <geom/geom_disk.h>
Include dependency graph for subr_disk.c:

Go to the source code of this file.

Functions

 __FBSDID ("$BSDSUniX$")
 
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)
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
static uoff_t bioq_bio_key ( struct bio_queue_head *  head,
struct bio *  bp 
)
inlinestatic

Definition at line 219 of file subr_disk.c.

Referenced by bioq_disksort().

Here is the caller graph for this function:

void bioq_disksort ( struct bio_queue_head *  head,
struct bio *  bp 
)

Definition at line 233 of file subr_disk.c.

References bioq_bio_key(), and bioq_insert_tail().

Here is the call graph for this function:

struct bio* bioq_first ( struct bio_queue_head *  head)

Definition at line 196 of file subr_disk.c.

void bioq_flush ( struct bio_queue_head *  head,
struct devstat *  stp,
int  error 
)

Definition at line 169 of file subr_disk.c.

References biofinish(), and bioq_takefirst().

Here is the call graph for this function:

void bioq_init ( struct bio_queue_head *  head)

Definition at line 147 of file subr_disk.c.

void bioq_insert_head ( struct bio_queue_head *  head,
struct bio *  bp 
)

Definition at line 178 of file subr_disk.c.

void bioq_insert_tail ( struct bio_queue_head *  head,
struct bio *  bp 
)

Definition at line 187 of file subr_disk.c.

Referenced by bioq_disksort().

Here is the caller graph for this function:

void bioq_remove ( struct bio_queue_head *  head,
struct bio *  bp 
)

Definition at line 156 of file subr_disk.c.

Referenced by bioq_takefirst().

Here is the caller graph for this function:

struct bio* bioq_takefirst ( struct bio_queue_head *  head)

Definition at line 203 of file subr_disk.c.

References bioq_remove().

Referenced by bioq_flush().

Here is the call graph for this function:

Here is the caller graph for this function:

void disk_err ( struct bio *  bp,
const char *  what,
int  blkdone,
int  nl 
)

Definition at line 34 of file subr_disk.c.

References devtoname(), and printf().

Here is the call graph for this function: