...
1
2
3
4
5
6 package disk
7
8 const (
9 sizeofPtr = 0x8
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x8
13 sizeofLongLong = 0x8
14 sizeofLongDouble = 0x8
15
16 DEVSTAT_NO_DATA = 0x00
17 DEVSTAT_READ = 0x01
18 DEVSTAT_WRITE = 0x02
19 DEVSTAT_FREE = 0x03
20 )
21
22 const (
23 sizeOfDevstat = 0x120
24 )
25
26 type (
27 _C_short int16
28 _C_int int32
29 _C_long int64
30 _C_long_long int64
31 _C_long_double int64
32 )
33
34 type Devstat struct {
35 Sequence0 uint32
36 Allocated int32
37 Start_count uint32
38 End_count uint32
39 Busy_from Bintime
40 Dev_links _Ctype_struct___0
41 Device_number uint32
42 Device_name [16]int8
43 Unit_number int32
44 Bytes [4]uint64
45 Operations [4]uint64
46 Duration [4]Bintime
47 Busy_time Bintime
48 Creation_time Bintime
49 Block_size uint32
50 Tag_types [3]uint64
51 Flags uint32
52 Device_type uint32
53 Priority uint32
54 Id *byte
55 Sequence1 uint32
56 Pad_cgo_0 [4]byte
57 }
58 type Bintime struct {
59 Sec int64
60 Frac uint64
61 }
62
63 type _Ctype_struct___0 struct {
64 Empty uint64
65 }
66
View as plain text