aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2009-06-11 09:55:26 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2009-06-11 09:55:26 +0000
commit6231f75bcf6e5485ffcef313ec03b593cb94c0d8 (patch)
tree6b14985cd3ab66c96dc7e48867c3a445738966c9 /sys/sys/bio.h
parente4e5e663e01d1704e7fadd9ed7540131f7652403 (diff)
downloadsrc-6231f75bcf6e5485ffcef313ec03b593cb94c0d8.tar.gz
src-6231f75bcf6e5485ffcef313ec03b593cb94c0d8.zip
As discussed in the devsummit, introduce two fields in the
struct bio to store classification information, and a hook for classifier functions that can be called by g_io_request(). This code is from Fabio Checconi as part of his GSOC work.
Notes
Notes: svn path=/head/; revision=193981
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index 36359637daa7..5af902bdae6e 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -43,6 +43,9 @@
struct disk;
struct bio;
+/* Empty classifier tag, to prevent further classification. */
+#define BIO_NOTCLASSIFIED (void *)(~0UL)
+
typedef void bio_task_t(void *);
/*
@@ -78,6 +81,10 @@ struct bio {
bio_task_t *bio_task; /* Task_queue handler */
void *bio_task_arg; /* Argument to above */
+
+ void *bio_classifier1; /* Classifier tag. */
+ void *bio_classifier2; /* Classifier tag. */
+
#ifdef DIAGNOSTIC
void *_bio_caller1;
void *_bio_caller2;