2015-02-22 00:24:08 +08:00
|
|
|
// Created by cgo -godefs - DO NOT EDIT
|
|
|
|
// cgo -godefs types_freebsd.go
|
2014-04-23 09:35:27 +08:00
|
|
|
|
2014-12-30 21:09:05 +08:00
|
|
|
package disk
|
2014-04-23 09:35:27 +08:00
|
|
|
|
|
|
|
const (
|
2015-02-22 00:24:08 +08:00
|
|
|
sizeofPtr = 0x8
|
|
|
|
sizeofShort = 0x2
|
|
|
|
sizeofInt = 0x4
|
|
|
|
sizeofLong = 0x8
|
|
|
|
sizeofLongLong = 0x8
|
|
|
|
sizeofLongDouble = 0x8
|
|
|
|
|
|
|
|
DEVSTAT_NO_DATA = 0x00
|
|
|
|
DEVSTAT_READ = 0x01
|
|
|
|
DEVSTAT_WRITE = 0x02
|
|
|
|
DEVSTAT_FREE = 0x03
|
2014-04-23 09:35:27 +08:00
|
|
|
)
|
|
|
|
|
2016-03-20 21:47:29 +08:00
|
|
|
const (
|
|
|
|
sizeOfDevstat = 0x120
|
|
|
|
)
|
|
|
|
|
2015-02-22 00:24:08 +08:00
|
|
|
type (
|
|
|
|
_C_short int16
|
|
|
|
_C_int int32
|
|
|
|
_C_long int64
|
|
|
|
_C_long_long int64
|
|
|
|
_C_long_double int64
|
2014-04-23 09:35:27 +08:00
|
|
|
)
|
|
|
|
|
2015-02-22 00:24:08 +08:00
|
|
|
type Devstat struct {
|
|
|
|
Sequence0 uint32
|
|
|
|
Allocated int32
|
|
|
|
Start_count uint32
|
|
|
|
End_count uint32
|
|
|
|
Busy_from Bintime
|
|
|
|
Dev_links _Ctype_struct___0
|
|
|
|
Device_number uint32
|
|
|
|
Device_name [16]int8
|
|
|
|
Unit_number int32
|
|
|
|
Bytes [4]uint64
|
|
|
|
Operations [4]uint64
|
|
|
|
Duration [4]Bintime
|
|
|
|
Busy_time Bintime
|
|
|
|
Creation_time Bintime
|
|
|
|
Block_size uint32
|
|
|
|
Pad_cgo_0 [4]byte
|
|
|
|
Tag_types [3]uint64
|
|
|
|
Flags uint32
|
|
|
|
Device_type uint32
|
|
|
|
Priority uint32
|
|
|
|
Pad_cgo_1 [4]byte
|
2016-03-22 22:09:12 +08:00
|
|
|
ID *byte
|
2015-02-22 00:24:08 +08:00
|
|
|
Sequence1 uint32
|
|
|
|
Pad_cgo_2 [4]byte
|
|
|
|
}
|
|
|
|
type Bintime struct {
|
|
|
|
Sec int64
|
|
|
|
Frac uint64
|
|
|
|
}
|
2014-06-02 22:50:55 +08:00
|
|
|
|
2015-02-22 00:24:08 +08:00
|
|
|
type _Ctype_struct___0 struct {
|
|
|
|
Empty uint64
|
|
|
|
}
|