diff options
author | Kenneth D. Merry <ken@FreeBSD.org> | 1998-09-20 00:11:23 +0000 |
---|---|---|
committer | Kenneth D. Merry <ken@FreeBSD.org> | 1998-09-20 00:11:23 +0000 |
commit | bcc6a3da928a9aabce7ffbeb98244693df76a7ff (patch) | |
tree | df9f36a860acc42968692739bf3398a932b3f7dc /lib/libdevstat/devstat.h | |
parent | 0637c2cccdca610bf2886b53811c10996d2c987d (diff) | |
download | src-bcc6a3da928a9aabce7ffbeb98244693df76a7ff.tar.gz src-bcc6a3da928a9aabce7ffbeb98244693df76a7ff.zip |
Change the devstat generation number from an int to a long. The int-sized
generation was causing unaligned access faults on the Alpha.
I have incremented the devstat version number, since this is an interface
change. You'll need to recompile libdevstat, systat, iostat, vmstat and
rpc.rstatd along with your kernel.
Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Notes
Notes:
svn path=/head/; revision=39498
Diffstat (limited to 'lib/libdevstat/devstat.h')
-rw-r--r-- | lib/libdevstat/devstat.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libdevstat/devstat.h b/lib/libdevstat/devstat.h index b2f1543271ec..e0a54d03ed58 100644 --- a/lib/libdevstat/devstat.h +++ b/lib/libdevstat/devstat.h @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: devstat.h,v 1.1 1998/09/15 06:23:21 gibbs Exp $ */ #ifndef _DEVSTAT_H @@ -68,7 +68,7 @@ struct device_selection { struct devinfo { struct devstat *devices; u_int8_t *mem_ptr; - int generation; + long generation; int numdevs; }; @@ -89,13 +89,13 @@ typedef enum { __BEGIN_DECLS int getnumdevs(void); -int getgeneration(void); +long getgeneration(void); int getversion(void); int checkversion(void); int getdevs(struct statinfo *stats); int selectdevs(struct device_selection **dev_select, int *num_selected, - int *num_selections, int *select_generation, - int current_generation, struct devstat *devices, int numdevs, + int *num_selections, long *select_generation, + long current_generation, struct devstat *devices, int numdevs, struct devstat_match *matches, int num_matches, char **dev_selections, int num_dev_selections, devstat_select_mode select_mode, int maxshowdevs, |