version 1.18, 2002/06/19 08:45:52 |
version 1.19, 2002/06/28 22:40:53 |
|
|
struct _disk cur, last; |
struct _disk cur, last; |
|
|
/* Kernel pointers: nlistf and memf defined in calling program. */ |
/* Kernel pointers: nlistf and memf defined in calling program. */ |
|
#if !defined(NOKVM) |
static kvm_t *kd = NULL; |
static kvm_t *kd = NULL; |
|
#endif |
extern char *nlistf; |
extern char *nlistf; |
extern char *memf; |
extern char *memf; |
|
|
|
#if !defined(NOKVM) |
/* Pointer to list of disks. */ |
/* Pointer to list of disks. */ |
static struct disk *dk_drivehead = NULL; |
static struct disk *dk_drivehead = NULL; |
|
#endif |
|
|
/* Backward compatibility references. */ |
/* Backward compatibility references. */ |
int dk_ndrive = 0; |
int dk_ndrive = 0; |
|
|
void |
void |
dkreadstats() |
dkreadstats() |
{ |
{ |
|
#if !defined(NOKVM) |
struct disk cur_disk, *p; |
struct disk cur_disk, *p; |
|
#endif |
int i, mib[3]; |
int i, mib[3]; |
size_t size; |
size_t size; |
struct diskstats *q; |
struct diskstats *q; |
|
|
dkinit(select) |
dkinit(select) |
int select; |
int select; |
{ |
{ |
|
#if !defined(NOKVM) |
struct disklist_head disk_head; |
struct disklist_head disk_head; |
struct disk cur_disk, *p; |
struct disk cur_disk, *p; |
char errbuf[_POSIX2_LINE_MAX]; |
char errbuf[_POSIX2_LINE_MAX]; |
|
#endif |
static int once = 0; |
static int once = 0; |
extern int hz; |
extern int hz; |
int i, mib[2]; |
int i, mib[2]; |