Documentation ¶
Rendered for darwin/amd64
Index ¶
- Constants
- func ProcListallpids() (numPids int, err error)
- func ProcPidpath(pid PID) (path string, err error)
- type In4In6Addr
- type InSockinfo
- type InsiLaddr
- type InsiV4
- type InsiV6
- type KernCTLInfo
- type KernEventInfo
- type NdrvInfo
- type PID
- type ProcBsdinfo
- type ProcFDType
- type ProcFileinfo
- type ProcTaskInfo
- type ProcType
- type SockProto
- type SockbufInfo
- type SocketFDinfo
- type SocketInfo
- type TCPSIState
- type TCPSockinfo
- type UnSocinfo
- type VInfoStat
- type VsockSockinfo
Constants ¶
View Source
const ( ProcPidpathinfoSize = 0x400 ProcPidpathinfoMaxsize = 0x1000 )
View Source
const ( ProcListpidspathPathIsVolume = 0x1 ProcListpidspathExcludeEvtonly = 0x2 )
View Source
const ( SockinfoGeneric = 0x0 SockinfoIn = 0x1 SockinfoKernCtl = 0x6 SockinfoKernEvent = 0x5 SockinfoNdrv = 0x4 SockinfoTCP = 0x2 SockinfoUn = 0x3 SockinfoVsock = 0x7 )
View Source
const MaxComLen = 0x10
View Source
const (
MaxMsgBSize = 0x100000
)
Variables ¶
This section is empty.
Functions ¶
func ProcListallpids ¶
ProcListallpids retursn the list all pids.
func ProcPidpath ¶
ProcPidpath given a pid, returns the full executable name including directory paths and the longer-than-16-chars executable name.
Types ¶
type In4In6Addr ¶
type InSockinfo ¶
type KernCTLInfo ¶
type KernEventInfo ¶
type ProcBsdinfo ¶
type ProcBsdinfo struct { Pbi_flags uint32 Pbi_status uint32 Pbi_xstatus uint32 Pbi_pid uint32 Pbi_ppid uint32 Pbi_uid uint32 Pbi_gid uint32 Pbi_ruid uint32 Pbi_rgid uint32 Pbi_svuid uint32 Pbi_svgid uint32 Rfu_1 uint32 Pbi_comm [16]int8 Pbi_name [32]int8 Pbi_nfiles uint32 Pbi_pgid uint32 Pbi_pjobc uint32 E_tdev uint32 E_tpgid uint32 Pbi_nice int32 Pbi_start_tvsec uint64 Pbi_start_tvusec uint64 }
type ProcFDType ¶
type ProcFDType uint32
const ( ProxFDTypeAtalk ProcFDType = 0x0 ProxFDTypeVnode ProcFDType = 0x1 ProxFDTypeSocket ProcFDType = 0x2 ProxFDTypePshm ProcFDType = 0x3 ProxFDTypePsem ProcFDType = 0x4 ProxFDTypeKqueue ProcFDType = 0x5 ProxFDTypePipe ProcFDType = 0x6 ProxFDTypeFsevents ProcFDType = 0x7 ProxFDTypeNetpolicy ProcFDType = 0x9 )
type ProcFileinfo ¶
type ProcTaskInfo ¶
type ProcTaskInfo struct { Virtual_size uint64 Resident_size uint64 Total_user uint64 Total_system uint64 Threads_user uint64 Threads_system uint64 Policy int32 Faults int32 Pageins int32 Cow_faults int32 Messages_sent int32 Messages_received int32 Syscalls_mach int32 Syscalls_unix int32 Csw int32 Threadnum int32 Numrunning int32 Priority int32 }
type SockbufInfo ¶
type SocketFDinfo ¶
type SocketFDinfo struct { Pfi ProcFileinfo Psi SocketInfo }
type SocketInfo ¶
type SocketInfo struct { Soi_stat VInfoStat Soi_so uint64 Soi_pcb uint64 Soi_type int32 Soi_protocol int32 Soi_family int32 Soi_options int16 Soi_linger int16 Soi_state int16 Soi_qlen int16 Soi_incqlen int16 Soi_qlimit int16 Soi_timeo int16 Soi_error uint16 Soi_oobmark uint32 Soi_rcv SockbufInfo Soi_snd SockbufInfo Soi_kind int32 Rfu_1 uint32 Soi_proto [528]byte }
type TCPSIState ¶
type TCPSIState int32
const ( TSI_S_CLOSED TCPSIState = 0x0 TSI_S_LISTEN TCPSIState = 0x1 TSI_S_SYN_SENT TCPSIState = 0x2 TSI_S_SYN_RECEIVED TCPSIState = 0x3 TSI_S_ESTABLISHED TCPSIState = 0x4 TSI_S__CLOSE_WAIT TCPSIState = 0x5 TSI_S_FIN_WAIT_1 TCPSIState = 0x6 TSI_S_CLOSING TCPSIState = 0x7 TSI_S_LAST_ACK TCPSIState = 0x8 TSI_S_FIN_WAIT_2 TCPSIState = 0x9 TSI_S_TIME_WAIT TCPSIState = 0xa TSI_S_RESERVED TCPSIState = 0xb )
type TCPSockinfo ¶
type VInfoStat ¶
type VInfoStat struct { Dev uint32 Mode uint16 Nlink uint16 Ino uint64 Uid uint32 Gid uint32 Atime int64 Atimensec int64 Mtime int64 Mtimensec int64 Ctime int64 Ctimensec int64 Birthtime int64 Birthtimensec int64 Size int64 Blocks int64 Blksize int32 Flags uint32 Gen uint32 Rdev uint32 Qspare [2]int64 }
Click to show internal directories.
Click to hide internal directories.