...
1
2
3
4 package disk
5
6 const (
7 sizeofPtr = 0x4
8 sizeofShort = 0x2
9 sizeofInt = 0x4
10 sizeofLong = 0x4
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 = 0xf0
22 )
23
24 type (
25 _C_short int16
26 _C_int int32
27 _C_long int32
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 Tag_types [3]uint64
49 Flags uint32
50 Device_type uint32
51 Priority uint32
52 Id *byte
53 Sequence1 uint32
54 }
55 type Bintime struct {
56 Sec int32
57 Frac uint64
58 }
59
60 type _Ctype_struct___0 struct {
61 Empty uint32
62 }
63
View as plain text