2020-01-08 17:39:05 +08:00
|
|
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
2016-11-22 06:18:52 +08:00
|
|
|
// cgo -godefs types_openbsd.go
|
|
|
|
|
|
|
|
package disk
|
|
|
|
|
|
|
|
const (
|
2017-02-02 07:05:29 +08:00
|
|
|
DEVSTAT_NO_DATA = 0x00
|
|
|
|
DEVSTAT_READ = 0x01
|
|
|
|
DEVSTAT_WRITE = 0x02
|
|
|
|
DEVSTAT_FREE = 0x03
|
2016-11-22 06:18:52 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
sizeOfDiskstats = 0x70
|
|
|
|
)
|
|
|
|
|
|
|
|
type Diskstats struct {
|
2017-02-02 07:05:29 +08:00
|
|
|
Name [16]int8
|
|
|
|
Busy int32
|
|
|
|
Pad_cgo_0 [4]byte
|
|
|
|
Rxfer uint64
|
|
|
|
Wxfer uint64
|
|
|
|
Seek uint64
|
|
|
|
Rbytes uint64
|
|
|
|
Wbytes uint64
|
|
|
|
Attachtime Timeval
|
|
|
|
Timestamp Timeval
|
|
|
|
Time Timeval
|
2016-11-22 06:18:52 +08:00
|
|
|
}
|
|
|
|
type Timeval struct {
|
2017-02-02 07:05:29 +08:00
|
|
|
Sec int64
|
|
|
|
Usec int64
|
2016-11-22 06:18:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Diskstat struct{}
|
|
|
|
type Bintime struct{}
|