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