github.com/aayushi-bansal/sys@v0.0.0-20180118120756-90d962a959d8/unix/ztypes_linux_386.go (about)

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