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

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