github.com/Aayushi-Bansal/sys@v0.0.0-20180118120756-90d962a959d8/unix/ztypes_linux_mips64.go (about)

     1  // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build mips64,linux
     5  
     6  package unix
     7  
     8  const (
     9  	sizeofPtr      = 0x8
    10  	sizeofShort    = 0x2
    11  	sizeofInt      = 0x4
    12  	sizeofLong     = 0x8
    13  	sizeofLongLong = 0x8
    14  	PathMax        = 0x1000
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int64
    21  	_C_long_long int64
    22  )
    23  
    24  type Timespec struct {
    25  	Sec  int64
    26  	Nsec int64
    27  }
    28  
    29  type Timeval struct {
    30  	Sec  int64
    31  	Usec int64
    32  }
    33  
    34  type Timex struct {
    35  	Modes     uint32
    36  	Pad_cgo_0 [4]byte
    37  	Offset    int64
    38  	Freq      int64
    39  	Maxerror  int64
    40  	Esterror  int64
    41  	Status    int32
    42  	Pad_cgo_1 [4]byte
    43  	Constant  int64
    44  	Precision int64
    45  	Tolerance int64
    46  	Time      Timeval
    47  	Tick      int64
    48  	Ppsfreq   int64
    49  	Jitter    int64
    50  	Shift     int32
    51  	Pad_cgo_2 [4]byte
    52  	Stabil    int64
    53  	Jitcnt    int64
    54  	Calcnt    int64
    55  	Errcnt    int64
    56  	Stbcnt    int64
    57  	Tai       int32
    58  	Pad_cgo_3 [44]byte
    59  }
    60  
    61  type Time_t int64
    62  
    63  type Tms struct {
    64  	Utime  int64
    65  	Stime  int64
    66  	Cutime int64
    67  	Cstime int64
    68  }
    69  
    70  type Utimbuf struct {
    71  	Actime  int64
    72  	Modtime int64
    73  }
    74  
    75  type Rusage struct {
    76  	Utime    Timeval
    77  	Stime    Timeval
    78  	Maxrss   int64
    79  	Ixrss    int64
    80  	Idrss    int64
    81  	Isrss    int64
    82  	Minflt   int64
    83  	Majflt   int64
    84  	Nswap    int64
    85  	Inblock  int64
    86  	Oublock  int64
    87  	Msgsnd   int64
    88  	Msgrcv   int64
    89  	Nsignals int64
    90  	Nvcsw    int64
    91  	Nivcsw   int64
    92  }
    93  
    94  type Rlimit struct {
    95  	Cur uint64
    96  	Max uint64
    97  }
    98  
    99  type _Gid_t uint32
   100  
   101  type Stat_t struct {
   102  	Dev     uint32
   103  	Pad1    [3]uint32
   104  	Ino     uint64
   105  	Mode    uint32
   106  	Nlink   uint32
   107  	Uid     uint32
   108  	Gid     uint32
   109  	Rdev    uint32
   110  	Pad2    [3]uint32
   111  	Size    int64
   112  	Atim    Timespec
   113  	Mtim    Timespec
   114  	Ctim    Timespec
   115  	Blksize uint32
   116  	Pad4    uint32
   117  	Blocks  int64
   118  }
   119  
   120  type Statfs_t struct {
   121  	Type    int64
   122  	Bsize   int64
   123  	Frsize  int64
   124  	Blocks  uint64
   125  	Bfree   uint64
   126  	Files   uint64
   127  	Ffree   uint64
   128  	Bavail  uint64
   129  	Fsid    Fsid
   130  	Namelen int64
   131  	Flags   int64
   132  	Spare   [5]int64
   133  }
   134  
   135  type StatxTimestamp struct {
   136  	Sec         int64
   137  	Nsec        uint32
   138  	X__reserved int32
   139  }
   140  
   141  type Statx_t struct {
   142  	Mask            uint32
   143  	Blksize         uint32
   144  	Attributes      uint64
   145  	Nlink           uint32
   146  	Uid             uint32
   147  	Gid             uint32
   148  	Mode            uint16
   149  	_               [1]uint16
   150  	Ino             uint64
   151  	Size            uint64
   152  	Blocks          uint64
   153  	Attributes_mask uint64
   154  	Atime           StatxTimestamp
   155  	Btime           StatxTimestamp
   156  	Ctime           StatxTimestamp
   157  	Mtime           StatxTimestamp
   158  	Rdev_major      uint32
   159  	Rdev_minor      uint32
   160  	Dev_major       uint32
   161  	Dev_minor       uint32
   162  	_               [14]uint64
   163  }
   164  
   165  type Dirent struct {
   166  	Ino       uint64
   167  	Off       int64
   168  	Reclen    uint16
   169  	Type      uint8
   170  	Name      [256]int8
   171  	Pad_cgo_0 [5]byte
   172  }
   173  
   174  type Fsid struct {
   175  	X__val [2]int32
   176  }
   177  
   178  type Flock_t struct {
   179  	Type      int16
   180  	Whence    int16
   181  	Pad_cgo_0 [4]byte
   182  	Start     int64
   183  	Len       int64
   184  	Pid       int32
   185  	Pad_cgo_1 [4]byte
   186  }
   187  
   188  type FscryptPolicy struct {
   189  	Version                   uint8
   190  	Contents_encryption_mode  uint8
   191  	Filenames_encryption_mode uint8
   192  	Flags                     uint8
   193  	Master_key_descriptor     [8]uint8
   194  }
   195  
   196  type FscryptKey struct {
   197  	Mode uint32
   198  	Raw  [64]uint8
   199  	Size uint32
   200  }
   201  
   202  type KeyctlDHParams struct {
   203  	Private int32
   204  	Prime   int32
   205  	Base    int32
   206  }
   207  
   208  const (
   209  	FADV_NORMAL     = 0x0
   210  	FADV_RANDOM     = 0x1
   211  	FADV_SEQUENTIAL = 0x2
   212  	FADV_WILLNEED   = 0x3
   213  	FADV_DONTNEED   = 0x4
   214  	FADV_NOREUSE    = 0x5
   215  )
   216  
   217  type RawSockaddrInet4 struct {
   218  	Family uint16
   219  	Port   uint16
   220  	Addr   [4]byte /* in_addr */
   221  	Zero   [8]uint8
   222  }
   223  
   224  type RawSockaddrInet6 struct {
   225  	Family   uint16
   226  	Port     uint16
   227  	Flowinfo uint32
   228  	Addr     [16]byte /* in6_addr */
   229  	Scope_id uint32
   230  }
   231  
   232  type RawSockaddrUnix struct {
   233  	Family uint16
   234  	Path   [108]int8
   235  }
   236  
   237  type RawSockaddrLinklayer struct {
   238  	Family   uint16
   239  	Protocol uint16
   240  	Ifindex  int32
   241  	Hatype   uint16
   242  	Pkttype  uint8
   243  	Halen    uint8
   244  	Addr     [8]uint8
   245  }
   246  
   247  type RawSockaddrNetlink struct {
   248  	Family uint16
   249  	Pad    uint16
   250  	Pid    uint32
   251  	Groups uint32
   252  }
   253  
   254  type RawSockaddrHCI struct {
   255  	Family  uint16
   256  	Dev     uint16
   257  	Channel uint16
   258  }
   259  
   260  type RawSockaddrCAN struct {
   261  	Family    uint16
   262  	Pad_cgo_0 [2]byte
   263  	Ifindex   int32
   264  	Addr      [8]byte
   265  }
   266  
   267  type RawSockaddrALG struct {
   268  	Family uint16
   269  	Type   [14]uint8
   270  	Feat   uint32
   271  	Mask   uint32
   272  	Name   [64]uint8
   273  }
   274  
   275  type RawSockaddrVM struct {
   276  	Family    uint16
   277  	Reserved1 uint16
   278  	Port      uint32
   279  	Cid       uint32
   280  	Zero      [4]uint8
   281  }
   282  
   283  type RawSockaddr struct {
   284  	Family uint16
   285  	Data   [14]int8
   286  }
   287  
   288  type RawSockaddrAny struct {
   289  	Addr RawSockaddr
   290  	Pad  [96]int8
   291  }
   292  
   293  type _Socklen uint32
   294  
   295  type Linger struct {
   296  	Onoff  int32
   297  	Linger int32
   298  }
   299  
   300  type Iovec struct {
   301  	Base *byte
   302  	Len  uint64
   303  }
   304  
   305  type IPMreq struct {
   306  	Multiaddr [4]byte /* in_addr */
   307  	Interface [4]byte /* in_addr */
   308  }
   309  
   310  type IPMreqn struct {
   311  	Multiaddr [4]byte /* in_addr */
   312  	Address   [4]byte /* in_addr */
   313  	Ifindex   int32
   314  }
   315  
   316  type IPv6Mreq struct {
   317  	Multiaddr [16]byte /* in6_addr */
   318  	Interface uint32
   319  }
   320  
   321  type PacketMreq struct {
   322  	Ifindex int32
   323  	Type    uint16
   324  	Alen    uint16
   325  	Address [8]uint8
   326  }
   327  
   328  type Msghdr struct {
   329  	Name       *byte
   330  	Namelen    uint32
   331  	Pad_cgo_0  [4]byte
   332  	Iov        *Iovec
   333  	Iovlen     uint64
   334  	Control    *byte
   335  	Controllen uint64
   336  	Flags      int32
   337  	Pad_cgo_1  [4]byte
   338  }
   339  
   340  type Cmsghdr struct {
   341  	Len   uint64
   342  	Level int32
   343  	Type  int32
   344  }
   345  
   346  type Inet4Pktinfo struct {
   347  	Ifindex  int32
   348  	Spec_dst [4]byte /* in_addr */
   349  	Addr     [4]byte /* in_addr */
   350  }
   351  
   352  type Inet6Pktinfo struct {
   353  	Addr    [16]byte /* in6_addr */
   354  	Ifindex uint32
   355  }
   356  
   357  type IPv6MTUInfo struct {
   358  	Addr RawSockaddrInet6
   359  	Mtu  uint32
   360  }
   361  
   362  type ICMPv6Filter struct {
   363  	Data [8]uint32
   364  }
   365  
   366  type Ucred struct {
   367  	Pid int32
   368  	Uid uint32
   369  	Gid uint32
   370  }
   371  
   372  type TCPInfo struct {
   373  	State          uint8
   374  	Ca_state       uint8
   375  	Retransmits    uint8
   376  	Probes         uint8
   377  	Backoff        uint8
   378  	Options        uint8
   379  	Pad_cgo_0      [2]byte
   380  	Rto            uint32
   381  	Ato            uint32
   382  	Snd_mss        uint32
   383  	Rcv_mss        uint32
   384  	Unacked        uint32
   385  	Sacked         uint32
   386  	Lost           uint32
   387  	Retrans        uint32
   388  	Fackets        uint32
   389  	Last_data_sent uint32
   390  	Last_ack_sent  uint32
   391  	Last_data_recv uint32
   392  	Last_ack_recv  uint32
   393  	Pmtu           uint32
   394  	Rcv_ssthresh   uint32
   395  	Rtt            uint32
   396  	Rttvar         uint32
   397  	Snd_ssthresh   uint32
   398  	Snd_cwnd       uint32
   399  	Advmss         uint32
   400  	Reordering     uint32
   401  	Rcv_rtt        uint32
   402  	Rcv_space      uint32
   403  	Total_retrans  uint32
   404  }
   405  
   406  const (
   407  	SizeofSockaddrInet4     = 0x10
   408  	SizeofSockaddrInet6     = 0x1c
   409  	SizeofSockaddrAny       = 0x70
   410  	SizeofSockaddrUnix      = 0x6e
   411  	SizeofSockaddrLinklayer = 0x14
   412  	SizeofSockaddrNetlink   = 0xc
   413  	SizeofSockaddrHCI       = 0x6
   414  	SizeofSockaddrCAN       = 0x10
   415  	SizeofSockaddrALG       = 0x58
   416  	SizeofSockaddrVM        = 0x10
   417  	SizeofLinger            = 0x8
   418  	SizeofIovec             = 0x10
   419  	SizeofIPMreq            = 0x8
   420  	SizeofIPMreqn           = 0xc
   421  	SizeofIPv6Mreq          = 0x14
   422  	SizeofPacketMreq        = 0x10
   423  	SizeofMsghdr            = 0x38
   424  	SizeofCmsghdr           = 0x10
   425  	SizeofInet4Pktinfo      = 0xc
   426  	SizeofInet6Pktinfo      = 0x14
   427  	SizeofIPv6MTUInfo       = 0x20
   428  	SizeofICMPv6Filter      = 0x20
   429  	SizeofUcred             = 0xc
   430  	SizeofTCPInfo           = 0x68
   431  )
   432  
   433  const (
   434  	IFA_UNSPEC          = 0x0
   435  	IFA_ADDRESS         = 0x1
   436  	IFA_LOCAL           = 0x2
   437  	IFA_LABEL           = 0x3
   438  	IFA_BROADCAST       = 0x4
   439  	IFA_ANYCAST         = 0x5
   440  	IFA_CACHEINFO       = 0x6
   441  	IFA_MULTICAST       = 0x7
   442  	IFLA_UNSPEC         = 0x0
   443  	IFLA_ADDRESS        = 0x1
   444  	IFLA_BROADCAST      = 0x2
   445  	IFLA_IFNAME         = 0x3
   446  	IFLA_MTU            = 0x4
   447  	IFLA_LINK           = 0x5
   448  	IFLA_QDISC          = 0x6
   449  	IFLA_STATS          = 0x7
   450  	IFLA_COST           = 0x8
   451  	IFLA_PRIORITY       = 0x9
   452  	IFLA_MASTER         = 0xa
   453  	IFLA_WIRELESS       = 0xb
   454  	IFLA_PROTINFO       = 0xc
   455  	IFLA_TXQLEN         = 0xd
   456  	IFLA_MAP            = 0xe
   457  	IFLA_WEIGHT         = 0xf
   458  	IFLA_OPERSTATE      = 0x10
   459  	IFLA_LINKMODE       = 0x11
   460  	IFLA_LINKINFO       = 0x12
   461  	IFLA_NET_NS_PID     = 0x13
   462  	IFLA_IFALIAS        = 0x14
   463  	IFLA_MAX            = 0x2c
   464  	RT_SCOPE_UNIVERSE   = 0x0
   465  	RT_SCOPE_SITE       = 0xc8
   466  	RT_SCOPE_LINK       = 0xfd
   467  	RT_SCOPE_HOST       = 0xfe
   468  	RT_SCOPE_NOWHERE    = 0xff
   469  	RT_TABLE_UNSPEC     = 0x0
   470  	RT_TABLE_COMPAT     = 0xfc
   471  	RT_TABLE_DEFAULT    = 0xfd
   472  	RT_TABLE_MAIN       = 0xfe
   473  	RT_TABLE_LOCAL      = 0xff
   474  	RT_TABLE_MAX        = 0xffffffff
   475  	RTA_UNSPEC          = 0x0
   476  	RTA_DST             = 0x1
   477  	RTA_SRC             = 0x2
   478  	RTA_IIF             = 0x3
   479  	RTA_OIF             = 0x4
   480  	RTA_GATEWAY         = 0x5
   481  	RTA_PRIORITY        = 0x6
   482  	RTA_PREFSRC         = 0x7
   483  	RTA_METRICS         = 0x8
   484  	RTA_MULTIPATH       = 0x9
   485  	RTA_FLOW            = 0xb
   486  	RTA_CACHEINFO       = 0xc
   487  	RTA_TABLE           = 0xf
   488  	RTN_UNSPEC          = 0x0
   489  	RTN_UNICAST         = 0x1
   490  	RTN_LOCAL           = 0x2
   491  	RTN_BROADCAST       = 0x3
   492  	RTN_ANYCAST         = 0x4
   493  	RTN_MULTICAST       = 0x5
   494  	RTN_BLACKHOLE       = 0x6
   495  	RTN_UNREACHABLE     = 0x7
   496  	RTN_PROHIBIT        = 0x8
   497  	RTN_THROW           = 0x9
   498  	RTN_NAT             = 0xa
   499  	RTN_XRESOLVE        = 0xb
   500  	RTNLGRP_NONE        = 0x0
   501  	RTNLGRP_LINK        = 0x1
   502  	RTNLGRP_NOTIFY      = 0x2
   503  	RTNLGRP_NEIGH       = 0x3
   504  	RTNLGRP_TC          = 0x4
   505  	RTNLGRP_IPV4_IFADDR = 0x5
   506  	RTNLGRP_IPV4_MROUTE = 0x6
   507  	RTNLGRP_IPV4_ROUTE  = 0x7
   508  	RTNLGRP_IPV4_RULE   = 0x8
   509  	RTNLGRP_IPV6_IFADDR = 0x9
   510  	RTNLGRP_IPV6_MROUTE = 0xa
   511  	RTNLGRP_IPV6_ROUTE  = 0xb
   512  	RTNLGRP_IPV6_IFINFO = 0xc
   513  	RTNLGRP_IPV6_PREFIX = 0x12
   514  	RTNLGRP_IPV6_RULE   = 0x13
   515  	RTNLGRP_ND_USEROPT  = 0x14
   516  	SizeofNlMsghdr      = 0x10
   517  	SizeofNlMsgerr      = 0x14
   518  	SizeofRtGenmsg      = 0x1
   519  	SizeofNlAttr        = 0x4
   520  	SizeofRtAttr        = 0x4
   521  	SizeofIfInfomsg     = 0x10
   522  	SizeofIfAddrmsg     = 0x8
   523  	SizeofRtMsg         = 0xc
   524  	SizeofRtNexthop     = 0x8
   525  )
   526  
   527  type NlMsghdr struct {
   528  	Len   uint32
   529  	Type  uint16
   530  	Flags uint16
   531  	Seq   uint32
   532  	Pid   uint32
   533  }
   534  
   535  type NlMsgerr struct {
   536  	Error int32
   537  	Msg   NlMsghdr
   538  }
   539  
   540  type RtGenmsg struct {
   541  	Family uint8
   542  }
   543  
   544  type NlAttr struct {
   545  	Len  uint16
   546  	Type uint16
   547  }
   548  
   549  type RtAttr struct {
   550  	Len  uint16
   551  	Type uint16
   552  }
   553  
   554  type IfInfomsg struct {
   555  	Family     uint8
   556  	X__ifi_pad uint8
   557  	Type       uint16
   558  	Index      int32
   559  	Flags      uint32
   560  	Change     uint32
   561  }
   562  
   563  type IfAddrmsg struct {
   564  	Family    uint8
   565  	Prefixlen uint8
   566  	Flags     uint8
   567  	Scope     uint8
   568  	Index     uint32
   569  }
   570  
   571  type RtMsg struct {
   572  	Family   uint8
   573  	Dst_len  uint8
   574  	Src_len  uint8
   575  	Tos      uint8
   576  	Table    uint8
   577  	Protocol uint8
   578  	Scope    uint8
   579  	Type     uint8
   580  	Flags    uint32
   581  }
   582  
   583  type RtNexthop struct {
   584  	Len     uint16
   585  	Flags   uint8
   586  	Hops    uint8
   587  	Ifindex int32
   588  }
   589  
   590  const (
   591  	SizeofSockFilter = 0x8
   592  	SizeofSockFprog  = 0x10
   593  )
   594  
   595  type SockFilter struct {
   596  	Code uint16
   597  	Jt   uint8
   598  	Jf   uint8
   599  	K    uint32
   600  }
   601  
   602  type SockFprog struct {
   603  	Len       uint16
   604  	Pad_cgo_0 [6]byte
   605  	Filter    *SockFilter
   606  }
   607  
   608  type InotifyEvent struct {
   609  	Wd     int32
   610  	Mask   uint32
   611  	Cookie uint32
   612  	Len    uint32
   613  }
   614  
   615  const SizeofInotifyEvent = 0x10
   616  
   617  type PtraceRegs struct {
   618  	Regs     [32]uint64
   619  	Lo       uint64
   620  	Hi       uint64
   621  	Epc      uint64
   622  	Badvaddr uint64
   623  	Status   uint64
   624  	Cause    uint64
   625  }
   626  
   627  type FdSet struct {
   628  	Bits [16]int64
   629  }
   630  
   631  type Sysinfo_t struct {
   632  	Uptime    int64
   633  	Loads     [3]uint64
   634  	Totalram  uint64
   635  	Freeram   uint64
   636  	Sharedram uint64
   637  	Bufferram uint64
   638  	Totalswap uint64
   639  	Freeswap  uint64
   640  	Procs     uint16
   641  	Pad       uint16
   642  	Pad_cgo_0 [4]byte
   643  	Totalhigh uint64
   644  	Freehigh  uint64
   645  	Unit      uint32
   646  	X_f       [0]int8
   647  	Pad_cgo_1 [4]byte
   648  }
   649  
   650  type Utsname struct {
   651  	Sysname    [65]byte
   652  	Nodename   [65]byte
   653  	Release    [65]byte
   654  	Version    [65]byte
   655  	Machine    [65]byte
   656  	Domainname [65]byte
   657  }
   658  
   659  type Ustat_t struct {
   660  	Tfree     int32
   661  	Pad_cgo_0 [4]byte
   662  	Tinode    uint64
   663  	Fname     [6]int8
   664  	Fpack     [6]int8
   665  	Pad_cgo_1 [4]byte
   666  }
   667  
   668  type EpollEvent struct {
   669  	Events uint32
   670  	Fd     int32
   671  	Pad    int32
   672  }
   673  
   674  const (
   675  	AT_EMPTY_PATH   = 0x1000
   676  	AT_FDCWD        = -0x64
   677  	AT_NO_AUTOMOUNT = 0x800
   678  	AT_REMOVEDIR    = 0x200
   679  
   680  	AT_STATX_SYNC_AS_STAT = 0x0
   681  	AT_STATX_FORCE_SYNC   = 0x2000
   682  	AT_STATX_DONT_SYNC    = 0x4000
   683  
   684  	AT_SYMLINK_FOLLOW   = 0x400
   685  	AT_SYMLINK_NOFOLLOW = 0x100
   686  )
   687  
   688  type PollFd struct {
   689  	Fd      int32
   690  	Events  int16
   691  	Revents int16
   692  }
   693  
   694  const (
   695  	POLLIN    = 0x1
   696  	POLLPRI   = 0x2
   697  	POLLOUT   = 0x4
   698  	POLLRDHUP = 0x2000
   699  	POLLERR   = 0x8
   700  	POLLHUP   = 0x10
   701  	POLLNVAL  = 0x20
   702  )
   703  
   704  type Sigset_t struct {
   705  	X__val [16]uint64
   706  }
   707  
   708  const RNDGETENTCNT = 0x40045200
   709  
   710  const PERF_IOC_FLAG_GROUP = 0x1
   711  
   712  type Termios struct {
   713  	Iflag  uint32
   714  	Oflag  uint32
   715  	Cflag  uint32
   716  	Lflag  uint32
   717  	Line   uint8
   718  	Cc     [23]uint8
   719  	Ispeed uint32
   720  	Ospeed uint32
   721  }
   722  
   723  type Winsize struct {
   724  	Row    uint16
   725  	Col    uint16
   726  	Xpixel uint16
   727  	Ypixel uint16
   728  }
   729  
   730  type Taskstats struct {
   731  	Version                   uint16
   732  	Pad_cgo_0                 [2]byte
   733  	Ac_exitcode               uint32
   734  	Ac_flag                   uint8
   735  	Ac_nice                   uint8
   736  	Pad_cgo_1                 [6]byte
   737  	Cpu_count                 uint64
   738  	Cpu_delay_total           uint64
   739  	Blkio_count               uint64
   740  	Blkio_delay_total         uint64
   741  	Swapin_count              uint64
   742  	Swapin_delay_total        uint64
   743  	Cpu_run_real_total        uint64
   744  	Cpu_run_virtual_total     uint64
   745  	Ac_comm                   [32]int8
   746  	Ac_sched                  uint8
   747  	Ac_pad                    [3]uint8
   748  	Pad_cgo_2                 [4]byte
   749  	Ac_uid                    uint32
   750  	Ac_gid                    uint32
   751  	Ac_pid                    uint32
   752  	Ac_ppid                   uint32
   753  	Ac_btime                  uint32
   754  	Pad_cgo_3                 [4]byte
   755  	Ac_etime                  uint64
   756  	Ac_utime                  uint64
   757  	Ac_stime                  uint64
   758  	Ac_minflt                 uint64
   759  	Ac_majflt                 uint64
   760  	Coremem                   uint64
   761  	Virtmem                   uint64
   762  	Hiwater_rss               uint64
   763  	Hiwater_vm                uint64
   764  	Read_char                 uint64
   765  	Write_char                uint64
   766  	Read_syscalls             uint64
   767  	Write_syscalls            uint64
   768  	Read_bytes                uint64
   769  	Write_bytes               uint64
   770  	Cancelled_write_bytes     uint64
   771  	Nvcsw                     uint64
   772  	Nivcsw                    uint64
   773  	Ac_utimescaled            uint64
   774  	Ac_stimescaled            uint64
   775  	Cpu_scaled_run_real_total uint64
   776  	Freepages_count           uint64
   777  	Freepages_delay_total     uint64
   778  }
   779  
   780  const (
   781  	TASKSTATS_CMD_UNSPEC                  = 0x0
   782  	TASKSTATS_CMD_GET                     = 0x1
   783  	TASKSTATS_CMD_NEW                     = 0x2
   784  	TASKSTATS_TYPE_UNSPEC                 = 0x0
   785  	TASKSTATS_TYPE_PID                    = 0x1
   786  	TASKSTATS_TYPE_TGID                   = 0x2
   787  	TASKSTATS_TYPE_STATS                  = 0x3
   788  	TASKSTATS_TYPE_AGGR_PID               = 0x4
   789  	TASKSTATS_TYPE_AGGR_TGID              = 0x5
   790  	TASKSTATS_TYPE_NULL                   = 0x6
   791  	TASKSTATS_CMD_ATTR_UNSPEC             = 0x0
   792  	TASKSTATS_CMD_ATTR_PID                = 0x1
   793  	TASKSTATS_CMD_ATTR_TGID               = 0x2
   794  	TASKSTATS_CMD_ATTR_REGISTER_CPUMASK   = 0x3
   795  	TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
   796  )
   797  
   798  type CGroupStats struct {
   799  	Sleeping        uint64
   800  	Running         uint64
   801  	Stopped         uint64
   802  	Uninterruptible uint64
   803  	Io_wait         uint64
   804  }
   805  
   806  const (
   807  	CGROUPSTATS_CMD_UNSPEC        = 0x3
   808  	CGROUPSTATS_CMD_GET           = 0x4
   809  	CGROUPSTATS_CMD_NEW           = 0x5
   810  	CGROUPSTATS_TYPE_UNSPEC       = 0x0
   811  	CGROUPSTATS_TYPE_CGROUP_STATS = 0x1
   812  	CGROUPSTATS_CMD_ATTR_UNSPEC   = 0x0
   813  	CGROUPSTATS_CMD_ATTR_FD       = 0x1
   814  )
   815  
   816  type Genlmsghdr struct {
   817  	Cmd      uint8
   818  	Version  uint8
   819  	Reserved uint16
   820  }
   821  
   822  const (
   823  	CTRL_CMD_UNSPEC            = 0x0
   824  	CTRL_CMD_NEWFAMILY         = 0x1
   825  	CTRL_CMD_DELFAMILY         = 0x2
   826  	CTRL_CMD_GETFAMILY         = 0x3
   827  	CTRL_CMD_NEWOPS            = 0x4
   828  	CTRL_CMD_DELOPS            = 0x5
   829  	CTRL_CMD_GETOPS            = 0x6
   830  	CTRL_CMD_NEWMCAST_GRP      = 0x7
   831  	CTRL_CMD_DELMCAST_GRP      = 0x8
   832  	CTRL_CMD_GETMCAST_GRP      = 0x9
   833  	CTRL_ATTR_UNSPEC           = 0x0
   834  	CTRL_ATTR_FAMILY_ID        = 0x1
   835  	CTRL_ATTR_FAMILY_NAME      = 0x2
   836  	CTRL_ATTR_VERSION          = 0x3
   837  	CTRL_ATTR_HDRSIZE          = 0x4
   838  	CTRL_ATTR_MAXATTR          = 0x5
   839  	CTRL_ATTR_OPS              = 0x6
   840  	CTRL_ATTR_MCAST_GROUPS     = 0x7
   841  	CTRL_ATTR_OP_UNSPEC        = 0x0
   842  	CTRL_ATTR_OP_ID            = 0x1
   843  	CTRL_ATTR_OP_FLAGS         = 0x2
   844  	CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
   845  	CTRL_ATTR_MCAST_GRP_NAME   = 0x1
   846  	CTRL_ATTR_MCAST_GRP_ID     = 0x2
   847  )
   848  
   849  type cpuMask uint64
   850  
   851  const (
   852  	_CPU_SETSIZE = 0x400
   853  	_NCPUBITS    = 0x40
   854  )