diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-08 19:55:59 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-08 19:55:59 +0000 |
| commit | bfd614b8a5ceec7acf64c8b24253839997382162 (patch) | |
| tree | 08a73f146902fee342b56f70e4fe462cfc07d1de | |
| parent | 06acad4aa40e4938d293f32800885d986543aecd (diff) | |
Notes
| -rw-r--r-- | sys/sys/devicestat.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h index a75aff3b7d30..1136044b7e7c 100644 --- a/sys/sys/devicestat.h +++ b/sys/sys/devicestat.h @@ -34,6 +34,9 @@ #include <sys/queue.h> #include <sys/time.h> +/* + * XXX: Should really be SPECNAMELEN + */ #define DEVSTAT_NAME_LEN 16 /* @@ -45,7 +48,7 @@ * userland utilities to determine whether or not they are in sync with the * kernel. */ -#define DEVSTAT_VERSION 4 +#define DEVSTAT_VERSION 5 /* * These flags specify which statistics features are supported or not @@ -121,6 +124,8 @@ typedef enum { } devstat_type_flags; struct devstat { + int sequence0; /* Update sequence# */ + int allocated; /* Allocated entry */ STAILQ_ENTRY(devstat) dev_links; u_int32_t device_number; /* * Devstat device @@ -203,6 +208,8 @@ struct devstat { */ devstat_type_flags device_type; /* Device type */ devstat_priority priority; /* Controls list pos. */ + + int sequence1; /* Update sequence# */ }; STAILQ_HEAD(devstatlist, devstat); @@ -210,6 +217,12 @@ STAILQ_HEAD(devstatlist, devstat); #ifdef _KERNEL struct bio; +struct devstat *devstat_new_entry(const char *dev_name, + int unit_number, u_int32_t block_size, + devstat_support_flags flags, + devstat_type_flags device_type, + devstat_priority priority); + void devstat_add_entry(struct devstat *ds, const char *dev_name, int unit_number, u_int32_t block_size, devstat_support_flags flags, |
