...

Source file src/github.com/shirou/gopsutil/disk/disk_openbsd_386.go

Documentation: github.com/shirou/gopsutil/disk

     1  // +build openbsd
     2  // +build 386
     3  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     4  // cgo -godefs disk/types_openbsd.go
     5  
     6  package disk
     7  
     8  const (
     9  	DEVSTAT_NO_DATA = 0x00
    10  	DEVSTAT_READ    = 0x01
    11  	DEVSTAT_WRITE   = 0x02
    12  	DEVSTAT_FREE    = 0x03
    13  )
    14  
    15  const (
    16  	sizeOfDiskstats = 0x60
    17  )
    18  
    19  type Diskstats struct {
    20  	Name       [16]int8
    21  	Busy       int32
    22  	Rxfer      uint64
    23  	Wxfer      uint64
    24  	Seek       uint64
    25  	Rbytes     uint64
    26  	Wbytes     uint64
    27  	Attachtime Timeval
    28  	Timestamp  Timeval
    29  	Time       Timeval
    30  }
    31  type Timeval struct {
    32  	Sec  int64
    33  	Usec int32
    34  }
    35  
    36  type Diskstat struct{}
    37  type Bintime struct{}
    38  

View as plain text