...

Source file src/github.com/shirou/gopsutil/process/process_darwin_arm64.go

Documentation: github.com/shirou/gopsutil/process

     1  // +build darwin
     2  // +build arm64
     3  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     4  // cgo -godefs process/types_darwin.go
     5  
     6  package process
     7  
     8  const (
     9  	sizeofPtr      = 0x8
    10  	sizeofShort    = 0x2
    11  	sizeofInt      = 0x4
    12  	sizeofLong     = 0x8
    13  	sizeofLongLong = 0x8
    14  )
    15  
    16  type (
    17  	_C_short     int16
    18  	_C_int       int32
    19  	_C_long      int64
    20  	_C_long_long int64
    21  )
    22  
    23  type Timespec struct {
    24  	Sec  int64
    25  	Nsec int64
    26  }
    27  
    28  type Timeval struct {
    29  	Sec       int64
    30  	Usec      int32
    31  	Pad_cgo_0 [4]byte
    32  }
    33  
    34  type Rusage struct {
    35  	Utime    Timeval
    36  	Stime    Timeval
    37  	Maxrss   int64
    38  	Ixrss    int64
    39  	Idrss    int64
    40  	Isrss    int64
    41  	Minflt   int64
    42  	Majflt   int64
    43  	Nswap    int64
    44  	Inblock  int64
    45  	Oublock  int64
    46  	Msgsnd   int64
    47  	Msgrcv   int64
    48  	Nsignals int64
    49  	Nvcsw    int64
    50  	Nivcsw   int64
    51  }
    52  
    53  type Rlimit struct {
    54  	Cur uint64
    55  	Max uint64
    56  }
    57  
    58  type UGid_t uint32
    59  
    60  type KinfoProc struct {
    61  	Proc  ExternProc
    62  	Eproc Eproc
    63  }
    64  
    65  type Eproc struct {
    66  	Paddr     *Proc
    67  	Sess      *Session
    68  	Pcred     Upcred
    69  	Ucred     Uucred
    70  	Vm        Vmspace
    71  	Ppid      int32
    72  	Pgid      int32
    73  	Jobc      int16
    74  	Tdev      int32
    75  	Tpgid     int32
    76  	Tsess     *Session
    77  	Wmesg     [8]int8
    78  	Xsize     int32
    79  	Xrssize   int16
    80  	Xccount   int16
    81  	Xswrss    int16
    82  	Flag      int32
    83  	Login     [12]int8
    84  	Spare     [4]int32
    85  	Pad_cgo_0 [4]byte
    86  }
    87  
    88  type Proc struct{}
    89  
    90  type Session struct{}
    91  
    92  type ucred struct{}
    93  
    94  type Uucred struct {
    95  	Ref     int32
    96  	UID     uint32
    97  	Ngroups int16
    98  	Groups  [16]uint32
    99  }
   100  
   101  type Upcred struct {
   102  	Pc_lock   [72]int8
   103  	Pc_ucred  *ucred
   104  	P_ruid    uint32
   105  	P_svuid   uint32
   106  	P_rgid    uint32
   107  	P_svgid   uint32
   108  	P_refcnt  int32
   109  	Pad_cgo_0 [4]byte
   110  }
   111  
   112  type Vmspace struct {
   113  	Dummy  int32
   114  	Dummy2 *int8
   115  	Dummy3 [5]int32
   116  	Dummy4 [3]*int8
   117  }
   118  
   119  type Sigacts struct{}
   120  
   121  type ExternProc struct {
   122  	P_un        [16]byte
   123  	P_vmspace   uint64
   124  	P_sigacts   uint64
   125  	Pad_cgo_0   [3]byte
   126  	P_flag      int32
   127  	P_stat      int8
   128  	P_pid       int32
   129  	P_oppid     int32
   130  	P_dupfd     int32
   131  	Pad_cgo_1   [4]byte
   132  	User_stack  uint64
   133  	Exit_thread uint64
   134  	P_debugger  int32
   135  	Sigwait     int32
   136  	P_estcpu    uint32
   137  	P_cpticks   int32
   138  	P_pctcpu    uint32
   139  	Pad_cgo_2   [4]byte
   140  	P_wchan     uint64
   141  	P_wmesg     uint64
   142  	P_swtime    uint32
   143  	P_slptime   uint32
   144  	P_realtimer Itimerval
   145  	P_rtime     Timeval
   146  	P_uticks    uint64
   147  	P_sticks    uint64
   148  	P_iticks    uint64
   149  	P_traceflag int32
   150  	Pad_cgo_3   [4]byte
   151  	P_tracep    uint64
   152  	P_siglist   int32
   153  	Pad_cgo_4   [4]byte
   154  	P_textvp    uint64
   155  	P_holdcnt   int32
   156  	P_sigmask   uint32
   157  	P_sigignore uint32
   158  	P_sigcatch  uint32
   159  	P_priority  uint8
   160  	P_usrpri    uint8
   161  	P_nice      int8
   162  	P_comm      [17]int8
   163  	Pad_cgo_5   [4]byte
   164  	P_pgrp      uint64
   165  	P_addr      uint64
   166  	P_xstat     uint16
   167  	P_acflag    uint16
   168  	Pad_cgo_6   [4]byte
   169  	P_ru        uint64
   170  }
   171  
   172  type Itimerval struct {
   173  	Interval Timeval
   174  	Value    Timeval
   175  }
   176  
   177  type Vnode struct{}
   178  
   179  type Pgrp struct{}
   180  
   181  type UserStruct struct{}
   182  
   183  type Au_session struct {
   184  	Aia_p *AuditinfoAddr
   185  	Mask  AuMask
   186  }
   187  
   188  type Posix_cred struct{}
   189  
   190  type Label struct{}
   191  
   192  type AuditinfoAddr struct {
   193  	Auid   uint32
   194  	Mask   AuMask
   195  	Termid AuTidAddr
   196  	Asid   int32
   197  	Flags  uint64
   198  }
   199  type AuMask struct {
   200  	Success uint32
   201  	Failure uint32
   202  }
   203  type AuTidAddr struct {
   204  	Port int32
   205  	Type uint32
   206  	Addr [4]uint32
   207  }
   208  
   209  type UcredQueue struct {
   210  	Next *ucred
   211  	Prev **ucred
   212  }
   213  

View as plain text