SYMBOL INDEX (3061 symbols across 240 files) FILE: common/env.go type EnvKeyType (line 4) | type EnvKeyType constant HostProcEnvKey (line 15) | HostProcEnvKey EnvKeyType = "HOST_PROC" constant HostSysEnvKey (line 16) | HostSysEnvKey EnvKeyType = "HOST_SYS" constant HostEtcEnvKey (line 17) | HostEtcEnvKey EnvKeyType = "HOST_ETC" constant HostVarEnvKey (line 18) | HostVarEnvKey EnvKeyType = "HOST_VAR" constant HostRunEnvKey (line 19) | HostRunEnvKey EnvKeyType = "HOST_RUN" constant HostDevEnvKey (line 20) | HostDevEnvKey EnvKeyType = "HOST_DEV" constant HostRootEnvKey (line 21) | HostRootEnvKey EnvKeyType = "HOST_ROOT" constant HostProcMountinfo (line 22) | HostProcMountinfo EnvKeyType = "HOST_PROC_MOUNTINFO" type EnvMap (line 25) | type EnvMap FILE: cpu/cpu.go type TimesStat (line 21) | type TimesStat struct method String (line 74) | func (c TimesStat) String() string { method Total (line 94) | func (c TimesStat) Total() float64 { type InfoStat (line 35) | type InfoStat struct method String (line 101) | func (c InfoStat) String() string { type lastPercent (line 51) | type lastPercent struct function init (line 62) | func init() { function Counts (line 70) | func Counts(logical bool) (int, error) { function getAllBusy (line 106) | func getAllBusy(t TimesStat) (float64, float64) { function calculateBusy (line 118) | func calculateBusy(t1, t2 TimesStat) float64 { function calculateAllBusy (line 131) | func calculateAllBusy(t1, t2 []TimesStat) ([]float64, error) { function Percent (line 150) | func Percent(interval time.Duration, percpu bool) ([]float64, error) { function PercentWithContext (line 154) | func PercentWithContext(ctx context.Context, interval time.Duration, per... function percentUsedFromLastCall (line 178) | func percentUsedFromLastCall(percpu bool) ([]float64, error) { function percentUsedFromLastCallWithContext (line 182) | func percentUsedFromLastCallWithContext(ctx context.Context, percpu bool... FILE: cpu/cpu_aix.go function Times (line 10) | func Times(percpu bool) ([]TimesStat, error) { function Info (line 14) | func Info() ([]InfoStat, error) { FILE: cpu/cpu_aix_cgo.go function TimesWithContext (line 12) | func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, er... function InfoWithContext (line 46) | func InfoWithContext(ctx context.Context) ([]InfoStat, error) { function CountsWithContext (line 65) | func CountsWithContext(ctx context.Context, logical bool) (int, error) { FILE: cpu/cpu_aix_nocgo.go function TimesWithContext (line 14) | func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, er... function InfoWithContext (line 100) | func InfoWithContext(ctx context.Context) ([]InfoStat, error) { function CountsWithContext (line 151) | func CountsWithContext(ctx context.Context, _ bool) (int, error) { FILE: cpu/cpu_darwin.go constant CPUser (line 22) | CPUser = 0 constant cpNice (line 23) | cpNice = 1 constant cpSys (line 24) | cpSys = 2 constant cpIntr (line 25) | cpIntr = 3 constant cpIdle (line 26) | cpIdle = 4 constant cpUStates (line 27) | cpUStates = 5 constant cpuStateUser (line 32) | cpuStateUser = 0 constant cpuStateSystem (line 33) | cpuStateSystem = 1 constant cpuStateIdle (line 34) | cpuStateIdle = 2 constant cpuStateNice (line 35) | cpuStateNice = 3 constant cpuStateMax (line 36) | cpuStateMax = 4 constant processorCpuLoadInfo (line 41) | processorCpuLoadInfo = 2 type hostCpuLoadInfoData (line 44) | type hostCpuLoadInfoData struct function init (line 51) | func init() { function Times (line 59) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 63) | func TimesWithContext(_ context.Context, percpu bool) ([]TimesStat, erro... function Info (line 78) | func Info() ([]InfoStat, error) { function InfoWithContext (line 82) | func InfoWithContext(_ context.Context) ([]InfoStat, error) { function CountsWithContext (line 125) | func CountsWithContext(_ context.Context, logical bool) (int, error) { function perCPUTimes (line 141) | func perCPUTimes(sys *common.SystemLib) ([]TimesStat, error) { function allCPUTimes (line 175) | func allCPUTimes(sys *common.SystemLib) ([]TimesStat, error) { FILE: cpu/cpu_darwin_arm64.go function getFrequency (line 15) | func getFrequency() (float64, error) { FILE: cpu/cpu_darwin_fallback.go function getFrequency (line 8) | func getFrequency() (float64, error) { FILE: cpu/cpu_darwin_test.go function TestInfo_AppleSilicon (line 15) | func TestInfo_AppleSilicon(t *testing.T) { FILE: cpu/cpu_dragonfly.go function init (line 31) | func init() { function timeStat (line 39) | func timeStat(name string, t *cpuTimes) *TimesStat { function Times (line 50) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 54) | func TimesWithContext(_ context.Context, percpu bool) ([]TimesStat, erro... function Info (line 91) | func Info() ([]InfoStat, error) { function InfoWithContext (line 95) | func InfoWithContext(_ context.Context) ([]InfoStat, error) { function parseDmesgBoot (line 129) | func parseDmesgBoot(fileName string) (InfoStat, error) { function CountsWithContext (line 160) | func CountsWithContext(_ context.Context, _ bool) (int, error) { FILE: cpu/cpu_dragonfly_amd64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_fallback.go function Times (line 13) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 17) | func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, er... function Info (line 21) | func Info() ([]InfoStat, error) { function InfoWithContext (line 25) | func InfoWithContext(ctx context.Context) ([]InfoStat, error) { function CountsWithContext (line 29) | func CountsWithContext(ctx context.Context, logical bool) (int, error) { FILE: cpu/cpu_freebsd.go function init (line 32) | func init() { function timeStat (line 40) | func timeStat(name string, t *cpuTimes) *TimesStat { function Times (line 51) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 55) | func TimesWithContext(_ context.Context, percpu bool) ([]TimesStat, erro... function Info (line 92) | func Info() ([]InfoStat, error) { function InfoWithContext (line 96) | func InfoWithContext(_ context.Context) ([]InfoStat, error) { function parseDmesgBoot (line 127) | func parseDmesgBoot(fileName string) (InfoStat, int, error) { function CountsWithContext (line 172) | func CountsWithContext(_ context.Context, _ bool) (int, error) { FILE: cpu/cpu_freebsd_386.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_freebsd_amd64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_freebsd_arm.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_freebsd_arm64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_freebsd_test.go function TestParseDmesgBoot (line 15) | func TestParseDmesgBoot(t *testing.T) { FILE: cpu/cpu_linux.go function init (line 93) | func init() { function Times (line 101) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 105) | func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, er... function sysCPUPath (line 140) | func sysCPUPath(ctx context.Context, cpu int32, relPath string) string { function finishCPUInfo (line 144) | func finishCPUInfo(ctx context.Context, c *InfoStat) { function Info (line 182) | func Info() ([]InfoStat, error) { function InfoWithContext (line 186) | func InfoWithContext(ctx context.Context) ([]InfoStat, error) { function parseStatLine (line 351) | func parseStatLine(line string) (*TimesStat, error) { function CountsWithContext (line 430) | func CountsWithContext(ctx context.Context, logical bool) (int, error) { function riscvISAParse (line 523) | func riscvISAParse(s string) []string { FILE: cpu/cpu_linux_test.go function TestTimesEmpty (line 18) | func TestTimesEmpty(t *testing.T) { function TestParseStatLine_424 (line 26) | func TestParseStatLine_424(t *testing.T) { function TestCountsAgainstLscpu (line 44) | func TestCountsAgainstLscpu(t *testing.T) { function TestCountsLogicalAndroid_1037 (line 95) | func TestCountsLogicalAndroid_1037(t *testing.T) { // https://github.com... function TestCPUInfoModelNameWithColon_1958 (line 104) | func TestCPUInfoModelNameWithColon_1958(t *testing.T) { // https://githu... FILE: cpu/cpu_netbsd.go constant ctlKern (line 20) | ctlKern = 1 constant ctlHw (line 21) | ctlHw = 6 constant kernCpTime (line 22) | kernCpTime = 51 function init (line 27) | func init() { function Times (line 35) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 39) | func TimesWithContext(_ context.Context, percpu bool) ([]TimesStat, erro... function Info (line 87) | func Info() ([]InfoStat, error) { function InfoWithContext (line 91) | func InfoWithContext(_ context.Context) ([]InfoStat, error) { function CountsWithContext (line 119) | func CountsWithContext(_ context.Context, _ bool) (int, error) { FILE: cpu/cpu_netbsd_amd64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_netbsd_arm.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_netbsd_arm64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_openbsd.go constant cpuOnline (line 20) | cpuOnline = 0x0001 constant ctlKern (line 23) | ctlKern = 1 constant ctlHw (line 24) | ctlHw = 6 constant smt (line 25) | smt = 24 constant kernCpTime (line 26) | kernCpTime = 40 constant kernCPUStats (line 27) | kernCPUStats = 85 type cpuStats (line 32) | type cpuStats struct function init (line 45) | func init() { function Times (line 53) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 57) | func TimesWithContext(_ context.Context, percpu bool) ([]TimesStat, erro... function Info (line 108) | func Info() ([]InfoStat, error) { function InfoWithContext (line 112) | func InfoWithContext(_ context.Context) ([]InfoStat, error) { function CountsWithContext (line 137) | func CountsWithContext(_ context.Context, _ bool) (int, error) { FILE: cpu/cpu_openbsd_386.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_openbsd_amd64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_openbsd_arm.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_openbsd_arm64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_openbsd_riscv64.go type cpuTimes (line 4) | type cpuTimes struct FILE: cpu/cpu_plan9.go function Times (line 16) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 20) | func TimesWithContext(ctx context.Context, _ bool) ([]TimesStat, error) { function Info (line 41) | func Info() ([]InfoStat, error) { function InfoWithContext (line 45) | func InfoWithContext(_ context.Context) ([]InfoStat, error) { function CountsWithContext (line 49) | func CountsWithContext(_ context.Context, _ bool) (int, error) { FILE: cpu/cpu_plan9_test.go function TestTimesPlan9 (line 36) | func TestTimesPlan9(t *testing.T) { FILE: cpu/cpu_solaris.go function init (line 19) | func init() { function msum (line 28) | func msum(x map[float64]float64) float64 { function Times (line 36) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 42) | func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, er... function Info (line 117) | func Info() ([]InfoStat, error) { function InfoWithContext (line 121) | func InfoWithContext(ctx context.Context) ([]InfoStat, error) { function parseISAInfo (line 154) | func parseISAInfo(cmdOutput string) ([]string, error) { constant psrNumCoresOffset (line 171) | psrNumCoresOffset = 1 constant psrNumCoresHTOffset (line 172) | psrNumCoresHTOffset = 3 constant psrNumHTOffset (line 173) | psrNumHTOffset = 4 constant psrVendorIDOffset (line 174) | psrVendorIDOffset = 5 constant psrFamilyOffset (line 175) | psrFamilyOffset = 7 constant psrModelOffset (line 176) | psrModelOffset = 8 constant psrStepOffset (line 177) | psrStepOffset = 9 constant psrClockOffset (line 178) | psrClockOffset = 10 constant psrModelNameOffset (line 179) | psrModelNameOffset = 11 function parseProcessorInfo (line 182) | func parseProcessorInfo(cmdOutput string) ([]InfoStat, error) { function CountsWithContext (line 265) | func CountsWithContext(_ context.Context, _ bool) (int, error) { FILE: cpu/cpu_solaris_test.go function TestParseISAInfo (line 14) | func TestParseISAInfo(t *testing.T) { function TestParseProcessorInfo (line 67) | func TestParseProcessorInfo(t *testing.T) { FILE: cpu/cpu_test.go function TestTimes (line 17) | func TestTimes(t *testing.T) { function TestCounts (line 67) | func TestCounts(t *testing.T) { function TestTimeStat_String (line 85) | func TestTimeStat_String(t *testing.T) { function TestInfo (line 96) | func TestInfo(t *testing.T) { function testPercent (line 115) | func testPercent(t *testing.T, percpu bool) { function testPercentLastUsed (line 150) | func testPercentLastUsed(t *testing.T, percpu bool) { function TestPercent (line 185) | func TestPercent(t *testing.T) { function TestPercentPerCpu (line 189) | func TestPercentPerCpu(t *testing.T) { function TestPercentIntervalZero (line 193) | func TestPercentIntervalZero(t *testing.T) { function TestPercentIntervalZeroPerCPU (line 197) | func TestPercentIntervalZeroPerCPU(t *testing.T) { FILE: cpu/cpu_windows.go type win32_Processor (line 30) | type win32_Processor struct type win32_SystemProcessorPerformanceInformation (line 46) | type win32_SystemProcessorPerformanceInformation struct type processorPowerInformation (line 56) | type processorPowerInformation struct constant ClocksPerSec (line 66) | ClocksPerSec = 10000000.0 constant win32_SystemProcessorPerformanceInformationClass (line 70) | win32_SystemProcessorPerformanceInformationClass = 8 constant win32_SystemProcessorPerformanceInfoSize (line 73) | win32_SystemProcessorPerformanceInfoSize = uint32(unsafe.Sizeof(win32_Sy... constant firmwareTableProviderSignatureRSMB (line 75) | firmwareTableProviderSignatureRSMB = 0x52534d42 constant smBiosHeaderSize (line 76) | smBiosHeaderSize = 8 constant smbiosEndOfTable (line 77) | smbiosEndOfTable = 127 constant smbiosTypeProcessor (line 78) | smbiosTypeProcessor = 4 constant smbiosProcessorMinLength (line 79) | smbiosProcessorMinLength = 0x18 constant centralProcessorRegistryKey (line 81) | centralProcessorRegistryKey = `HARDWARE\DESCRIPTION\System\CentralProces... type relationship (line 84) | type relationship constant relationProcessorCore (line 88) | relationProcessorCore = relationship(0) constant relationProcessorPackage (line 89) | relationProcessorPackage = relationship(3) constant kAffinitySize (line 93) | kAffinitySize = unsafe.Sizeof(int(0)) constant maxLogicalProcessorsPerGroup (line 95) | maxLogicalProcessorsPerGroup = uint32(unsafe.Sizeof(kAffinitySize * 8)) constant processorInformation (line 97) | processorInformation = 11 function Times (line 101) | func Times(percpu bool) ([]TimesStat, error) { function TimesWithContext (line 105) | func TimesWithContext(_ context.Context, percpu bool) ([]TimesStat, erro... function Info (line 140) | func Info() ([]InfoStat, error) { function forEachSetBit64 (line 150) | func forEachSetBit64(mask uint64, fn func(bit int)) { function getProcessorPowerInformation (line 159) | func getProcessorPowerInformation(ctx context.Context) ([]processorPower... function InfoWithContext (line 184) | func InfoWithContext(ctx context.Context) ([]InfoStat, error) { function perCPUTimes (line 245) | func perCPUTimes() ([]TimesStat, error) { function perfInfo (line 265) | func perfInfo() ([]win32_SystemProcessorPerformanceInformation, error) { type systemInfo (line 304) | type systemInfo struct type groupAffinity (line 318) | type groupAffinity struct type processorRelationship (line 325) | type processorRelationship struct type systemLogicalProcessorInformationEx (line 334) | type systemLogicalProcessorInformationEx struct function getSMBIOSProcessorInfo (line 342) | func getSMBIOSProcessorInfo() (family uint8, processorId string, err err... function getSystemLogicalProcessorInformationEx (line 414) | func getSystemLogicalProcessorInformationEx(relationship relationship) (... function getPhysicalCoreCount (line 443) | func getPhysicalCoreCount() (int, error) { function getRegistryStringValueIfUnset (line 448) | func getRegistryStringValueIfUnset(key registry.Key, keyName, value stri... function CountsWithContext (line 459) | func CountsWithContext(_ context.Context, logical bool) (int, error) { FILE: disk/disk.go type UsageStat (line 15) | type UsageStat struct method String (line 52) | func (d UsageStat) String() string { type PartitionStat (line 28) | type PartitionStat struct method String (line 57) | func (d PartitionStat) String() string { type IOCountersStat (line 35) | type IOCountersStat struct method String (line 62) | func (d IOCountersStat) String() string { function Usage (line 70) | func Usage(path string) (*UsageStat, error) { function Partitions (line 79) | func Partitions(all bool) ([]PartitionStat, error) { function IOCounters (line 83) | func IOCounters(names ...string) (map[string]IOCountersStat, error) { function SerialNumber (line 89) | func SerialNumber(name string) (string, error) { function Label (line 97) | func Label(name string) (string, error) { FILE: disk/disk_aix.go function LabelWithContext (line 14) | func LabelWithContext(_ context.Context, _ string) (string, error) { function SerialNumberWithContext (line 21) | func SerialNumberWithContext(ctx context.Context, name string) (string, ... FILE: disk/disk_aix_cgo.go function IOCountersWithContext (line 18) | func IOCountersWithContext(_ context.Context, names ...string) (map[stri... function init (line 57) | func init() { function PartitionsWithContext (line 66) | func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionSt... function UsageWithContext (line 89) | func UsageWithContext(ctx context.Context, path string) (*UsageStat, err... FILE: disk/disk_aix_nocgo.go function IOCountersWithContext (line 29) | func IOCountersWithContext(_ context.Context, _ ...string) (map[string]I... function PartitionsWithContext (line 33) | func PartitionsWithContext(ctx context.Context, _ bool) ([]PartitionStat... function getFsType (line 87) | func getFsType(stat unix.Statfs_t) string { function UsageWithContext (line 91) | func UsageWithContext(ctx context.Context, path string) (*UsageStat, err... function GetMountFSTypeWithContext (line 178) | func GetMountFSTypeWithContext(ctx context.Context, mp string) (string, ... FILE: disk/disk_darwin.go function PartitionsWithContext (line 21) | func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, ... function getFsType (line 96) | func getFsType(stat unix.Statfs_t) string { type spnvmeDataTypeItem (line 100) | type spnvmeDataTypeItem struct type spnvmeDataWrapper (line 122) | type spnvmeDataWrapper struct function SerialNumberWithContext (line 128) | func SerialNumberWithContext(ctx context.Context, _ string) (string, err... function LabelWithContext (line 156) | func LabelWithContext(_ context.Context, _ string) (string, error) { function IOCountersWithContext (line 160) | func IOCountersWithContext(_ context.Context, names ...string) (map[stri... constant kIOBSDNameKey (line 229) | kIOBSDNameKey = "BSD Name" constant kIOBlockStorageDriverStatisticsKey (line 233) | kIOBlockStorageDriverStatisticsKey = "Statistics" constant kIOBlockStorageDriverStatisticsBytesReadKey (line 234) | kIOBlockStorageDriverStatisticsBytesReadKey = "Bytes (Read)" constant kIOBlockStorageDriverStatisticsBytesWrittenKey (line 235) | kIOBlockStorageDriverStatisticsBytesWrittenKey = "Bytes (Write)" constant kIOBlockStorageDriverStatisticsReadsKey (line 236) | kIOBlockStorageDriverStatisticsReadsKey = "Operations (Read)" constant kIOBlockStorageDriverStatisticsWritesKey (line 237) | kIOBlockStorageDriverStatisticsWritesKey = "Operations (Write)" constant kIOBlockStorageDriverStatisticsTotalReadTimeKey (line 238) | kIOBlockStorageDriverStatisticsTotalReadTimeKey = "Total Time (Read)" constant kIOBlockStorageDriverStatisticsTotalWriteTimeKey (line 239) | kIOBlockStorageDriverStatisticsTotalWriteTimeKey = "Total Time (Write)" type ioCounters (line 242) | type ioCounters struct method getDriveStat (line 247) | func (i *ioCounters) getDriveStat(d uint32) (*IOCountersStat, error) { method fillStat (line 284) | func (i *ioCounters) fillStat(d uint32) (*IOCountersStat, error) { method cfStr (line 324) | func (i *ioCounters) cfStr(str string) unsafe.Pointer { FILE: disk/disk_fallback.go function IOCountersWithContext (line 12) | func IOCountersWithContext(_ context.Context, _ ...string) (map[string]I... function PartitionsWithContext (line 16) | func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, ... function UsageWithContext (line 20) | func UsageWithContext(_ context.Context, _ string) (*UsageStat, error) { function SerialNumberWithContext (line 24) | func SerialNumberWithContext(_ context.Context, _ string) (string, error) { function LabelWithContext (line 28) | func LabelWithContext(_ context.Context, _ string) (string, error) { FILE: disk/disk_freebsd.go function PartitionsWithContext (line 22) | func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, ... function IOCountersWithContext (line 101) | func IOCountersWithContext(ctx context.Context, names ...string) (map[st... method Compute (line 147) | func (b bintime) Compute() float64 { function parsedevstat (line 154) | func parsedevstat(buf []byte) (devstat, error) { function getFsType (line 164) | func getFsType(stat unix.Statfs_t) string { function SerialNumberWithContext (line 168) | func SerialNumberWithContext(ctx context.Context, name string) (string, ... function LabelWithContext (line 191) | func LabelWithContext(_ context.Context, _ string) (string, error) { FILE: disk/disk_freebsd_386.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeofLongDouble (line 13) | sizeofLongDouble = 0x8 constant devstat_NO_DATA (line 15) | devstat_NO_DATA = 0x00 constant devstat_READ (line 16) | devstat_READ = 0x01 constant devstat_WRITE (line 17) | devstat_WRITE = 0x02 constant devstat_FREE (line 18) | devstat_FREE = 0x03 constant sizeOfdevstat (line 22) | sizeOfdevstat = 0xf0 type _C_short (line 26) | type _C_short type _C_int (line 27) | type _C_int type _C_long (line 28) | type _C_long type _C_long_long (line 29) | type _C_long_long type _C_long_double (line 30) | type _C_long_double type devstat (line 33) | type devstat struct type bintime (line 57) | type bintime struct type _Ctype_struct___0 (line 62) | type _Ctype_struct___0 struct FILE: disk/disk_freebsd_amd64.go constant sizeofPtr (line 8) | sizeofPtr = 0x8 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeofLongDouble (line 13) | sizeofLongDouble = 0x8 constant devstat_NO_DATA (line 15) | devstat_NO_DATA = 0x00 constant devstat_READ (line 16) | devstat_READ = 0x01 constant devstat_WRITE (line 17) | devstat_WRITE = 0x02 constant devstat_FREE (line 18) | devstat_FREE = 0x03 constant sizeOfdevstat (line 22) | sizeOfdevstat = 0x120 type _C_short (line 26) | type _C_short type _C_int (line 27) | type _C_int type _C_long (line 28) | type _C_long type _C_long_long (line 29) | type _C_long_long type _C_long_double (line 30) | type _C_long_double type devstat (line 33) | type devstat struct type bintime (line 60) | type bintime struct type _Ctype_struct___0 (line 65) | type _Ctype_struct___0 struct FILE: disk/disk_freebsd_arm.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeofLongDouble (line 13) | sizeofLongDouble = 0x8 constant devstat_NO_DATA (line 15) | devstat_NO_DATA = 0x00 constant devstat_READ (line 16) | devstat_READ = 0x01 constant devstat_WRITE (line 17) | devstat_WRITE = 0x02 constant devstat_FREE (line 18) | devstat_FREE = 0x03 constant sizeOfdevstat (line 22) | sizeOfdevstat = 0xf0 type _C_short (line 26) | type _C_short type _C_int (line 27) | type _C_int type _C_long (line 28) | type _C_long type _C_long_long (line 29) | type _C_long_long type _C_long_double (line 30) | type _C_long_double type devstat (line 33) | type devstat struct type bintime (line 57) | type bintime struct type _Ctype_struct___0 (line 62) | type _Ctype_struct___0 struct FILE: disk/disk_freebsd_arm64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeofLongDouble (line 15) | sizeofLongDouble = 0x8 constant devstat_NO_DATA (line 17) | devstat_NO_DATA = 0x00 constant devstat_READ (line 18) | devstat_READ = 0x01 constant devstat_WRITE (line 19) | devstat_WRITE = 0x02 constant devstat_FREE (line 20) | devstat_FREE = 0x03 constant sizeOfdevstat (line 24) | sizeOfdevstat = 0x120 type _C_short (line 28) | type _C_short type _C_int (line 29) | type _C_int type _C_long (line 30) | type _C_long type _C_long_long (line 31) | type _C_long_long type _C_long_double (line 32) | type _C_long_double type devstat (line 35) | type devstat struct type bintime (line 59) | type bintime struct type _Ctype_struct___0 (line 64) | type _Ctype_struct___0 struct FILE: disk/disk_linux.go constant sectorSize (line 23) | sectorSize = 512 constant ADFS_SUPER_MAGIC (line 28) | ADFS_SUPER_MAGIC = 0xadf5 constant AFFS_SUPER_MAGIC (line 29) | AFFS_SUPER_MAGIC = 0xADFF constant BDEVFS_MAGIC (line 30) | BDEVFS_MAGIC = 0x62646576 constant BEFS_SUPER_MAGIC (line 31) | BEFS_SUPER_MAGIC = 0x42465331 constant BFS_MAGIC (line 32) | BFS_MAGIC = 0x1BADFACE constant BINFMTFS_MAGIC (line 33) | BINFMTFS_MAGIC = 0x42494e4d constant BTRFS_SUPER_MAGIC (line 34) | BTRFS_SUPER_MAGIC = 0x9123683E constant CGROUP_SUPER_MAGIC (line 35) | CGROUP_SUPER_MAGIC = 0x27e0eb constant CIFS_MAGIC_NUMBER (line 36) | CIFS_MAGIC_NUMBER = 0xFF534D42 constant CODA_SUPER_MAGIC (line 37) | CODA_SUPER_MAGIC = 0x73757245 constant COH_SUPER_MAGIC (line 38) | COH_SUPER_MAGIC = 0x012FF7B7 constant CRAMFS_MAGIC (line 39) | CRAMFS_MAGIC = 0x28cd3d45 constant DEBUGFS_MAGIC (line 40) | DEBUGFS_MAGIC = 0x64626720 constant DEVFS_SUPER_MAGIC (line 41) | DEVFS_SUPER_MAGIC = 0x1373 constant DEVPTS_SUPER_MAGIC (line 42) | DEVPTS_SUPER_MAGIC = 0x1cd1 constant EFIVARFS_MAGIC (line 43) | EFIVARFS_MAGIC = 0xde5e81e4 constant EFS_SUPER_MAGIC (line 44) | EFS_SUPER_MAGIC = 0x00414A53 constant EXT_SUPER_MAGIC (line 45) | EXT_SUPER_MAGIC = 0x137D constant EXT2_OLD_SUPER_MAGIC (line 46) | EXT2_OLD_SUPER_MAGIC = 0xEF51 constant EXT2_SUPER_MAGIC (line 47) | EXT2_SUPER_MAGIC = 0xEF53 constant EXT3_SUPER_MAGIC (line 48) | EXT3_SUPER_MAGIC = 0xEF53 constant EXT4_SUPER_MAGIC (line 49) | EXT4_SUPER_MAGIC = 0xEF53 constant FUSE_SUPER_MAGIC (line 50) | FUSE_SUPER_MAGIC = 0x65735546 constant FUTEXFS_SUPER_MAGIC (line 51) | FUTEXFS_SUPER_MAGIC = 0xBAD1DEA constant HFS_SUPER_MAGIC (line 52) | HFS_SUPER_MAGIC = 0x4244 constant HFSPLUS_SUPER_MAGIC (line 53) | HFSPLUS_SUPER_MAGIC = 0x482b constant HOSTFS_SUPER_MAGIC (line 54) | HOSTFS_SUPER_MAGIC = 0x00c0ffee constant HPFS_SUPER_MAGIC (line 55) | HPFS_SUPER_MAGIC = 0xF995E849 constant HUGETLBFS_MAGIC (line 56) | HUGETLBFS_MAGIC = 0x958458f6 constant ISOFS_SUPER_MAGIC (line 57) | ISOFS_SUPER_MAGIC = 0x9660 constant JFFS2_SUPER_MAGIC (line 58) | JFFS2_SUPER_MAGIC = 0x72b6 constant JFS_SUPER_MAGIC (line 59) | JFS_SUPER_MAGIC = 0x3153464a constant MINIX_SUPER_MAGIC (line 60) | MINIX_SUPER_MAGIC = 0x137F constant MINIX_SUPER_MAGIC2 (line 61) | MINIX_SUPER_MAGIC2 = 0x138F constant MINIX2_SUPER_MAGIC (line 62) | MINIX2_SUPER_MAGIC = 0x2468 constant MINIX2_SUPER_MAGIC2 (line 63) | MINIX2_SUPER_MAGIC2 = 0x2478 constant MINIX3_SUPER_MAGIC (line 64) | MINIX3_SUPER_MAGIC = 0x4d5a constant MQUEUE_MAGIC (line 65) | MQUEUE_MAGIC = 0x19800202 constant MSDOS_SUPER_MAGIC (line 66) | MSDOS_SUPER_MAGIC = 0x4d44 constant NCP_SUPER_MAGIC (line 67) | NCP_SUPER_MAGIC = 0x564c constant NFS_SUPER_MAGIC (line 68) | NFS_SUPER_MAGIC = 0x6969 constant NILFS_SUPER_MAGIC (line 69) | NILFS_SUPER_MAGIC = 0x3434 constant NTFS_SB_MAGIC (line 70) | NTFS_SB_MAGIC = 0x5346544e constant OCFS2_SUPER_MAGIC (line 71) | OCFS2_SUPER_MAGIC = 0x7461636f constant OPENPROM_SUPER_MAGIC (line 72) | OPENPROM_SUPER_MAGIC = 0x9fa1 constant PIPEFS_MAGIC (line 73) | PIPEFS_MAGIC = 0x50495045 constant PROC_SUPER_MAGIC (line 74) | PROC_SUPER_MAGIC = 0x9fa0 constant PSTOREFS_MAGIC (line 75) | PSTOREFS_MAGIC = 0x6165676C constant QNX4_SUPER_MAGIC (line 76) | QNX4_SUPER_MAGIC = 0x002f constant QNX6_SUPER_MAGIC (line 77) | QNX6_SUPER_MAGIC = 0x68191122 constant RAMFS_MAGIC (line 78) | RAMFS_MAGIC = 0x858458f6 constant REISERFS_SUPER_MAGIC (line 79) | REISERFS_SUPER_MAGIC = 0x52654973 constant ROMFS_MAGIC (line 80) | ROMFS_MAGIC = 0x7275 constant SELINUX_MAGIC (line 81) | SELINUX_MAGIC = 0xf97cff8c constant SMACK_MAGIC (line 82) | SMACK_MAGIC = 0x43415d53 constant SMB_SUPER_MAGIC (line 83) | SMB_SUPER_MAGIC = 0x517B constant SOCKFS_MAGIC (line 84) | SOCKFS_MAGIC = 0x534F434B constant SQUASHFS_MAGIC (line 85) | SQUASHFS_MAGIC = 0x73717368 constant SYSFS_MAGIC (line 86) | SYSFS_MAGIC = 0x62656572 constant SYSV2_SUPER_MAGIC (line 87) | SYSV2_SUPER_MAGIC = 0x012FF7B6 constant SYSV4_SUPER_MAGIC (line 88) | SYSV4_SUPER_MAGIC = 0x012FF7B5 constant TMPFS_MAGIC (line 89) | TMPFS_MAGIC = 0x01021994 constant UDF_SUPER_MAGIC (line 90) | UDF_SUPER_MAGIC = 0x15013346 constant UFS_MAGIC (line 91) | UFS_MAGIC = 0x00011954 constant USBDEVICE_SUPER_MAGIC (line 92) | USBDEVICE_SUPER_MAGIC = 0x9fa2 constant V9FS_MAGIC (line 93) | V9FS_MAGIC = 0x01021997 constant VXFS_SUPER_MAGIC (line 94) | VXFS_SUPER_MAGIC = 0xa501FCF5 constant XENFS_SUPER_MAGIC (line 95) | XENFS_SUPER_MAGIC = 0xabba1974 constant XENIX_SUPER_MAGIC (line 96) | XENIX_SUPER_MAGIC = 0x012FF7B4 constant XFS_SUPER_MAGIC (line 97) | XFS_SUPER_MAGIC = 0x58465342 constant _XIAFS_SUPER_MAGIC (line 98) | _XIAFS_SUPER_MAGIC = 0x012FD16D constant AFS_SUPER_MAGIC (line 100) | AFS_SUPER_MAGIC = 0x5346414F constant AUFS_SUPER_MAGIC (line 101) | AUFS_SUPER_MAGIC = 0x61756673 constant ANON_INODE_FS_SUPER_MAGIC (line 102) | ANON_INODE_FS_SUPER_MAGIC = 0x09041934 constant BCACHEFS_SUPER_MAGIC (line 103) | BCACHEFS_SUPER_MAGIC = 0xCA451A4E constant BPF_FS_MAGIC (line 104) | BPF_FS_MAGIC = 0xCAFE4A11 constant CEPH_SUPER_MAGIC (line 105) | CEPH_SUPER_MAGIC = 0x00C36400 constant CGROUP2_SUPER_MAGIC (line 106) | CGROUP2_SUPER_MAGIC = 0x63677270 constant CONFIGFS_MAGIC (line 107) | CONFIGFS_MAGIC = 0x62656570 constant ECRYPTFS_SUPER_MAGIC (line 108) | ECRYPTFS_SUPER_MAGIC = 0xF15F constant F2FS_SUPER_MAGIC (line 109) | F2FS_SUPER_MAGIC = 0xF2F52010 constant FAT_SUPER_MAGIC (line 110) | FAT_SUPER_MAGIC = 0x4006 constant FHGFS_SUPER_MAGIC (line 111) | FHGFS_SUPER_MAGIC = 0x19830326 constant FUSEBLK_SUPER_MAGIC (line 112) | FUSEBLK_SUPER_MAGIC = 0x65735546 constant FUSECTL_SUPER_MAGIC (line 113) | FUSECTL_SUPER_MAGIC = 0x65735543 constant GFS_SUPER_MAGIC (line 114) | GFS_SUPER_MAGIC = 0x1161970 constant GPFS_SUPER_MAGIC (line 115) | GPFS_SUPER_MAGIC = 0x47504653 constant MTD_INODE_FS_SUPER_MAGIC (line 116) | MTD_INODE_FS_SUPER_MAGIC = 0x11307854 constant INOTIFYFS_SUPER_MAGIC (line 117) | INOTIFYFS_SUPER_MAGIC = 0x2BAD1DEA constant ISOFS_R_WIN_SUPER_MAGIC (line 118) | ISOFS_R_WIN_SUPER_MAGIC = 0x4004 constant ISOFS_WIN_SUPER_MAGIC (line 119) | ISOFS_WIN_SUPER_MAGIC = 0x4000 constant JFFS_SUPER_MAGIC (line 120) | JFFS_SUPER_MAGIC = 0x07C0 constant KAFS_SUPER_MAGIC (line 121) | KAFS_SUPER_MAGIC = 0x6B414653 constant LUSTRE_SUPER_MAGIC (line 122) | LUSTRE_SUPER_MAGIC = 0x0BD00BD0 constant NFSD_SUPER_MAGIC (line 123) | NFSD_SUPER_MAGIC = 0x6E667364 constant NSFS_MAGIC (line 124) | NSFS_MAGIC = 0x6E736673 constant PANFS_SUPER_MAGIC (line 125) | PANFS_SUPER_MAGIC = 0xAAD7AAEA constant RPC_PIPEFS_SUPER_MAGIC (line 126) | RPC_PIPEFS_SUPER_MAGIC = 0x67596969 constant SECURITYFS_SUPER_MAGIC (line 127) | SECURITYFS_SUPER_MAGIC = 0x73636673 constant TRACEFS_MAGIC (line 128) | TRACEFS_MAGIC = 0x74726163 constant UFS_BYTESWAPPED_SUPER_MAGIC (line 129) | UFS_BYTESWAPPED_SUPER_MAGIC = 0x54190100 constant VMHGFS_SUPER_MAGIC (line 130) | VMHGFS_SUPER_MAGIC = 0xBACBACBC constant VZFS_SUPER_MAGIC (line 131) | VZFS_SUPER_MAGIC = 0x565A4653 constant ZFS_SUPER_MAGIC (line 132) | ZFS_SUPER_MAGIC = 0x2FC12FC1 function readMountFile (line 241) | func readMountFile(root string) (lines []string, useMounts bool, filenam... function PartitionsWithContext (line 261) | func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionSt... function parseFieldsOnMounts (line 303) | func parseFieldsOnMounts(lines []string, all bool, fs []string) []Partit... function parseFieldsOnMountinfo (line 326) | func parseFieldsOnMountinfo(ctx context.Context, lines []string, all boo... function getFileSystems (line 425) | func getFileSystems(ctx context.Context) ([]string, error) { function IOCountersWithContext (line 447) | func IOCountersWithContext(ctx context.Context, names ...string) (map[st... function udevData (line 548) | func udevData(ctx context.Context, major, minor uint32, name string) (st... function SerialNumberWithContext (line 566) | func SerialNumberWithContext(ctx context.Context, name string) (string, ... function LabelWithContext (line 590) | func LabelWithContext(ctx context.Context, name string) (string, error) { function getFsType (line 615) | func getFsType(stat unix.Statfs_t) string { function getDeviceName (line 628) | func getDeviceName(name string) string { FILE: disk/disk_linux_test.go function Test_parseFieldsOnMountinfo (line 14) | func Test_parseFieldsOnMountinfo(t *testing.T) { function Test_parseFieldsOnMountinfo_multiMount (line 59) | func Test_parseFieldsOnMountinfo_multiMount(t *testing.T) { function Test_parseFieldsOnMounts (line 82) | func Test_parseFieldsOnMounts(t *testing.T) { function TestGetDeviceName (line 117) | func TestGetDeviceName(t *testing.T) { FILE: disk/disk_netbsd.go constant MNT_RDONLY (line 17) | MNT_RDONLY = 0x00000001 constant MNT_SYNCHRONOUS (line 18) | MNT_SYNCHRONOUS = 0x00000002 constant MNT_NOEXEC (line 19) | MNT_NOEXEC = 0x00000004 constant MNT_NOSUID (line 20) | MNT_NOSUID = 0x00000008 constant MNT_NODEV (line 21) | MNT_NODEV = 0x00000010 constant MNT_ASYNC (line 22) | MNT_ASYNC = 0x00000040 constant MNT_NOATIME (line 23) | MNT_NOATIME = 0x04000000 constant MNT_SOFTDEP (line 24) | MNT_SOFTDEP = 0x80000000 function PartitionsWithContext (line 27) | func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, ... function IOCountersWithContext (line 101) | func IOCountersWithContext(_ context.Context, _ ...string) (map[string]I... function UsageWithContext (line 106) | func UsageWithContext(_ context.Context, path string) (*UsageStat, error) { function getFsType (line 144) | func getFsType(stat Statvfs) string { function SerialNumberWithContext (line 148) | func SerialNumberWithContext(_ context.Context, _ string) (string, error) { function LabelWithContext (line 152) | func LabelWithContext(_ context.Context, _ string) (string, error) { FILE: disk/disk_netbsd_amd64.go constant sizeOfStatvfs (line 10) | sizeOfStatvfs = 0xce0 type Statvfs (line 14) | type Statvfs struct type _Ctype_struct___0 (line 43) | type _Ctype_struct___0 struct FILE: disk/disk_netbsd_arm.go constant sizeOfStatvfs (line 10) | sizeOfStatvfs = 0xcc8 type Statvfs (line 14) | type Statvfs struct type _Ctype_struct___0 (line 44) | type _Ctype_struct___0 struct FILE: disk/disk_netbsd_arm64.go constant sizeOfStatvfs (line 10) | sizeOfStatvfs = 0xce0 type Statvfs (line 14) | type Statvfs struct type _Ctype_struct___0 (line 43) | type _Ctype_struct___0 struct FILE: disk/disk_openbsd.go function PartitionsWithContext (line 16) | func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, ... function IOCountersWithContext (line 74) | func IOCountersWithContext(_ context.Context, names ...string) (map[stri... function parseDiskstats (line 114) | func parseDiskstats(buf []byte) (Diskstats, error) { function UsageWithContext (line 124) | func UsageWithContext(_ context.Context, path string) (*UsageStat, error) { function getFsType (line 149) | func getFsType(stat unix.Statfs_t) string { function SerialNumberWithContext (line 153) | func SerialNumberWithContext(_ context.Context, _ string) (string, error) { function LabelWithContext (line 157) | func LabelWithContext(_ context.Context, _ string) (string, error) { FILE: disk/disk_openbsd_386.go constant devstat_NO_DATA (line 10) | devstat_NO_DATA = 0x00 constant devstat_READ (line 11) | devstat_READ = 0x01 constant devstat_WRITE (line 12) | devstat_WRITE = 0x02 constant devstat_FREE (line 13) | devstat_FREE = 0x03 constant sizeOfDiskstats (line 17) | sizeOfDiskstats = 0x60 type Diskstats (line 20) | type Diskstats struct type Timeval (line 32) | type Timeval struct type Diskstat (line 38) | type Diskstat struct type bintime (line 39) | type bintime struct FILE: disk/disk_openbsd_amd64.go constant devstat_NO_DATA (line 8) | devstat_NO_DATA = 0x00 constant devstat_READ (line 9) | devstat_READ = 0x01 constant devstat_WRITE (line 10) | devstat_WRITE = 0x02 constant devstat_FREE (line 11) | devstat_FREE = 0x03 constant sizeOfDiskstats (line 15) | sizeOfDiskstats = 0x70 type Diskstats (line 18) | type Diskstats struct type Timeval (line 31) | type Timeval struct type Diskstat (line 37) | type Diskstat struct type bintime (line 38) | type bintime struct FILE: disk/disk_openbsd_arm.go constant devstat_NO_DATA (line 10) | devstat_NO_DATA = 0x00 constant devstat_READ (line 11) | devstat_READ = 0x01 constant devstat_WRITE (line 12) | devstat_WRITE = 0x02 constant devstat_FREE (line 13) | devstat_FREE = 0x03 constant sizeOfDiskstats (line 17) | sizeOfDiskstats = 0x60 type Diskstats (line 20) | type Diskstats struct type Timeval (line 32) | type Timeval struct type Diskstat (line 38) | type Diskstat struct type bintime (line 39) | type bintime struct FILE: disk/disk_openbsd_arm64.go constant devstat_NO_DATA (line 10) | devstat_NO_DATA = 0x00 constant devstat_READ (line 11) | devstat_READ = 0x01 constant devstat_WRITE (line 12) | devstat_WRITE = 0x02 constant devstat_FREE (line 13) | devstat_FREE = 0x03 constant sizeOfDiskstats (line 17) | sizeOfDiskstats = 0x70 type Diskstats (line 20) | type Diskstats struct type Timeval (line 32) | type Timeval struct type Diskstat (line 38) | type Diskstat struct type bintime (line 39) | type bintime struct FILE: disk/disk_openbsd_riscv64.go constant devstat_NO_DATA (line 10) | devstat_NO_DATA = 0x00 constant devstat_READ (line 11) | devstat_READ = 0x01 constant devstat_WRITE (line 12) | devstat_WRITE = 0x02 constant devstat_FREE (line 13) | devstat_FREE = 0x03 constant sizeOfDiskstats (line 17) | sizeOfDiskstats = 0x70 type Diskstats (line 21) | type Diskstats struct type Timeval (line 33) | type Timeval struct type Diskstat (line 40) | type Diskstat struct type bintime (line 41) | type bintime struct FILE: disk/disk_solaris.go constant _DEFAULT_NUM_MOUNTS (line 28) | _DEFAULT_NUM_MOUNTS = 32 constant _MNTTAB (line 31) | _MNTTAB = "/etc/mnttab" function PartitionsWithContext (line 47) | func PartitionsWithContext(_ context.Context, _ bool) ([]PartitionStat, ... function IOCountersWithContext (line 90) | func IOCountersWithContext(ctx context.Context, names ...string) (map[st... function UsageWithContext (line 202) | func UsageWithContext(_ context.Context, path string) (*UsageStat, error) { function SerialNumberWithContext (line 233) | func SerialNumberWithContext(ctx context.Context, name string) (string, ... function LabelWithContext (line 261) | func LabelWithContext(_ context.Context, _ string) (string, error) { FILE: disk/disk_test.go function TestUsage (line 16) | func TestUsage(t *testing.T) { function TestPartitions (line 30) | func TestPartitions(t *testing.T) { function TestIOCounters (line 47) | func TestIOCounters(t *testing.T) { function TestIOCounters_concurrency_on_darwin_cgo (line 63) | func TestIOCounters_concurrency_on_darwin_cgo(t *testing.T) { function TestUsageStat_String (line 79) | func TestUsageStat_String(t *testing.T) { function TestPartitionStat_String (line 96) | func TestPartitionStat_String(t *testing.T) { function TestIOCountersStat_String (line 107) | func TestIOCountersStat_String(t *testing.T) { FILE: disk/disk_unix.go function UsageWithContext (line 13) | func UsageWithContext(_ context.Context, path string) (*UsageStat, error) { function unescapeFstab (line 57) | func unescapeFstab(path string) string { FILE: disk/disk_windows.go constant maxVolumeNameLength (line 22) | maxVolumeNameLength = uint32(windows.MAX_PATH + 1) constant maxFileSystemNameLength (line 23) | maxFileSystemNameLength = uint32(windows.MAX_PATH + 1) constant maxWarningsInDrive (line 24) | maxWarningsInDrive = 5 constant rw (line 29) | rw = "rw" constant ro (line 30) | ro = "ro" constant compress (line 31) | compress = "compress" constant firstPossibleDriveLetter (line 35) | firstPossibleDriveLetter = 'A' constant lastPossibleDriveLetter (line 36) | lastPossibleDriveLetter = 'Z' type diskPerformance (line 56) | type diskPerformance struct function init (line 72) | func init() { function UsageWithContext (line 81) | func UsageWithContext(_ context.Context, path string) (*UsageStat, error) { function PartitionsWithContext (line 110) | func PartitionsWithContext(ctx context.Context, _ bool) ([]PartitionStat... function processVolumesMountedAsFolders (line 128) | func processVolumesMountedAsFolders(ctx context.Context, partitionStats ... function processVolumeLoop (line 142) | func processVolumeLoop(ctx context.Context, nextVolHandle uintptr, volNa... function processMountsForVolume (line 177) | func processMountsForVolume(ctx context.Context, mounts []string, proces... function processLogicalDrives (line 197) | func processLogicalDrives(ctx context.Context, drives []string, processe... function getLogicalDrives (line 222) | func getLogicalDrives(ctx context.Context) ([]string, error) { function buildPartitionStat (line 245) | func buildPartitionStat(path string) (PartitionStat, error) { function IOCountersWithContext (line 298) | func IOCountersWithContext(_ context.Context, names ...string) (map[stri... function SerialNumberWithContext (line 359) | func SerialNumberWithContext(_ context.Context, _ string) (string, error) { function LabelWithContext (line 363) | func LabelWithContext(_ context.Context, _ string) (string, error) { function getVolumePaths (line 368) | func getVolumePaths(volNameBuf []uint16) ([]string, error) { function split0 (line 395) | func split0(s16 []uint16, end int) []string { FILE: disk/disk_windows_test.go function TestGetLogicalDrives (line 13) | func TestGetLogicalDrives(t *testing.T) { function TestBuildPartitionStat (line 51) | func TestBuildPartitionStat(t *testing.T) { function TestProcessLogicalDrives (line 61) | func TestProcessLogicalDrives(t *testing.T) { FILE: disk/types_freebsd.go constant sizeofPtr (line 38) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 39) | sizeofShort = C.sizeof_short constant sizeofInt (line 40) | sizeofInt = C.sizeof_int constant sizeofLong (line 41) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 42) | sizeofLongLong = C.sizeof_longlong constant sizeofLongDouble (line 43) | sizeofLongDouble = C.sizeof_longlong constant devstat_NO_DATA (line 45) | devstat_NO_DATA = 0x00 constant devstat_READ (line 46) | devstat_READ = 0x01 constant devstat_WRITE (line 47) | devstat_WRITE = 0x02 constant devstat_FREE (line 48) | devstat_FREE = 0x03 constant sizeOfdevstat (line 52) | sizeOfdevstat = C.sizeof_struct_devstat type _C_short (line 58) | type _C_short type _C_int (line 59) | type _C_int type _C_long (line 60) | type _C_long type _C_long_long (line 61) | type _C_long_long type _C_long_double (line 62) | type _C_long_double type devstat (line 66) | type devstat type bintime (line 67) | type bintime FILE: disk/types_netbsd.go constant sizeOfStatvfs (line 25) | sizeOfStatvfs = C.sizeof_struct_statvfs type Statvfs (line 29) | type Statvfs FILE: disk/types_openbsd.go constant devstat_NO_DATA (line 20) | devstat_NO_DATA = 0x00 constant devstat_READ (line 21) | devstat_READ = 0x01 constant devstat_WRITE (line 22) | devstat_WRITE = 0x02 constant devstat_FREE (line 23) | devstat_FREE = 0x03 constant sizeOfDiskstats (line 27) | sizeOfDiskstats = C.sizeof_struct_diskstats type Diskstats (line 31) | type Diskstats type Timeval (line 32) | type Timeval type Diskstat (line 36) | type Diskstat type bintime (line 37) | type bintime FILE: docker/docker.go constant nanoseconds (line 19) | nanoseconds = 1e9 type CgroupCPUStat (line 21) | type CgroupCPUStat struct type CgroupMemStat (line 26) | type CgroupMemStat struct method String (line 61) | func (m CgroupMemStat) String() string { type CgroupDockerStat (line 66) | type CgroupDockerStat struct method String (line 74) | func (c CgroupDockerStat) String() string { FILE: docker/docker_linux.go function GetDockerStat (line 22) | func GetDockerStat() ([]CgroupDockerStat, error) { function GetDockerStatWithContext (line 26) | func GetDockerStatWithContext(ctx context.Context) ([]CgroupDockerStat, ... function GetDockerIDList (line 61) | func GetDockerIDList() ([]string, error) { function GetDockerIDListWithContext (line 65) | func GetDockerIDListWithContext(ctx context.Context) ([]string, error) { function CgroupCPU (line 90) | func CgroupCPU(containerID, base string) (*CgroupCPUStat, error) { function CgroupCPUUsage (line 98) | func CgroupCPUUsage(containerID, base string) (float64, error) { function CgroupCPUWithContext (line 102) | func CgroupCPUWithContext(ctx context.Context, containerID, base string)... function CgroupCPUUsageWithContext (line 138) | func CgroupCPUUsageWithContext(ctx context.Context, containerID, base st... function CgroupCPUDocker (line 153) | func CgroupCPUDocker(containerID string) (*CgroupCPUStat, error) { function CgroupCPUUsageDocker (line 157) | func CgroupCPUUsageDocker(containerID string) (float64, error) { function CgroupCPUDockerWithContext (line 161) | func CgroupCPUDockerWithContext(ctx context.Context, containerID string)... function CgroupCPUDockerUsageWithContext (line 165) | func CgroupCPUDockerUsageWithContext(ctx context.Context, containerID st... function CgroupMem (line 169) | func CgroupMem(containerID, base string) (*CgroupMemStat, error) { function CgroupMemWithContext (line 173) | func CgroupMemWithContext(ctx context.Context, containerID, base string)... function CgroupMemDocker (line 269) | func CgroupMemDocker(containerID string) (*CgroupMemStat, error) { function CgroupMemDockerWithContext (line 273) | func CgroupMemDockerWithContext(ctx context.Context, containerID string)... function getCgroupFilePath (line 278) | func getCgroupFilePath(ctx context.Context, containerID, base, target, f... function getCgroupMemFile (line 293) | func getCgroupMemFile(ctx context.Context, containerID, base, file strin... FILE: docker/docker_linux_test.go function TestGetDockerIDList (line 14) | func TestGetDockerIDList(_ *testing.T) { function TestGetDockerStat (line 25) | func TestGetDockerStat(_ *testing.T) { function TestCgroupCPU (line 49) | func TestCgroupCPU(t *testing.T) { function TestCgroupCPUInvalidId (line 59) | func TestCgroupCPUInvalidId(t *testing.T) { function TestCgroupMem (line 64) | func TestCgroupMem(t *testing.T) { function TestCgroupMemInvalidId (line 74) | func TestCgroupMemInvalidId(t *testing.T) { FILE: docker/docker_notlinux.go function GetDockerStat (line 14) | func GetDockerStat() ([]CgroupDockerStat, error) { function GetDockerStatWithContext (line 18) | func GetDockerStatWithContext(_ context.Context) ([]CgroupDockerStat, er... function GetDockerIDList (line 24) | func GetDockerIDList() ([]string, error) { function GetDockerIDListWithContext (line 28) | func GetDockerIDListWithContext(_ context.Context) ([]string, error) { function CgroupCPU (line 36) | func CgroupCPU(containerID, base string) (*CgroupCPUStat, error) { function CgroupCPUWithContext (line 40) | func CgroupCPUWithContext(_ context.Context, _, _ string) (*CgroupCPUSta... function CgroupCPUDocker (line 44) | func CgroupCPUDocker(containerID string) (*CgroupCPUStat, error) { function CgroupCPUDockerWithContext (line 48) | func CgroupCPUDockerWithContext(ctx context.Context, containerID string)... function CgroupMem (line 52) | func CgroupMem(containerID, base string) (*CgroupMemStat, error) { function CgroupMemWithContext (line 56) | func CgroupMemWithContext(_ context.Context, _, _ string) (*CgroupMemSta... function CgroupMemDocker (line 60) | func CgroupMemDocker(containerID string) (*CgroupMemStat, error) { function CgroupMemDockerWithContext (line 64) | func CgroupMemDockerWithContext(ctx context.Context, containerID string)... FILE: docker/main_test.go function TestSysAdvancedDockerInfo (line 9) | func TestSysAdvancedDockerInfo(_ *testing.T) { FILE: host/freebsd_headers/utxdb.h type utmpx (line 48) | struct utmpx type futx (line 50) | struct futx { type utmpx (line 60) | struct utmpx type futx (line 60) | struct futx type utmpx (line 61) | struct utmpx type futx (line 61) | struct futx FILE: host/host.go type InfoStat (line 21) | type InfoStat struct method String (line 44) | func (h InfoStat) String() string { type UserStat (line 37) | type UserStat struct method String (line 49) | func (u UserStat) String() string { function EnableBootTimeCache (line 57) | func EnableBootTimeCache(enable bool) { function Info (line 61) | func Info() (*InfoStat, error) { function InfoWithContext (line 65) | func InfoWithContext(ctx context.Context) (*InfoStat, error) { function BootTime (line 120) | func BootTime() (uint64, error) { function Uptime (line 124) | func Uptime() (uint64, error) { function Users (line 128) | func Users() ([]UserStat, error) { function PlatformInformation (line 132) | func PlatformInformation() (string, string, string, error) { function HostID (line 137) | func HostID() (string, error) { function Virtualization (line 141) | func Virtualization() (string, string, error) { function KernelVersion (line 145) | func KernelVersion() (string, error) { FILE: host/host_aix.go constant user_PROCESS (line 15) | user_PROCESS = 7 function HostIDWithContext (line 18) | func HostIDWithContext(ctx context.Context) (string, error) { function BootTimeWithContext (line 28) | func BootTimeWithContext(ctx context.Context) (btime uint64, err error) { function UptimeWithContext (line 33) | func UptimeWithContext(ctx context.Context) (uint64, error) { function UsersWithContext (line 38) | func UsersWithContext(ctx context.Context) ([]UserStat, error) { function PlatformInformationWithContext (line 76) | func PlatformInformationWithContext(ctx context.Context) (platform, fami... function KernelVersionWithContext (line 97) | func KernelVersionWithContext(ctx context.Context) (version string, err ... function KernelArch (line 107) | func KernelArch() (arch string, err error) { function VirtualizationWithContext (line 117) | func VirtualizationWithContext(_ context.Context) (string, string, error) { FILE: host/host_aix_cgo.go function numProcs (line 12) | func numProcs(_ context.Context) (uint64, error) { FILE: host/host_aix_nocgo.go function numProcs (line 12) | func numProcs(_ context.Context) (uint64, error) { FILE: host/host_aix_ppc64.go constant sizeofPtr (line 9) | sizeofPtr = 0x8 constant sizeofShort (line 10) | sizeofShort = 0x2 constant sizeofInt (line 11) | sizeofInt = 0x4 constant sizeofLong (line 12) | sizeofLong = 0x8 constant sizeofLongLong (line 13) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 14) | sizeOfUtmp = 0x180 type _C_short (line 18) | type _C_short type _C_int (line 19) | type _C_int type _C_long (line 20) | type _C_long type _C_long_long (line 21) | type _C_long_long type utmp (line 24) | type utmp struct type exit_status (line 39) | type exit_status struct type timeval (line 44) | type timeval struct FILE: host/host_aix_test.go function TestBootTimeWithContext (line 14) | func TestBootTimeWithContext(t *testing.T) { function TestUptimeWithContext (line 22) | func TestUptimeWithContext(t *testing.T) { FILE: host/host_bsd.go function BootTimeWithContext (line 18) | func BootTimeWithContext(_ context.Context) (uint64, error) { function UptimeWithContext (line 37) | func UptimeWithContext(ctx context.Context) (uint64, error) { FILE: host/host_darwin.go constant user_PROCESS (line 21) | user_PROCESS = 7 function HostIDWithContext (line 23) | func HostIDWithContext(ctx context.Context) (string, error) { function numProcs (line 42) | func numProcs(ctx context.Context) (uint64, error) { function UsersWithContext (line 50) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function PlatformInformationWithContext (line 91) | func PlatformInformationWithContext(ctx context.Context) (string, string... function VirtualizationWithContext (line 119) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function KernelVersionWithContext (line 123) | func KernelVersionWithContext(_ context.Context) (string, error) { FILE: host/host_darwin_amd64.go type utmpx32 (line 7) | type utmpx32 struct type timeval32 (line 18) | type timeval32 struct FILE: host/host_darwin_arm64.go type utmpx32 (line 9) | type utmpx32 struct type timeval32 (line 20) | type timeval32 struct FILE: host/host_fallback.go function HostIDWithContext (line 12) | func HostIDWithContext(_ context.Context) (string, error) { function numProcs (line 16) | func numProcs(_ context.Context) (uint64, error) { function BootTimeWithContext (line 20) | func BootTimeWithContext(_ context.Context) (uint64, error) { function UptimeWithContext (line 24) | func UptimeWithContext(_ context.Context) (uint64, error) { function UsersWithContext (line 28) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function VirtualizationWithContext (line 32) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function KernelVersionWithContext (line 36) | func KernelVersionWithContext(_ context.Context) (string, error) { function PlatformInformationWithContext (line 40) | func PlatformInformationWithContext(_ context.Context) (string, string, ... function KernelArch (line 44) | func KernelArch() (string, error) { FILE: host/host_freebsd.go constant UTNameSize (line 23) | UTNameSize = 16 constant UTLineSize (line 24) | UTLineSize = 8 constant UTHostSize (line 25) | UTHostSize = 16 function HostIDWithContext (line 28) | func HostIDWithContext(_ context.Context) (string, error) { function numProcs (line 36) | func numProcs(ctx context.Context) (uint64, error) { function UsersWithContext (line 44) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function PlatformInformationWithContext (line 88) | func PlatformInformationWithContext(_ context.Context) (string, string, ... function VirtualizationWithContext (line 102) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function getUsersFromUtmp (line 107) | func getUsersFromUtmp(utmpfile string) ([]UserStat, error) { function KernelVersionWithContext (line 144) | func KernelVersionWithContext(ctx context.Context) (string, error) { FILE: host/host_freebsd_386.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmpx (line 13) | sizeOfUtmpx = 0xc5 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type Utmp (line 23) | type Utmp struct type Utmpx (line 30) | type Utmpx struct FILE: host/host_freebsd_amd64.go constant sizeofPtr (line 8) | sizeofPtr = 0x8 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmpx (line 13) | sizeOfUtmpx = 0xc5 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type Utmp (line 23) | type Utmp struct type Utmpx (line 30) | type Utmpx struct FILE: host/host_freebsd_arm.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmpx (line 13) | sizeOfUtmpx = 0xc5 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type Utmp (line 23) | type Utmp struct type Utmpx (line 30) | type Utmpx struct FILE: host/host_freebsd_arm64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmpx (line 15) | sizeOfUtmpx = 0xc5 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type Utmp (line 25) | type Utmp struct type Utmpx (line 32) | type Utmpx struct FILE: host/host_linux.go type lsbStruct (line 21) | type lsbStruct struct constant user_PROCESS (line 30) | user_PROCESS = 7 function HostIDWithContext (line 33) | func HostIDWithContext(ctx context.Context) (string, error) { function numProcs (line 65) | func numProcs(ctx context.Context) (uint64, error) { function BootTimeWithContext (line 69) | func BootTimeWithContext(ctx context.Context) (uint64, error) { function UptimeWithContext (line 73) | func UptimeWithContext(_ context.Context) (uint64, error) { function UsersWithContext (line 81) | func UsersWithContext(ctx context.Context) ([]UserStat, error) { function getlsbStruct (line 123) | func getlsbStruct(ctx context.Context) (*lsbStruct, error) { function PlatformInformationWithContext (line 173) | func PlatformInformationWithContext(ctx context.Context) (platform, fami... function KernelVersionWithContext (line 327) | func KernelVersionWithContext(_ context.Context) (version string, err er... function getSlackwareVersion (line 336) | func getSlackwareVersion(contents []string) string { function getRedhatishVersion (line 344) | func getRedhatishVersion(contents []string) string { function getRedhatishPlatform (line 356) | func getRedhatishPlatform(contents []string) string { function getSuseVersion (line 372) | func getSuseVersion(contents []string) string { function getSusePlatform (line 384) | func getSusePlatform(contents []string) string { function VirtualizationWithContext (line 392) | func VirtualizationWithContext(ctx context.Context) (string, string, err... FILE: host/host_linux_386.go constant sizeofPtr (line 10) | sizeofPtr = 0x4 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x4 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x180 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type utmp (line 25) | type utmp struct type exit_status (line 40) | type exit_status struct type UtTv (line 45) | type UtTv struct FILE: host/host_linux_amd64.go constant sizeofPtr (line 8) | sizeofPtr = 0x8 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 43) | type timeval struct type _Ctype_struct___0 (line 48) | type _Ctype_struct___0 struct FILE: host/host_linux_arm.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 43) | type timeval struct FILE: host/host_linux_arm64.go constant sizeofPtr (line 7) | sizeofPtr = 0x8 constant sizeofShort (line 8) | sizeofShort = 0x2 constant sizeofInt (line 9) | sizeofInt = 0x4 constant sizeofLong (line 10) | sizeofLong = 0x8 constant sizeofLongLong (line 11) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 12) | sizeOfUtmp = 0x190 type _C_short (line 16) | type _C_short type _C_int (line 17) | type _C_int type _C_long (line 18) | type _C_long type _C_long_long (line 19) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 42) | type timeval struct FILE: host/host_linux_loong64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x190 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type utmp (line 26) | type utmp struct type exit_status (line 40) | type exit_status struct type timeval (line 44) | type timeval struct FILE: host/host_linux_mips.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 43) | type timeval struct FILE: host/host_linux_mips64.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 43) | type timeval struct FILE: host/host_linux_mips64le.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 43) | type timeval struct FILE: host/host_linux_mipsle.go constant sizeofPtr (line 8) | sizeofPtr = 0x4 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x4 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 38) | type exit_status struct type timeval (line 43) | type timeval struct FILE: host/host_linux_ppc64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x180 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type utmp (line 25) | type utmp struct type exit_status (line 40) | type exit_status struct type timeval (line 45) | type timeval struct FILE: host/host_linux_ppc64le.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x180 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type utmp (line 25) | type utmp struct type exit_status (line 40) | type exit_status struct type timeval (line 45) | type timeval struct FILE: host/host_linux_riscv64.go constant sizeofPtr (line 8) | sizeofPtr = 0x8 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x180 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type utmp (line 23) | type utmp struct type exit_status (line 37) | type exit_status struct type timeval (line 42) | type timeval struct type _Ctype_struct___0 (line 47) | type _Ctype_struct___0 struct FILE: host/host_linux_s390x.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x180 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type utmp (line 25) | type utmp struct type exit_status (line 40) | type exit_status struct type timeval (line 45) | type timeval struct FILE: host/host_linux_test.go function TestGetRedhatishVersion (line 16) | func TestGetRedhatishVersion(t *testing.T) { function TestGetRedhatishPlatform (line 35) | func TestGetRedhatishPlatform(t *testing.T) { function TestGetlsbStruct (line 54) | func TestGetlsbStruct(t *testing.T) { FILE: host/host_netbsd.go function HostIDWithContext (line 15) | func HostIDWithContext(_ context.Context) (string, error) { function numProcs (line 19) | func numProcs(_ context.Context) (uint64, error) { function PlatformInformationWithContext (line 23) | func PlatformInformationWithContext(_ context.Context) (string, string, ... function VirtualizationWithContext (line 40) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function UsersWithContext (line 44) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function KernelVersionWithContext (line 49) | func KernelVersionWithContext(ctx context.Context) (string, error) { FILE: host/host_openbsd.go constant UTNameSize (line 22) | UTNameSize = 32 constant UTLineSize (line 23) | UTLineSize = 8 constant UTHostSize (line 24) | UTHostSize = 16 function HostIDWithContext (line 27) | func HostIDWithContext(_ context.Context) (string, error) { function numProcs (line 31) | func numProcs(ctx context.Context) (uint64, error) { function PlatformInformationWithContext (line 39) | func PlatformInformationWithContext(_ context.Context) (string, string, ... function VirtualizationWithContext (line 56) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function UsersWithContext (line 60) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function KernelVersionWithContext (line 98) | func KernelVersionWithContext(ctx context.Context) (string, error) { FILE: host/host_openbsd_386.go constant sizeofPtr (line 10) | sizeofPtr = 0x4 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x4 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x130 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type Utmp (line 25) | type Utmp struct type Timeval (line 31) | type Timeval struct FILE: host/host_openbsd_amd64.go constant sizeofPtr (line 8) | sizeofPtr = 0x8 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 13) | sizeOfUtmp = 0x130 type _C_short (line 17) | type _C_short type _C_int (line 18) | type _C_int type _C_long (line 19) | type _C_long type _C_long_long (line 20) | type _C_long_long type Utmp (line 23) | type Utmp struct type Timeval (line 30) | type Timeval struct FILE: host/host_openbsd_arm.go constant sizeofPtr (line 10) | sizeofPtr = 0x4 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x4 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x130 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type Utmp (line 25) | type Utmp struct type Timeval (line 31) | type Timeval struct FILE: host/host_openbsd_arm64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x130 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type Utmp (line 25) | type Utmp struct type Timeval (line 31) | type Timeval struct FILE: host/host_openbsd_riscv64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 constant sizeOfUtmp (line 15) | sizeOfUtmp = 0x130 type _C_short (line 19) | type _C_short type _C_int (line 20) | type _C_int type _C_long (line 21) | type _C_long type _C_long_long (line 22) | type _C_long_long type Utmp (line 26) | type Utmp struct type Timeval (line 32) | type Timeval struct FILE: host/host_posix.go function KernelArch (line 8) | func KernelArch() (string, error) { FILE: host/host_solaris.go function HostIDWithContext (line 20) | func HostIDWithContext(ctx context.Context) (string, error) { function numProcs (line 62) | func numProcs(_ context.Context) (uint64, error) { function BootTimeWithContext (line 72) | func BootTimeWithContext(ctx context.Context) (uint64, error) { function UptimeWithContext (line 86) | func UptimeWithContext(ctx context.Context) (uint64, error) { function UsersWithContext (line 94) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function VirtualizationWithContext (line 98) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function parseReleaseFile (line 103) | func parseReleaseFile() (string, error) { function parseUnameOutput (line 134) | func parseUnameOutput(ctx context.Context) (string, string, string, erro... function KernelVersionWithContext (line 148) | func KernelVersionWithContext(ctx context.Context) (string, error) { function PlatformInformationWithContext (line 153) | func PlatformInformationWithContext(ctx context.Context) (string, string... FILE: host/host_test.go function TestHostID (line 16) | func TestHostID(t *testing.T) { function TestInfo (line 26) | func TestInfo(t *testing.T) { function TestUptime (line 38) | func TestUptime(t *testing.T) { function TestBootTime (line 51) | func TestBootTime(t *testing.T) { function TestUsers (line 73) | func TestUsers(t *testing.T) { function TestInfoStat_String (line 89) | func TestInfoStat_String(t *testing.T) { function TestUserStat_String (line 104) | func TestUserStat_String(t *testing.T) { function TestGuid (line 115) | func TestGuid(t *testing.T) { function TestVirtualization (line 125) | func TestVirtualization(t *testing.T) { function TestKernelVersion (line 146) | func TestKernelVersion(t *testing.T) { function TestPlatformInformation (line 157) | func TestPlatformInformation(t *testing.T) { function BenchmarkBootTimeWithCache (line 168) | func BenchmarkBootTimeWithCache(b *testing.B) { function BenchmarkBootTimeWithoutCache (line 175) | func BenchmarkBootTimeWithoutCache(b *testing.B) { FILE: host/host_windows.go type osVersionInfoExW (line 31) | type osVersionInfoExW struct type systemInfo (line 45) | type systemInfo struct function HostIDWithContext (line 59) | func HostIDWithContext(_ context.Context) (string, error) { function numProcs (line 89) | func numProcs(ctx context.Context) (uint64, error) { function UptimeWithContext (line 97) | func UptimeWithContext(_ context.Context) (uint64, error) { function uptimeMillis (line 105) | func uptimeMillis() (uint64, error) { function BootTimeWithContext (line 121) | func BootTimeWithContext(_ context.Context) (uint64, error) { function PlatformInformationWithContext (line 139) | func PlatformInformationWithContext(_ context.Context) (platform, family... function platformInformation (line 147) | func platformInformation() (platform, family, version, displayVersion st... function UsersWithContext (line 237) | func UsersWithContext(_ context.Context) ([]UserStat, error) { function VirtualizationWithContext (line 243) | func VirtualizationWithContext(_ context.Context) (string, string, error) { function KernelVersionWithContext (line 247) | func KernelVersionWithContext(_ context.Context) (string, error) { function KernelArch (line 252) | func KernelArch() (string, error) { FILE: host/types_darwin.go type utmpx32 (line 31) | type utmpx32 type timeval32 (line 32) | type timeval32 FILE: host/types_freebsd.go constant sizeofPtr (line 27) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 28) | sizeofShort = C.sizeof_short constant sizeofInt (line 29) | sizeofInt = C.sizeof_int constant sizeofLong (line 30) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 31) | sizeofLongLong = C.sizeof_longlong constant sizeOfUtmpx (line 32) | sizeOfUtmpx = C.sizeof_struct_futx type _C_short (line 38) | type _C_short type _C_int (line 39) | type _C_int type _C_long (line 40) | type _C_long type _C_long_long (line 41) | type _C_long_long type Utmp (line 45) | type Utmp type Utmpx (line 46) | type Utmpx FILE: host/types_linux.go constant sizeofPtr (line 24) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 25) | sizeofShort = C.sizeof_short constant sizeofInt (line 26) | sizeofInt = C.sizeof_int constant sizeofLong (line 27) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 28) | sizeofLongLong = C.sizeof_longlong constant sizeOfUtmp (line 29) | sizeOfUtmp = C.sizeof_struct_utmp type _C_short (line 35) | type _C_short type _C_int (line 36) | type _C_int type _C_long (line 37) | type _C_long type _C_long_long (line 38) | type _C_long_long type utmp (line 42) | type utmp type exit_status (line 43) | type exit_status type timeval (line 44) | type timeval FILE: host/types_openbsd.go constant sizeofPtr (line 26) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 27) | sizeofShort = C.sizeof_short constant sizeofInt (line 28) | sizeofInt = C.sizeof_int constant sizeofLong (line 29) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 30) | sizeofLongLong = C.sizeof_longlong constant sizeOfUtmp (line 31) | sizeOfUtmp = C.sizeof_struct_utmp type _C_short (line 37) | type _C_short type _C_int (line 38) | type _C_int type _C_long (line 39) | type _C_long type _C_long_long (line 40) | type _C_long_long type Utmp (line 44) | type Utmp type Timeval (line 45) | type Timeval FILE: internal/common/common.go type Invoker (line 41) | type Invoker interface type Invoke (line 46) | type Invoke struct method Command (line 48) | func (i Invoke) Command(name string, arg ...string) ([]byte, error) { method CommandWithContext (line 54) | func (Invoke) CommandWithContext(ctx context.Context, name string, arg... type FakeInvoke (line 72) | type FakeInvoke struct method Command (line 78) | func (i FakeInvoke) Command(name string, arg ...string) ([]byte, error) { method CommandWithContext (line 99) | func (i FakeInvoke) CommandWithContext(_ context.Context, name string,... function ReadFile (line 104) | func ReadFile(filename string) (string, error) { function ReadLines (line 115) | func ReadLines(filename string) ([]string, error) { function ReadLine (line 120) | func ReadLine(filename, prefix string) (string, error) { function ReadLinesOffsetN (line 148) | func ReadLinesOffsetN(filename string, offset uint, n int) ([]string, er... function IntToString (line 175) | func IntToString(orig []int8) string { function UintToString (line 192) | func UintToString(orig []uint8) string { function ByteToString (line 209) | func ByteToString(orig []byte) string { function ReadInts (line 233) | func ReadInts(filename string) ([]int64, error) { function HexToUint32 (line 260) | func HexToUint32(hex string) uint32 { function mustParseInt32 (line 266) | func mustParseInt32(val string) int32 { function mustParseUint64 (line 272) | func mustParseUint64(val string) uint64 { function mustParseFloat64 (line 278) | func mustParseFloat64(val string) float64 { function StringsHas (line 284) | func StringsHas(target []string, src string) bool { function StringsContains (line 294) | func StringsContains(target []string, src string) bool { function IntContains (line 301) | func IntContains(target []int, src int) bool { function attributes (line 307) | func attributes(m any) map[string]reflect.Type { function PathExists (line 328) | func PathExists(filename string) bool { function PathExistsWithContents (line 336) | func PathExistsWithContents(filename string) bool { function GetEnvWithContext (line 346) | func GetEnvWithContext(ctx context.Context, key, dfault string, combineW... function GetEnv (line 362) | func GetEnv(key, dfault string, combineWith ...string) string { function combine (line 371) | func combine(value string, combineWith []string) string { function HostProc (line 385) | func HostProc(combineWith ...string) string { function HostSys (line 389) | func HostSys(combineWith ...string) string { function HostEtc (line 393) | func HostEtc(combineWith ...string) string { function HostVar (line 397) | func HostVar(combineWith ...string) string { function HostRun (line 401) | func HostRun(combineWith ...string) string { function HostDev (line 405) | func HostDev(combineWith ...string) string { function HostRoot (line 409) | func HostRoot(combineWith ...string) string { function HostProcWithContext (line 413) | func HostProcWithContext(ctx context.Context, combineWith ...string) str... function HostProcMountInfoWithContext (line 417) | func HostProcMountInfoWithContext(ctx context.Context, combineWith ...st... function HostSysWithContext (line 421) | func HostSysWithContext(ctx context.Context, combineWith ...string) stri... function HostEtcWithContext (line 425) | func HostEtcWithContext(ctx context.Context, combineWith ...string) stri... function HostVarWithContext (line 429) | func HostVarWithContext(ctx context.Context, combineWith ...string) stri... function HostRunWithContext (line 433) | func HostRunWithContext(ctx context.Context, combineWith ...string) stri... function HostDevWithContext (line 437) | func HostDevWithContext(ctx context.Context, combineWith ...string) stri... function HostRootWithContext (line 441) | func HostRootWithContext(ctx context.Context, combineWith ...string) str... function getSysctrlEnv (line 447) | func getSysctrlEnv(env []string) []string { function Round (line 462) | func Round(val float64, n int) float64 { function TimeSince (line 469) | func TimeSince(ts uint64) uint64 { function TimeSinceMillis (line 473) | func TimeSinceMillis(ts uint64) uint64 { FILE: internal/common/common_aix.go function BootTimeWithContext (line 13) | func BootTimeWithContext(ctx context.Context, invoke Invoker) (btime uin... function UptimeWithContext (line 31) | func UptimeWithContext(ctx context.Context, invoke Invoker) (uint64, err... function ParseUptime (line 52) | func ParseUptime(etimes string) uint64 { FILE: internal/common/common_aix_test.go function TestParseUptimeValidInput (line 12) | func TestParseUptimeValidInput(t *testing.T) { function TestParseUptimeInvalidInput (line 37) | func TestParseUptimeInvalidInput(t *testing.T) { FILE: internal/common/common_darwin.go type library (line 16) | type library struct method Dlsym (line 40) | func (lib *library) Dlsym(symbol string) (uintptr, error) { method Close (line 56) | func (lib *library) Close() { constant IOKitLibPath (line 23) | IOKitLibPath = "/System/Library/Frameworks/IOKit.framework/IOKit" constant CoreFoundationLibPath (line 24) | CoreFoundationLibPath = "/System/Library/Frameworks/CoreFoundation.frame... constant SystemLibPath (line 25) | SystemLibPath = "/usr/lib/libSystem.B.dylib" function newLibrary (line 28) | func newLibrary(path string) (*library, error) { function getFunc (line 44) | func getFunc[T any](lib *library, symbol string) T { type dlFunc (line 60) | type dlFunc struct method init (line 65) | func (d *dlFunc[T]) init(handle uintptr) { function newDlfunc (line 69) | func newDlfunc[T any](sym string) *dlFunc[T] { type CoreFoundationLib (line 73) | type CoreFoundationLib struct method CFGetTypeID (line 85) | func (c *CoreFoundationLib) CFGetTypeID(cf uintptr) int64 { method CFNumberCreate (line 90) | func (c *CoreFoundationLib) CFNumberCreate(allocator uintptr, theType ... method CFNumberGetValue (line 95) | func (c *CoreFoundationLib) CFNumberGetValue(num uintptr, theType int6... method CFDictionaryCreate (line 100) | func (c *CoreFoundationLib) CFDictionaryCreate(allocator uintptr, keys... method CFDictionaryAddValue (line 107) | func (c *CoreFoundationLib) CFDictionaryAddValue(theDict, key, value u... method CFDictionaryGetValue (line 112) | func (c *CoreFoundationLib) CFDictionaryGetValue(theDict, key uintptr)... method CFArrayGetCount (line 117) | func (c *CoreFoundationLib) CFArrayGetCount(theArray uintptr) int64 { method CFArrayGetValueAtIndex (line 122) | func (c *CoreFoundationLib) CFArrayGetValueAtIndex(theArray uintptr, i... method CFStringCreateMutable (line 127) | func (c *CoreFoundationLib) CFStringCreateMutable(alloc uintptr, maxLe... method CFStringGetLength (line 132) | func (c *CoreFoundationLib) CFStringGetLength(theString uintptr) int64 { method CFStringGetCString (line 137) | func (c *CoreFoundationLib) CFStringGetCString(theString uintptr, buff... method CFStringCreateWithCString (line 142) | func (c *CoreFoundationLib) CFStringCreateWithCString(alloc uintptr, c... method CFDataGetLength (line 147) | func (c *CoreFoundationLib) CFDataGetLength(theData uintptr) int64 { method CFDataGetBytePtr (line 152) | func (c *CoreFoundationLib) CFDataGetBytePtr(theData uintptr) unsafe.P... method CFRelease (line 157) | func (c *CoreFoundationLib) CFRelease(cf uintptr) { function NewCoreFoundationLib (line 77) | func NewCoreFoundationLib() (*CoreFoundationLib, error) { type IOKitLib (line 162) | type IOKitLib struct method IOServiceGetMatchingService (line 174) | func (l *IOKitLib) IOServiceGetMatchingService(mainPort uint32, matchi... method IOServiceGetMatchingServices (line 179) | func (l *IOKitLib) IOServiceGetMatchingServices(mainPort uint32, match... method IOServiceMatching (line 184) | func (l *IOKitLib) IOServiceMatching(name string) unsafe.Pointer { method IOServiceOpen (line 189) | func (l *IOKitLib) IOServiceOpen(service, owningTask, connType uint32,... method IOServiceClose (line 194) | func (l *IOKitLib) IOServiceClose(connect uint32) int32 { method IOIteratorNext (line 199) | func (l *IOKitLib) IOIteratorNext(iterator uint32) uint32 { method IORegistryEntryGetName (line 204) | func (l *IOKitLib) IORegistryEntryGetName(entry uint32, name CStr) int... method IORegistryEntryGetParentEntry (line 209) | func (l *IOKitLib) IORegistryEntryGetParentEntry(entry uint32, plane s... method IORegistryEntryCreateCFProperty (line 214) | func (l *IOKitLib) IORegistryEntryCreateCFProperty(entry uint32, key, ... method IORegistryEntryCreateCFProperties (line 219) | func (l *IOKitLib) IORegistryEntryCreateCFProperties(entry uint32, pro... method IOObjectConformsTo (line 224) | func (l *IOKitLib) IOObjectConformsTo(object uint32, className string)... method IOObjectRelease (line 229) | func (l *IOKitLib) IOObjectRelease(object uint32) int32 { method IOConnectCallStructMethod (line 234) | func (l *IOKitLib) IOConnectCallStructMethod(connection, selector uint... method IOHIDEventSystemClientCreate (line 239) | func (l *IOKitLib) IOHIDEventSystemClientCreate(allocator uintptr) uns... method IOHIDEventSystemClientSetMatching (line 244) | func (l *IOKitLib) IOHIDEventSystemClientSetMatching(client, match uin... method IOHIDServiceClientCopyEvent (line 249) | func (l *IOKitLib) IOHIDServiceClientCopyEvent(service uintptr, eventT... method IOHIDServiceClientCopyProperty (line 254) | func (l *IOKitLib) IOHIDServiceClientCopyProperty(service, property ui... method IOHIDEventGetFloatValue (line 259) | func (l *IOKitLib) IOHIDEventGetFloatValue(event uintptr, field int32)... method IOHIDEventSystemClientCopyServices (line 264) | func (l *IOKitLib) IOHIDEventSystemClientCopyServices(client uintptr) ... function NewIOKitLib (line 166) | func NewIOKitLib() (*IOKitLib, error) { type SystemLib (line 269) | type SystemLib struct method HostProcessorInfo (line 281) | func (s *SystemLib) HostProcessorInfo(host uint32, flavor int32, outPr... method HostStatistics (line 288) | func (s *SystemLib) HostStatistics(host uint32, flavor int32, hostInfo... method MachHostSelf (line 293) | func (s *SystemLib) MachHostSelf() uint32 { method MachTaskSelf (line 298) | func (s *SystemLib) MachTaskSelf() uint32 { method MachTimeBaseInfo (line 303) | func (s *SystemLib) MachTimeBaseInfo(info uintptr) int32 { method VMDeallocate (line 308) | func (s *SystemLib) VMDeallocate(targetTask uint32, vmAddress, vmSize ... method ProcPidPath (line 313) | func (s *SystemLib) ProcPidPath(pid int32, buffer uintptr, bufferSize ... method ProcPidInfo (line 318) | func (s *SystemLib) ProcPidInfo(pid, flavor int32, arg uint64, buffer ... function NewSystemLib (line 273) | func NewSystemLib() (*SystemLib, error) { constant KERN_SUCCESS (line 325) | KERN_SUCCESS = 0 type IOServiceGetMatchingServiceFunc (line 330) | type IOServiceGetMatchingServiceFunc type IOServiceGetMatchingServicesFunc (line 331) | type IOServiceGetMatchingServicesFunc type IOServiceMatchingFunc (line 332) | type IOServiceMatchingFunc type IOServiceOpenFunc (line 333) | type IOServiceOpenFunc type IOServiceCloseFunc (line 334) | type IOServiceCloseFunc type IOIteratorNextFunc (line 335) | type IOIteratorNextFunc type IORegistryEntryGetNameFunc (line 336) | type IORegistryEntryGetNameFunc type IORegistryEntryGetParentEntryFunc (line 337) | type IORegistryEntryGetParentEntryFunc type IORegistryEntryCreateCFPropertyFunc (line 338) | type IORegistryEntryCreateCFPropertyFunc type IORegistryEntryCreateCFPropertiesFunc (line 339) | type IORegistryEntryCreateCFPropertiesFunc type IOObjectConformsToFunc (line 340) | type IOObjectConformsToFunc type IOObjectReleaseFunc (line 341) | type IOObjectReleaseFunc type IOConnectCallStructMethodFunc (line 342) | type IOConnectCallStructMethodFunc type IOHIDEventSystemClientCreateFunc (line 344) | type IOHIDEventSystemClientCreateFunc type IOHIDEventSystemClientSetMatchingFunc (line 345) | type IOHIDEventSystemClientSetMatchingFunc type IOHIDServiceClientCopyEventFunc (line 346) | type IOHIDServiceClientCopyEventFunc type IOHIDServiceClientCopyPropertyFunc (line 348) | type IOHIDServiceClientCopyPropertyFunc type IOHIDEventGetFloatValueFunc (line 349) | type IOHIDEventGetFloatValueFunc type IOHIDEventSystemClientCopyServicesFunc (line 350) | type IOHIDEventSystemClientCopyServicesFunc constant KIOMainPortDefault (line 354) | KIOMainPortDefault = 0 constant KIOHIDEventTypeTemperature (line 356) | KIOHIDEventTypeTemperature = 15 constant KNilOptions (line 358) | KNilOptions = 0 constant KIOMediaWholeKey (line 362) | KIOMediaWholeKey = "Media" constant KIOServicePlane (line 363) | KIOServicePlane = "IOService" type CFGetTypeIDFunc (line 368) | type CFGetTypeIDFunc type CFNumberCreateFunc (line 369) | type CFNumberCreateFunc type CFNumberGetValueFunc (line 370) | type CFNumberGetValueFunc type CFDictionaryCreateFunc (line 371) | type CFDictionaryCreateFunc type CFDictionaryAddValueFunc (line 373) | type CFDictionaryAddValueFunc type CFDictionaryGetValueFunc (line 374) | type CFDictionaryGetValueFunc type CFArrayGetCountFunc (line 375) | type CFArrayGetCountFunc type CFArrayGetValueAtIndexFunc (line 376) | type CFArrayGetValueAtIndexFunc type CFStringCreateMutableFunc (line 377) | type CFStringCreateMutableFunc type CFStringGetLengthFunc (line 378) | type CFStringGetLengthFunc type CFStringGetCStringFunc (line 379) | type CFStringGetCStringFunc type CFStringCreateWithCStringFunc (line 380) | type CFStringCreateWithCStringFunc type CFDataGetLengthFunc (line 381) | type CFDataGetLengthFunc type CFDataGetBytePtrFunc (line 382) | type CFDataGetBytePtrFunc type CFReleaseFunc (line 383) | type CFReleaseFunc constant KCFStringEncodingUTF8 (line 387) | KCFStringEncodingUTF8 = 0x08000100 constant KCFNumberSInt64Type (line 388) | KCFNumberSInt64Type = 4 constant KCFNumberIntType (line 389) | KCFNumberIntType = 9 constant KCFAllocatorDefault (line 390) | KCFAllocatorDefault = 0 constant KCFNotFound (line 391) | KCFNotFound = -1 type MachTimeBaseInfo (line 395) | type MachTimeBaseInfo struct type HostProcessorInfoFunc (line 401) | type HostProcessorInfoFunc type HostStatisticsFunc (line 403) | type HostStatisticsFunc type MachHostSelfFunc (line 404) | type MachHostSelfFunc type MachTaskSelfFunc (line 405) | type MachTaskSelfFunc type MachTimeBaseInfoFunc (line 406) | type MachTimeBaseInfoFunc type VMDeallocateFunc (line 407) | type VMDeallocateFunc constant HostProcessorInfoSym (line 411) | HostProcessorInfoSym = "host_processor_info" constant HostStatisticsSym (line 412) | HostStatisticsSym = "host_statistics" constant MachHostSelfSym (line 413) | MachHostSelfSym = "mach_host_self" constant MachTaskSelfSym (line 414) | MachTaskSelfSym = "mach_task_self" constant MachTimeBaseInfoSym (line 415) | MachTimeBaseInfoSym = "mach_timebase_info" constant VMDeallocateSym (line 416) | VMDeallocateSym = "vm_deallocate" constant HOST_VM_INFO (line 420) | HOST_VM_INFO = 2 constant HOST_CPU_LOAD_INFO (line 421) | HOST_CPU_LOAD_INFO = 3 constant HOST_VM_INFO_COUNT (line 423) | HOST_VM_INFO_COUNT = 0xf type ProcPidPathFunc (line 427) | type ProcPidPathFunc type ProcPidInfoFunc (line 428) | type ProcPidInfoFunc constant SysctlSym (line 432) | SysctlSym = "sysctl" constant ProcPidPathSym (line 433) | ProcPidPathSym = "proc_pidpath" constant ProcPidInfoSym (line 434) | ProcPidInfoSym = "proc_pidinfo" constant MAXPATHLEN (line 438) | MAXPATHLEN = 1024 constant PROC_PIDLISTFDS (line 439) | PROC_PIDLISTFDS = 1 constant PROC_PIDPATHINFO_MAXSIZE (line 440) | PROC_PIDPATHINFO_MAXSIZE = 4 * MAXPATHLEN constant PROC_PIDTASKINFO (line 441) | PROC_PIDTASKINFO = 4 constant PROC_PIDVNODEPATHINFO (line 442) | PROC_PIDVNODEPATHINFO = 9 type SMC (line 446) | type SMC struct method CallStruct (line 494) | func (s *SMC) CallStruct(selector uint32, inputStruct, inputStructCnt,... method Close (line 498) | func (s *SMC) Close() error { constant ioServiceSMC (line 451) | ioServiceSMC = "AppleSMC" constant KSMCUserClientOpen (line 454) | KSMCUserClientOpen = 0 constant KSMCUserClientClose (line 455) | KSMCUserClientClose = 1 constant KSMCHandleYPCEvent (line 456) | KSMCHandleYPCEvent = 2 constant KSMCReadKey (line 457) | KSMCReadKey = 5 constant KSMCWriteKey (line 458) | KSMCWriteKey = 6 constant KSMCGetKeyCount (line 459) | KSMCGetKeyCount = 7 constant KSMCGetKeyFromIndex (line 460) | KSMCGetKeyFromIndex = 8 constant KSMCGetKeyInfo (line 461) | KSMCGetKeyInfo = 9 constant KSMCSuccess (line 465) | KSMCSuccess = 0 constant KSMCError (line 466) | KSMCError = 1 constant KSMCKeyNotFound (line 467) | KSMCKeyNotFound = 132 function NewSMC (line 470) | func NewSMC() (*SMC, error) { type CStr (line 506) | type CStr method Length (line 512) | func (s CStr) Length() int64 { method Ptr (line 516) | func (s CStr) Ptr() *byte { method Addr (line 524) | func (s CStr) Addr() uintptr { method GoString (line 528) | func (s CStr) GoString() string { function NewCStr (line 508) | func NewCStr(length int64) CStr { function GoString (line 544) | func GoString(cStr *byte) string { function GetCFStringBufLengthForUTF8 (line 556) | func GetCFStringBufLengthForUTF8(length int64) int64 { FILE: internal/common/common_freebsd.go function SysctlUint (line 13) | func SysctlUint(mib string) (uint64, error) { function CallSyscall (line 28) | func CallSyscall(mib []int32) ([]byte, uint64, error) { FILE: internal/common/common_linux.go function NumProcs (line 22) | func NumProcs() (uint64, error) { function NumProcsWithContext (line 26) | func NumProcsWithContext(ctx context.Context) (uint64, error) { function BootTimeWithContext (line 48) | func BootTimeWithContext(ctx context.Context, enableCache bool) (uint64,... function handleBootTimeFileReadErr (line 106) | func handleBootTimeFileReadErr(err error) (uint64, error) { function readBootTimeStat (line 121) | func readBootTimeStat(ctx context.Context) (uint64, error) { function Virtualization (line 142) | func Virtualization() (string, string, error) { function VirtualizationWithContext (line 153) | func VirtualizationWithContext(ctx context.Context) (string, string, err... function GetOSRelease (line 305) | func GetOSRelease() (platform, version string, err error) { function GetOSReleaseWithContext (line 309) | func GetOSReleaseWithContext(ctx context.Context) (platform, version str... function trimQuotes (line 336) | func trimQuotes(s string) string { FILE: internal/common/common_netbsd.go function CallSyscall (line 12) | func CallSyscall(mib []int32) ([]byte, uint64, error) { FILE: internal/common/common_openbsd.go function CallSyscall (line 12) | func CallSyscall(mib []int32) ([]byte, uint64, error) { FILE: internal/common/common_test.go function TestReadlines (line 18) | func TestReadlines(t *testing.T) { function TestReadLinesOffsetN (line 24) | func TestReadLinesOffsetN(t *testing.T) { function TestIntToString (line 30) | func TestIntToString(t *testing.T) { function TestByteToString (line 34) | func TestByteToString(t *testing.T) { function TestHexToUint32 (line 40) | func TestHexToUint32(t *testing.T) { function TestMustParseInt32 (line 44) | func TestMustParseInt32(t *testing.T) { function TestMustParseUint64 (line 48) | func TestMustParseUint64(t *testing.T) { function TestMustParseFloat64 (line 52) | func TestMustParseFloat64(t *testing.T) { function TestStringsContains (line 57) | func TestStringsContains(t *testing.T) { function TestPathExists (line 63) | func TestPathExists(t *testing.T) { function TestPathExistsWithContents (line 68) | func TestPathExistsWithContents(t *testing.T) { function TestHostEtc (line 79) | func TestHostEtc(t *testing.T) { function TestGetSysctrlEnv (line 87) | func TestGetSysctrlEnv(t *testing.T) { function TestGetEnvDefault (line 109) | func TestGetEnvDefault(t *testing.T) { function TestGetEnvWithNoContext (line 117) | func TestGetEnvWithNoContext(t *testing.T) { function TestGetEnvWithContextOverride (line 126) | func TestGetEnvWithContextOverride(t *testing.T) { FILE: internal/common/common_unix.go function CallLsofWithContext (line 14) | func CallLsofWithContext(ctx context.Context, invoke Invoker, pid int32,... FILE: internal/common/common_windows.go type PDH_FMT_COUNTERVALUE_DOUBLE (line 20) | type PDH_FMT_COUNTERVALUE_DOUBLE struct type PDH_FMT_COUNTERVALUE_LARGE (line 26) | type PDH_FMT_COUNTERVALUE_LARGE struct type PDH_FMT_COUNTERVALUE_LONG (line 32) | type PDH_FMT_COUNTERVALUE_LONG struct constant ERROR_SUCCESS (line 40) | ERROR_SUCCESS = 0 constant ERROR_FILE_NOT_FOUND (line 41) | ERROR_FILE_NOT_FOUND = 2 constant DRIVE_REMOVABLE (line 42) | DRIVE_REMOVABLE = 2 constant DRIVE_FIXED (line 43) | DRIVE_FIXED = 3 constant HKEY_LOCAL_MACHINE (line 44) | HKEY_LOCAL_MACHINE = 0x80000002 constant RRF_RT_REG_SZ (line 45) | RRF_RT_REG_SZ = 0x00000002 constant RRF_RT_REG_DWORD (line 46) | RRF_RT_REG_DWORD = 0x00000010 constant PDH_FMT_LONG (line 47) | PDH_FMT_LONG = 0x00000100 constant PDH_FMT_DOUBLE (line 48) | PDH_FMT_DOUBLE = 0x00000200 constant PDH_FMT_LARGE (line 49) | PDH_FMT_LARGE = 0x00000400 constant PDH_INVALID_DATA (line 50) | PDH_INVALID_DATA = 0xc0000bc6 constant PDH_INVALID_HANDLE (line 51) | PDH_INVALID_HANDLE = 0xC0000bbc constant PDH_NO_DATA (line 52) | PDH_NO_DATA = 0x800007d5 constant STATUS_BUFFER_OVERFLOW (line 54) | STATUS_BUFFER_OVERFLOW = 0x80000005 constant STATUS_BUFFER_TOO_SMALL (line 55) | STATUS_BUFFER_TOO_SMALL = 0xC0000023 constant STATUS_INFO_LENGTH_MISMATCH (line 56) | STATUS_INFO_LENGTH_MISMATCH = 0xC0000004 constant ProcessBasicInformation (line 60) | ProcessBasicInformation = 0 constant ProcessWow64Information (line 61) | ProcessWow64Information = 26 constant ProcessQueryInformation (line 62) | ProcessQueryInformation = windows.PROCESS_DUP_HANDLE | windows.PROCESS_Q... constant SystemExtendedHandleInformationClass (line 64) | SystemExtendedHandleInformationClass = 64 type FILETIME (line 92) | type FILETIME struct function BytePtrToString (line 98) | func BytePtrToString(p *uint8) string { type CounterInfo (line 109) | type CounterInfo struct function CreateQuery (line 117) | func CreateQuery() (windows.Handle, error) { function CreateCounter (line 127) | func CreateCounter(query windows.Handle, pname, cname string) (*CounterI... function GetCounterValue (line 146) | func GetCounterValue(counter windows.Handle) (float64, error) { type Win32PerformanceCounter (line 155) | type Win32PerformanceCounter struct method GetValue (line 184) | func (w *Win32PerformanceCounter) GetValue() (float64, error) { function NewWin32PerformanceCounter (line 162) | func NewWin32PerformanceCounter(postName, counterName string) (*Win32Per... function ProcessorQueueLengthCounter (line 196) | func ProcessorQueueLengthCounter() (*Win32PerformanceCounter, error) { function WMIQueryWithContext (line 201) | func WMIQueryWithContext(ctx context.Context, query string, dst any, con... function ConvertDOSPath (line 228) | func ConvertDOSPath(p string) string { type NtStatus (line 244) | type NtStatus method Error (line 246) | func (s NtStatus) Error() error { method IsError (line 253) | func (s NtStatus) IsError() bool { type SystemExtendedHandleTableEntryInformation (line 257) | type SystemExtendedHandleTableEntryInformation struct type SystemExtendedHandleInformation (line 268) | type SystemExtendedHandleInformation struct function CallWithExpandingBuffer (line 275) | func CallWithExpandingBuffer(fn func() NtStatus, buf *[]byte, resultLeng... function NtQuerySystemInformation (line 293) | func NtQuerySystemInformation( FILE: internal/common/endian.go function IsLittleEndian (line 8) | func IsLittleEndian() bool { FILE: internal/common/readlink_linux.go function ignoringEINTR2 (line 20) | func ignoringEINTR2[T any](fn func() (T, error)) (T, error) { function fixCount (line 31) | func fixCount(n int, err error) (int, error) { function Readlink (line 39) | func Readlink(name string) (string, error) { FILE: internal/common/sleep.go function Sleep (line 11) | func Sleep(ctx context.Context, interval time.Duration) error { FILE: internal/common/sleep_test.go function TestSleep (line 13) | func TestSleep(test *testing.T) { FILE: internal/common/warnings.go constant maxWarnings (line 10) | maxWarnings = 100 constant tooManyErrorsMessage (line 11) | tooManyErrorsMessage = "too many errors reported, next errors were di... constant numberOfWarningsMessage (line 12) | numberOfWarningsMessage = "Number of warnings:" type Warnings (line 15) | type Warnings struct method Add (line 21) | func (w *Warnings) Add(err error) { method Reference (line 29) | func (w *Warnings) Reference() error { method Error (line 36) | func (w *Warnings) Error() string { FILE: internal/common/warnings_test.go function TestWarnings_AddAndReference (line 13) | func TestWarnings_AddAndReference(t *testing.T) { function TestWarnings_MaxLimit (line 21) | func TestWarnings_MaxLimit(t *testing.T) { function TestWarnings_ErrorVerbose (line 30) | func TestWarnings_ErrorVerbose(t *testing.T) { function TestWarnings_ErrorNonVerbose (line 41) | func TestWarnings_ErrorNonVerbose(t *testing.T) { function TestWarnings_ErrorTooMany (line 48) | func TestWarnings_ErrorTooMany(t *testing.T) { FILE: load/load.go type AvgStat (line 12) | type AvgStat struct method String (line 18) | func (l AvgStat) String() string { type MiscStat (line 23) | type MiscStat struct method String (line 31) | func (m MiscStat) String() string { FILE: load/load_aix.go function Avg (line 10) | func Avg() (*AvgStat, error) { function Misc (line 17) | func Misc() (*MiscStat, error) { FILE: load/load_aix_cgo.go function AvgWithContext (line 22) | func AvgWithContext(ctx context.Context) (*AvgStat, error) { function MiscWithContext (line 36) | func MiscWithContext(ctx context.Context) (*MiscStat, error) { FILE: load/load_aix_nocgo.go function AvgWithContext (line 18) | func AvgWithContext(ctx context.Context) (*AvgStat, error) { function MiscWithContext (line 47) | func MiscWithContext(ctx context.Context) (*MiscStat, error) { FILE: load/load_bsd.go function Avg (line 14) | func Avg() (*AvgStat, error) { function AvgWithContext (line 18) | func AvgWithContext(_ context.Context) (*AvgStat, error) { type forkstat (line 40) | type forkstat struct function Misc (line 49) | func Misc() (*MiscStat, error) { function MiscWithContext (line 53) | func MiscWithContext(ctx context.Context) (*MiscStat, error) { FILE: load/load_darwin.go function Avg (line 14) | func Avg() (*AvgStat, error) { function AvgWithContext (line 18) | func AvgWithContext(_ context.Context) (*AvgStat, error) { function Misc (line 45) | func Misc() (*MiscStat, error) { function MiscWithContext (line 49) | func MiscWithContext(ctx context.Context) (*MiscStat, error) { FILE: load/load_fallback.go function Avg (line 12) | func Avg() (*AvgStat, error) { function AvgWithContext (line 16) | func AvgWithContext(_ context.Context) (*AvgStat, error) { function Misc (line 20) | func Misc() (*MiscStat, error) { function MiscWithContext (line 24) | func MiscWithContext(_ context.Context) (*MiscStat, error) { FILE: load/load_freebsd.go function getForkStat (line 6) | func getForkStat() (forkstat, error) { FILE: load/load_linux.go function Avg (line 16) | func Avg() (*AvgStat, error) { function AvgWithContext (line 20) | func AvgWithContext(ctx context.Context) (*AvgStat, error) { function sysinfoAvgWithContext (line 28) | func sysinfoAvgWithContext() (*AvgStat, error) { function fileAvgWithContext (line 43) | func fileAvgWithContext(ctx context.Context) (*AvgStat, error) { function Misc (line 73) | func Misc() (*MiscStat, error) { function MiscWithContext (line 77) | func MiscWithContext(ctx context.Context) (*MiscStat, error) { function readLoadAvgFromFile (line 119) | func readLoadAvgFromFile(ctx context.Context) ([]string, error) { FILE: load/load_openbsd.go function getForkStat (line 12) | func getForkStat() (forkstat, error) { FILE: load/load_solaris.go function Avg (line 14) | func Avg() (*AvgStat, error) { function AvgWithContext (line 18) | func AvgWithContext(ctx context.Context) (*AvgStat, error) { function Misc (line 56) | func Misc() (*MiscStat, error) { function MiscWithContext (line 60) | func MiscWithContext(ctx context.Context) (*MiscStat, error) { FILE: load/load_test.go function TestAvg (line 14) | func TestAvg(t *testing.T) { function TestAvgStat_String (line 26) | func TestAvgStat_String(t *testing.T) { function TestMisc (line 37) | func TestMisc(t *testing.T) { function TestMiscStatString (line 49) | func TestMiscStatString(t *testing.T) { function BenchmarkLoad (line 62) | func BenchmarkLoad(b *testing.B) { FILE: load/load_windows.go function loadAvgGoroutine (line 28) | func loadAvgGoroutine(ctx context.Context) { function Avg (line 66) | func Avg() (*AvgStat, error) { function AvgWithContext (line 70) | func AvgWithContext(ctx context.Context) (*AvgStat, error) { function Misc (line 85) | func Misc() (*MiscStat, error) { function MiscWithContext (line 89) | func MiscWithContext(_ context.Context) (*MiscStat, error) { FILE: mem/ex_linux.go type ExVirtualMemory (line 11) | type ExVirtualMemory struct method String (line 21) | func (v ExVirtualMemory) String() string { type ExLinux (line 26) | type ExLinux struct method VirtualMemory (line 32) | func (ex *ExLinux) VirtualMemory() (*ExVirtualMemory, error) { method VirtualMemoryWithContext (line 36) | func (*ExLinux) VirtualMemoryWithContext(ctx context.Context) (*ExVirt... function NewExLinux (line 28) | func NewExLinux() *ExLinux { FILE: mem/ex_windows.go type ExVirtualMemory (line 13) | type ExVirtualMemory struct type ExWindows (line 24) | type ExWindows struct method VirtualMemory (line 30) | func (*ExWindows) VirtualMemory() (*ExVirtualMemory, error) { function NewExWindows (line 26) | func NewExWindows() *ExWindows { FILE: mem/mem.go type VirtualMemoryStat (line 16) | type VirtualMemoryStat struct method String (line 103) | func (m VirtualMemoryStat) String() string { type SwapMemoryStat (line 87) | type SwapMemoryStat struct method String (line 108) | func (m SwapMemoryStat) String() string { type SwapDevice (line 113) | type SwapDevice struct method String (line 119) | func (m SwapDevice) String() string { FILE: mem/mem_aix.go function VirtualMemory (line 12) | func VirtualMemory() (*VirtualMemoryStat, error) { function SwapMemory (line 16) | func SwapMemory() (*SwapMemoryStat, error) { function SwapDevices (line 20) | func SwapDevices() ([]*SwapDevice, error) { FILE: mem/mem_aix_cgo.go function VirtualMemoryWithContext (line 12) | func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, ... function SwapMemoryWithContext (line 31) | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { FILE: mem/mem_aix_nocgo.go function VirtualMemoryWithContext (line 14) | func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, ... function SwapMemoryWithContext (line 27) | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { function callSVMon (line 38) | func callSVMon(ctx context.Context, virt bool) (*VirtualMemoryStat, *Swa... FILE: mem/mem_bsd.go constant swapCommand (line 13) | swapCommand = "swapctl" constant nameCol (line 17) | nameCol = 0 constant totalKiBCol (line 18) | totalKiBCol = 1 constant usedKiBCol (line 19) | usedKiBCol = 2 function SwapDevices (line 22) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 26) | func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) { function parseSwapctlOutput (line 35) | func parseSwapctlOutput(output string) ([]*SwapDevice, error) { FILE: mem/mem_bsd_test.go constant validFreeBSD (line 13) | validFreeBSD = `Device: 1kB-blocks Used: constant validOpenBSD (line 18) | validOpenBSD = `Device 1K-blocks Used Avail Capacity Priority constant invalid (line 22) | invalid = `Device: 512-blocks Used: function TestParseSwapctlOutput_FreeBSD (line 27) | func TestParseSwapctlOutput_FreeBSD(t *testing.T) { function TestParseSwapctlOutput_OpenBSD (line 44) | func TestParseSwapctlOutput_OpenBSD(t *testing.T) { function TestParseSwapctlOutput_Invalid (line 55) | func TestParseSwapctlOutput_Invalid(t *testing.T) { function TestParseSwapctlOutput_Empty (line 60) | func TestParseSwapctlOutput_Empty(t *testing.T) { FILE: mem/mem_darwin.go function getHwMemsize (line 16) | func getHwMemsize() (uint64, error) { type swapUsage (line 25) | type swapUsage struct function SwapMemory (line 34) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 38) | func SwapMemoryWithContext(_ context.Context) (*SwapMemoryStat, error) { function SwapDevices (line 66) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 70) | func SwapDevicesWithContext(_ context.Context) ([]*SwapDevice, error) { type vmStatisticsData (line 74) | type vmStatisticsData struct function VirtualMemory (line 83) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 87) | func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, er... FILE: mem/mem_darwin_test.go function TestVirtualMemoryDarwin (line 15) | func TestVirtualMemoryDarwin(t *testing.T) { FILE: mem/mem_fallback.go function VirtualMemory (line 12) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 16) | func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, er... function SwapMemory (line 20) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 24) | func SwapMemoryWithContext(_ context.Context) (*SwapMemoryStat, error) { function SwapDevices (line 28) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 32) | func SwapDevicesWithContext(_ context.Context) ([]*SwapDevice, error) { FILE: mem/mem_freebsd.go function VirtualMemory (line 16) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 20) | func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, er... function SwapMemory (line 84) | func SwapMemory() (*SwapMemoryStat, error) { constant XSWDEV_VERSION11 (line 90) | XSWDEV_VERSION11 = 1 constant XSWDEV_VERSION (line 91) | XSWDEV_VERSION = 2 type xswdev (line 95) | type xswdev struct type xswdev11 (line 105) | type xswdev11 struct function SwapMemoryWithContext (line 113) | func SwapMemoryWithContext(_ context.Context) (*SwapMemoryStat, error) { FILE: mem/mem_linux.go constant WillBeDeletedOptOutMemAvailableCalc (line 26) | WillBeDeletedOptOutMemAvailableCalc = "optOutMemAvailableCalc" function VirtualMemory (line 28) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 32) | func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, ... function fillFromMeminfoWithContext (line 40) | func fillFromMeminfoWithContext(ctx context.Context) (*VirtualMemoryStat... function SwapMemory (line 344) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 348) | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { function calculateAvailVmem (line 420) | func calculateAvailVmem(ctx context.Context, ret *VirtualMemoryStat, ret... constant swapsFilename (line 459) | swapsFilename = "swaps" constant nameCol (line 463) | nameCol = 0 constant totalCol (line 465) | totalCol = 2 constant usedCol (line 466) | usedCol = 3 function SwapDevices (line 470) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 474) | func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) { function parseSwapsFile (line 485) | func parseSwapsFile(ctx context.Context, r io.Reader) ([]*SwapDevice, er... FILE: mem/mem_linux_test.go function TestExVirtualMemory (line 20) | func TestExVirtualMemory(t *testing.T) { function TestVirtualMemoryLinux (line 154) | func TestVirtualMemoryLinux(t *testing.T) { function TestExVirtualMemoryLinux (line 169) | func TestExVirtualMemoryLinux(t *testing.T) { constant validFile (line 185) | validFile = `Filename Type Size Used Priority constant invalidFile (line 190) | invalidFile = `INVALID Type Size Used Priority function TestParseSwapsFile_ValidFile (line 195) | func TestParseSwapsFile_ValidFile(t *testing.T) { function TestParseSwapsFile_InvalidFile (line 212) | func TestParseSwapsFile_InvalidFile(t *testing.T) { function TestParseSwapsFile_EmptyFile (line 217) | func TestParseSwapsFile_EmptyFile(t *testing.T) { FILE: mem/mem_netbsd.go function GetPageSize (line 14) | func GetPageSize() (uint64, error) { function GetPageSizeWithContext (line 18) | func GetPageSizeWithContext(_ context.Context) (uint64, error) { function VirtualMemory (line 26) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 30) | func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, er... function SwapMemory (line 60) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 64) | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { FILE: mem/mem_openbsd.go function GetPageSize (line 18) | func GetPageSize() (uint64, error) { function GetPageSizeWithContext (line 22) | func GetPageSizeWithContext(_ context.Context) (uint64, error) { function VirtualMemory (line 30) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 34) | func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, er... function SwapMemory (line 73) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 77) | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { FILE: mem/mem_openbsd_386.go constant CTLVfs (line 10) | CTLVfs = 10 constant VfsGeneric (line 11) | VfsGeneric = 0 constant VfsBcacheStat (line 12) | VfsBcacheStat = 3 constant sizeOfBcachestats (line 16) | sizeOfBcachestats = 0x90 type Bcachestats (line 19) | type Bcachestats struct FILE: mem/mem_openbsd_amd64.go constant CTLVfs (line 8) | CTLVfs = 10 constant VfsGeneric (line 9) | VfsGeneric = 0 constant VfsBcacheStat (line 10) | VfsBcacheStat = 3 constant sizeOfBcachestats (line 14) | sizeOfBcachestats = 0x78 type Bcachestats (line 17) | type Bcachestats struct FILE: mem/mem_openbsd_arm.go constant CTLVfs (line 10) | CTLVfs = 10 constant VfsGeneric (line 11) | VfsGeneric = 0 constant VfsBcacheStat (line 12) | VfsBcacheStat = 3 constant sizeOfBcachestats (line 16) | sizeOfBcachestats = 0x90 type Bcachestats (line 19) | type Bcachestats struct FILE: mem/mem_openbsd_arm64.go constant CTLVfs (line 10) | CTLVfs = 10 constant VfsGeneric (line 11) | VfsGeneric = 0 constant VfsBcacheStat (line 12) | VfsBcacheStat = 3 constant sizeOfBcachestats (line 16) | sizeOfBcachestats = 0x90 type Bcachestats (line 19) | type Bcachestats struct FILE: mem/mem_openbsd_riscv64.go constant CTLVfs (line 10) | CTLVfs = 10 constant VfsGeneric (line 11) | VfsGeneric = 0 constant VfsBcacheStat (line 12) | VfsBcacheStat = 3 constant sizeOfBcachestats (line 16) | sizeOfBcachestats = 0x90 type Bcachestats (line 19) | type Bcachestats struct FILE: mem/mem_plan9.go function SwapMemory (line 15) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 19) | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { function VirtualMemory (line 37) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 41) | func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, ... function SwapDevices (line 63) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 67) | func SwapDevicesWithContext(_ context.Context) ([]*SwapDevice, error) { FILE: mem/mem_plan9_test.go function TestVirtualMemoryPlan9 (line 34) | func TestVirtualMemoryPlan9(t *testing.T) { function TestSwapMemoryPlan9 (line 62) | func TestSwapMemoryPlan9(t *testing.T) { FILE: mem/mem_solaris.go function VirtualMemory (line 21) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 25) | func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, ... function SwapMemory (line 57) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 61) | func SwapMemoryWithContext(_ context.Context) (*SwapMemoryStat, error) { function zoneName (line 65) | func zoneName(ctx context.Context) (string, error) { function globalZoneMemoryCapacity (line 76) | func globalZoneMemoryCapacity(ctx context.Context) (uint64, error) { function globalZoneFreeMemory (line 95) | func globalZoneFreeMemory(ctx context.Context) (uint64, error) { function nonGlobalZoneMemoryCapacity (line 116) | func nonGlobalZoneMemoryCapacity(ctx context.Context) (uint64, error) { constant swapCommand (line 135) | swapCommand = "swap" constant blockSize (line 138) | blockSize = 512 constant nameCol (line 142) | nameCol = 0 constant totalBlocksCol (line 145) | totalBlocksCol = 3 constant freeBlocksCol (line 146) | freeBlocksCol = 4 function SwapDevices (line 149) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 153) | func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) { function parseSwapsCommandOutput (line 162) | func parseSwapsCommandOutput(output string) ([]*SwapDevice, error) { FILE: mem/mem_solaris_test.go constant validFile (line 13) | validFile = `swapfile dev swaplo blocks free constant invalidFile (line 17) | invalidFile = `swapfile dev swaplo INVALID free function TestParseSwapsCommandOutput_Valid (line 21) | func TestParseSwapsCommandOutput_Valid(t *testing.T) { function TestParseSwapsCommandOutput_Invalid (line 38) | func TestParseSwapsCommandOutput_Invalid(t *testing.T) { function TestParseSwapsCommandOutput_Empty (line 43) | func TestParseSwapsCommandOutput_Empty(t *testing.T) { FILE: mem/mem_test.go function TestVirtualMemory (line 15) | func TestVirtualMemory(t *testing.T) { function TestSwapMemory (line 65) | func TestSwapMemory(t *testing.T) { function TestVirtualMemoryStat_String (line 77) | func TestVirtualMemoryStat_String(t *testing.T) { function TestSwapMemoryStat_String (line 90) | func TestSwapMemoryStat_String(t *testing.T) { function TestSwapDevices (line 107) | func TestSwapDevices(t *testing.T) { FILE: mem/mem_windows.go type memoryStatusEx (line 24) | type memoryStatusEx struct function VirtualMemory (line 36) | func VirtualMemory() (*VirtualMemoryStat, error) { function VirtualMemoryWithContext (line 40) | func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, er... type performanceInformation (line 61) | type performanceInformation struct function SwapMemory (line 78) | func SwapMemory() (*SwapMemoryStat, error) { function SwapMemoryWithContext (line 82) | func SwapMemoryWithContext(_ context.Context) (*SwapMemoryStat, error) { type systemInfo (line 131) | type systemInfo struct type enumPageFileInformation (line 146) | type enumPageFileInformation struct function SwapDevices (line 154) | func SwapDevices() ([]*SwapDevice, error) { function SwapDevicesWithContext (line 158) | func SwapDevicesWithContext(_ context.Context) ([]*SwapDevice, error) { function pEnumPageFileCallbackW (line 179) | func pEnumPageFileCallbackW(swapDevices *[]*SwapDevice, enumPageFileInfo... FILE: mem/types_openbsd.go constant CTLVfs (line 20) | CTLVfs = 10 constant VfsGeneric (line 21) | VfsGeneric = 0 constant VfsBcacheStat (line 22) | VfsBcacheStat = 3 constant sizeOfBcachestats (line 26) | sizeOfBcachestats = C.sizeof_struct_bcachestats type Bcachestats (line 29) | type Bcachestats FILE: net/net.go type IOCountersStat (line 14) | type IOCountersStat struct method String (line 166) | func (n IOCountersStat) String() string { type Addr (line 29) | type Addr struct method String (line 181) | func (a Addr) String() string { type ConnectionStat (line 34) | type ConnectionStat struct method String (line 171) | func (n ConnectionStat) String() string { type ProtoCountersStat (line 46) | type ProtoCountersStat struct method String (line 176) | func (n ProtoCountersStat) String() string { type InterfaceAddr (line 52) | type InterfaceAddr struct method String (line 196) | func (n InterfaceAddr) String() string { type InterfaceAddrList (line 57) | type InterfaceAddrList type InterfaceStat (line 59) | type InterfaceStat struct method String (line 186) | func (n InterfaceStat) String() string { type InterfaceStatList (line 69) | type InterfaceStatList method String (line 191) | func (l InterfaceStatList) String() string { type FilterStat (line 71) | type FilterStat struct type ConntrackStat (line 77) | type ConntrackStat struct method String (line 201) | func (n ConntrackStat) String() string { function NewConntrackStat (line 97) | func NewConntrackStat(e, s, f, n, inv, ign, del, dlst, ins, insfail, dro... type ConntrackStatList (line 119) | type ConntrackStatList struct method Append (line 129) | func (l *ConntrackStatList) Append(c *ConntrackStat) { method Items (line 133) | func (l *ConntrackStatList) Items() []ConntrackStat { method Summary (line 142) | func (l *ConntrackStatList) Summary() []ConntrackStat { function NewConntrackStatList (line 123) | func NewConntrackStatList() *ConntrackStatList { function Interfaces (line 206) | func Interfaces() (InterfaceStatList, error) { function InterfacesWithContext (line 210) | func InterfacesWithContext(_ context.Context) (InterfaceStatList, error) { function getIOCountersAll (line 258) | func getIOCountersAll(n []IOCountersStat) []IOCountersStat { function IOCounters (line 281) | func IOCounters(pernic bool) ([]IOCountersStat, error) { function IOCountersByFile (line 285) | func IOCountersByFile(pernic bool, filename string) ([]IOCountersStat, e... function ProtoCounters (line 295) | func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) { function FilterCounters (line 302) | func FilterCounters() ([]FilterStat, error) { function ConntrackStats (line 307) | func ConntrackStats(percpu bool) ([]ConntrackStat, error) { function Connections (line 312) | func Connections(kind string) ([]ConnectionStat, error) { function ConnectionsMax (line 318) | func ConnectionsMax(kind string, maxConn int) ([]ConnectionStat, error) { function ConnectionsWithoutUids (line 325) | func ConnectionsWithoutUids(kind string) ([]ConnectionStat, error) { function ConnectionsPid (line 330) | func ConnectionsPid(kind string, pid int32) ([]ConnectionStat, error) { function ConnectionsPidWithoutUids (line 337) | func ConnectionsPidWithoutUids(kind string, pid int32) ([]ConnectionStat... function ConnectionsPidMaxWithoutUids (line 341) | func ConnectionsPidMaxWithoutUids(kind string, pid int32, maxConn int) (... function ConnectionsPidMax (line 346) | func ConnectionsPidMax(kind string, pid int32, maxConn int) ([]Connectio... function Pids (line 354) | func Pids() ([]int32, error) { FILE: net/net_aix.go function PidsWithContext (line 18) | func PidsWithContext(_ context.Context) ([]int32, error) { function IOCountersByFileWithContext (line 22) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function FilterCountersWithContext (line 26) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 30) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 34) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... function parseNetstatNetLine (line 38) | func parseNetstatNetLine(line string) (ConnectionStat, error) { function parseAddr (line 84) | func parseAddr(l string, family uint32) (Addr, error) { function parseNetstatAddr (line 110) | func parseNetstatAddr(local, remote string, family uint32) (laddr, raddr... function parseNetstatUnixLine (line 122) | func parseNetstatUnixLine(f []string) (ConnectionStat, error) { function hasCorrectInetProto (line 160) | func hasCorrectInetProto(kind, proto string) bool { function parseNetstatA (line 186) | func parseNetstatA(output, kind string) ([]ConnectionStat, error) { function ConnectionsWithContext (line 238) | func ConnectionsWithContext(ctx context.Context, kind string) ([]Connect... function ConnectionsMaxWithContext (line 270) | func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn... function ConnectionsWithoutUidsWithContext (line 274) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 278) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithContext (line 282) | func ConnectionsPidWithContext(ctx context.Context, kind string, pid int... function ConnectionsPidWithoutUidsWithContext (line 286) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidMaxWithContext (line 290) | func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid ... function ConnectionsPidMaxWithoutUidsWithContext (line 294) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 298) | func connectionsPidMaxWithoutUidsWithContext(_ context.Context, _ string... FILE: net/net_aix_cgo.go function IOCountersWithContext (line 12) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... FILE: net/net_aix_nocgo.go function parseNetstatI (line 15) | func parseNetstatI(output string) ([]IOCountersStat, error) { function IOCountersWithContext (line 81) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... FILE: net/net_darwin.go constant endOfLine (line 23) | endOfLine = "\n" function parseNetstatLine (line 25) | func parseNetstatLine(line string) (stat *IOCountersStat, linkID *uint, ... type netstatInterface (line 91) | type netstatInterface struct function parseNetstatOutput (line 96) | func parseNetstatOutput(output string) ([]netstatInterface, error) { type mapInterfaceNameUsage (line 122) | type mapInterfaceNameUsage method isTruncated (line 140) | func (mapi mapInterfaceNameUsage) isTruncated() bool { method notTruncated (line 149) | func (mapi mapInterfaceNameUsage) notTruncated() []string { function newMapInterfaceNameUsage (line 124) | func newMapInterfaceNameUsage(ifaces []netstatInterface) mapInterfaceNam... function PidsWithContext (line 160) | func PidsWithContext(_ context.Context) ([]int32, error) { function IOCountersWithContext (line 169) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... function IOCountersByFileWithContext (line 251) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function FilterCountersWithContext (line 255) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 259) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 263) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... FILE: net/net_darwin_test.go constant netstatTruncated (line 11) | netstatTruncated = `Name Mtu Network Address Ipkts I... constant netstatNotTruncated (line 23) | netstatNotTruncated = `Name Mtu Network Address Ipkt... function TestParseNetstatLineHeader (line 34) | func TestParseNetstatLineHeader(t *testing.T) { function assertLoopbackStat (line 42) | func assertLoopbackStat(t *testing.T, err error, stat *IOCountersStat) { function TestParseNetstatLineNoAddressWithDrop (line 53) | func TestParseNetstatLineNoAddressWithDrop(t *testing.T) { function TestParseNetstatLineLink (line 62) | func TestParseNetstatLineLink(t *testing.T) { function TestParseNetstatLineIPv6 (line 71) | func TestParseNetstatLineIPv6(t *testing.T) { function TestParseNetstatLineIPv4 (line 79) | func TestParseNetstatLineIPv4(t *testing.T) { function TestParseNetstatOutput (line 87) | func TestParseNetstatOutput(t *testing.T) { function TestParseNetstatTruncated (line 118) | func TestParseNetstatTruncated(t *testing.T) { FILE: net/net_fallback.go function IOCountersWithContext (line 12) | func IOCountersWithContext(_ context.Context, _ bool) ([]IOCountersStat,... function IOCountersByFileWithContext (line 16) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function FilterCountersWithContext (line 20) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 24) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 28) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... function PidsWithContext (line 33) | func PidsWithContext(_ context.Context) ([]int32, error) { function ConnectionsWithContext (line 37) | func ConnectionsWithContext(_ context.Context, _ string) ([]ConnectionSt... function ConnectionsMaxWithContext (line 41) | func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn... function ConnectionsWithoutUidsWithContext (line 45) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 49) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithoutUidsWithContext (line 53) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithContext (line 57) | func ConnectionsPidWithContext(ctx context.Context, kind string, pid int... function ConnectionsPidMaxWithContext (line 61) | func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid ... function ConnectionsPidMaxWithoutUidsWithContext (line 65) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 69) | func connectionsPidMaxWithoutUidsWithContext(_ context.Context, _ string... FILE: net/net_freebsd.go function PidsWithContext (line 15) | func PidsWithContext(_ context.Context) ([]int32, error) { function IOCountersWithContext (line 19) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... function IOCountersByFileWithContext (line 94) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function FilterCountersWithContext (line 98) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 102) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 106) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... FILE: net/net_linux.go constant ctENTRIES (line 23) | ctENTRIES = iota constant ctSEARCHED (line 24) | ctSEARCHED constant ctFOUND (line 25) | ctFOUND constant ctNEW (line 26) | ctNEW constant ctINVALID (line 27) | ctINVALID constant ctIGNORE (line 28) | ctIGNORE constant ctDELETE (line 29) | ctDELETE constant ctDELETE_LIST (line 30) | ctDELETE_LIST constant ctINSERT (line 31) | ctINSERT constant ctINSERT_FAILED (line 32) | ctINSERT_FAILED constant ctDROP (line 33) | ctDROP constant ctEARLY_DROP (line 34) | ctEARLY_DROP constant ctICMP_ERROR (line 35) | ctICMP_ERROR constant CT_EXPEctNEW (line 36) | CT_EXPEctNEW constant ctEXPECT_CREATE (line 37) | ctEXPECT_CREATE constant CT_EXPEctDELETE (line 38) | CT_EXPEctDELETE constant ctSEARCH_RESTART (line 39) | ctSEARCH_RESTART function IOCountersWithContext (line 42) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... function IOCountersByFileWithContext (line 47) | func IOCountersByFileWithContext(_ context.Context, pernic bool, filenam... function ProtoCountersWithContext (line 145) | func ProtoCountersWithContext(ctx context.Context, protocols []string) (... function FilterCountersWithContext (line 201) | func FilterCountersWithContext(ctx context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 226) | func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]Conn... function conntrackStatsFromFile (line 233) | func conntrackStatsFromFile(filename string, percpu bool) ([]ConntrackSt... type netConnectionKindType (line 287) | type netConnectionKindType struct type inodeMap (line 336) | type inodeMap struct type connTmp (line 341) | type connTmp struct function ConnectionsWithContext (line 353) | func ConnectionsWithContext(ctx context.Context, kind string) ([]Connect... function ConnectionsMaxWithContext (line 357) | func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn... function ConnectionsWithoutUidsWithContext (line 361) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 365) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithContext (line 369) | func ConnectionsPidWithContext(ctx context.Context, kind string, pid int... function ConnectionsPidWithoutUidsWithContext (line 373) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidMaxWithContext (line 377) | func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid ... function ConnectionsPidMaxWithoutUidsWithContext (line 381) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 385) | func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function statsFromInodesWithContext (line 408) | func statsFromInodesWithContext(ctx context.Context, root string, pid in... function getProcInodes (line 471) | func getProcInodes(root string, pid int32, maxConn int) (map[string][]in... function PidsWithContext (line 515) | func PidsWithContext(ctx context.Context) ([]int32, error) { type process (line 544) | type process struct method getUids (line 550) | func (p *process) getUids(ctx context.Context) ([]int32, error) { method fillFromStatus (line 559) | func (p *process) fillFromStatus(ctx context.Context) error { function getProcInodesAllWithContext (line 587) | func getProcInodesAllWithContext(ctx context.Context, root string, maxCo... function decodeAddress (line 616) | func decodeAddress(family uint32, src string) (Addr, error) { function Reverse (line 650) | func Reverse(s []byte) []byte { function parseIPv6HexString (line 658) | func parseIPv6HexString(src []byte) (net.IP, error) { function processInet (line 671) | func processInet(file string, kind netConnectionKindType, inodes map[str... function processUnix (line 737) | func processUnix(file string, kind netConnectionKindType, inodes map[str... function updateMap (line 795) | func updateMap(src, add map[string][]inodeMap) map[string][]inodeMap { FILE: net/net_linux_test.go function TestIOCountersByFileParsing (line 19) | func TestIOCountersByFileParsing(t *testing.T) { function TestGetProcInodesAll (line 82) | func TestGetProcInodesAll(t *testing.T) { function TestConnectionsMax (line 113) | func TestConnectionsMax(t *testing.T) { type AddrTest (line 134) | type AddrTest struct function TestDecodeAddress (line 140) | func TestDecodeAddress(t *testing.T) { function TestReverse (line 192) | func TestReverse(t *testing.T) { function TestConntrackStatFileParsing (line 197) | func TestConntrackStatFileParsing(t *testing.T) { FILE: net/net_openbsd.go function ParseNetstat (line 20) | func ParseNetstat(output string, mode string, function PidsWithContext (line 110) | func PidsWithContext(_ context.Context) ([]int32, error) { function IOCountersWithContext (line 114) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... function IOCountersByFileWithContext (line 160) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function FilterCountersWithContext (line 164) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 168) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 172) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... function parseNetstatLine (line 176) | func parseNetstatLine(line string) (ConnectionStat, error) { function parseAddr (line 220) | func parseAddr(l string, family uint32) (Addr, error) { function parseNetstatAddr (line 244) | func parseNetstatAddr(local, remote string, family uint32) (laddr, raddr... function ConnectionsWithContext (line 256) | func ConnectionsWithContext(ctx context.Context, kind string) ([]Connect... function ConnectionsPidWithContext (line 309) | func ConnectionsPidWithContext(_ context.Context, _ string, _ int32) ([]... function ConnectionsMaxWithContext (line 313) | func ConnectionsMaxWithContext(_ context.Context, _ string, _ int) ([]Co... function ConnectionsPidMaxWithContext (line 317) | func ConnectionsPidMaxWithContext(_ context.Context, _ string, _ int32, ... function ConnectionsWithoutUidsWithContext (line 321) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 325) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithoutUidsWithContext (line 329) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidMaxWithoutUidsWithContext (line 333) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 337) | func connectionsPidMaxWithoutUidsWithContext(_ context.Context, _ string... FILE: net/net_solaris.go function IOCountersWithContext (line 20) | func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCounte... function IOCountersByFileWithContext (line 114) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function FilterCountersWithContext (line 118) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 122) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 126) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... function PidsWithContext (line 131) | func PidsWithContext(_ context.Context) ([]int32, error) { function ConnectionsWithContext (line 135) | func ConnectionsWithContext(_ context.Context, _ string) ([]ConnectionSt... function ConnectionsMaxWithContext (line 139) | func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn... function ConnectionsWithoutUidsWithContext (line 143) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 147) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithoutUidsWithContext (line 151) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithContext (line 155) | func ConnectionsPidWithContext(ctx context.Context, kind string, pid int... function ConnectionsPidMaxWithContext (line 159) | func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid ... function ConnectionsPidMaxWithoutUidsWithContext (line 163) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 167) | func connectionsPidMaxWithoutUidsWithContext(_ context.Context, _ string... FILE: net/net_test.go function TestAddrString (line 17) | func TestAddrString(t *testing.T) { function TestIOCountersStatString (line 24) | func TestIOCountersStatString(t *testing.T) { function TestProtoCountersStatString (line 33) | func TestProtoCountersStatString(t *testing.T) { function TestConnectionStatString (line 46) | func TestConnectionStatString(t *testing.T) { function TestIOCountersAll (line 57) | func TestIOCountersAll(t *testing.T) { function TestIOCountersPerNic (line 91) | func TestIOCountersPerNic(t *testing.T) { function TestGetNetIOCountersAll (line 103) | func TestGetNetIOCountersAll(t *testing.T) { function TestInterfaces (line 124) | func TestInterfaces(t *testing.T) { function TestProtoCountersStatsAll (line 136) | func TestProtoCountersStatsAll(t *testing.T) { function TestProtoCountersStats (line 149) | func TestProtoCountersStats(t *testing.T) { function TestConnections (line 165) | func TestConnections(t *testing.T) { function TestFilterCounters (line 181) | func TestFilterCounters(t *testing.T) { function TestInterfaceStatString (line 204) | func TestInterfaceStatString(t *testing.T) { FILE: net/net_unix.go function ConnectionsWithContext (line 17) | func ConnectionsWithContext(ctx context.Context, kind string) ([]Connect... function ConnectionsMaxWithContext (line 21) | func ConnectionsMaxWithContext(_ context.Context, _ string, _ int) ([]Co... function ConnectionsPidWithContext (line 25) | func ConnectionsPidWithContext(ctx context.Context, kind string, pid int... function parseNetLine (line 81) | func parseNetLine(line string) (ConnectionStat, error) { function parseAddr (line 134) | func parseAddr(l string) (Addr, error) { function parseNetAddr (line 146) | func parseNetAddr(line string) (laddr, raddr Addr, err error) { function ConnectionsPidMaxWithContext (line 162) | func ConnectionsPidMaxWithContext(_ context.Context, _ string, _ int32, ... function ConnectionsWithoutUidsWithContext (line 166) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 170) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithoutUidsWithContext (line 174) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidMaxWithoutUidsWithContext (line 178) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 182) | func connectionsPidMaxWithoutUidsWithContext(_ context.Context, _ string... FILE: net/net_windows.go constant TCPTableBasicListener (line 28) | TCPTableBasicListener = iota constant TCPTableBasicConnections (line 29) | TCPTableBasicConnections constant TCPTableBasicAll (line 30) | TCPTableBasicAll constant TCPTableOwnerPIDListener (line 31) | TCPTableOwnerPIDListener constant TCPTableOwnerPIDConnections (line 32) | TCPTableOwnerPIDConnections constant TCPTableOwnerPIDAll (line 33) | TCPTableOwnerPIDAll constant TCPTableOwnerModuleListener (line 34) | TCPTableOwnerModuleListener constant TCPTableOwnerModuleConnections (line 35) | TCPTableOwnerModuleConnections constant TCPTableOwnerModuleAll (line 36) | TCPTableOwnerModuleAll type netConnectionKindType (line 39) | type netConnectionKindType struct type guid (line 83) | type guid struct constant maxStringSize (line 91) | maxStringSize = 256 constant maxPhysAddressLength (line 92) | maxPhysAddressLength = 32 constant pad0for64_4for32 (line 93) | pad0for64_4for32 = 0 type mibIfRow2 (line 96) | type mibIfRow2 struct function IOCountersWithContext (line 141) | func IOCountersWithContext(_ context.Context, pernic bool) ([]IOCounters... function IOCountersByFileWithContext (line 201) | func IOCountersByFileWithContext(ctx context.Context, pernic bool, _ str... function ConnectionsWithContext (line 205) | func ConnectionsWithContext(ctx context.Context, kind string) ([]Connect... function ConnectionsPidWithContext (line 209) | func ConnectionsPidWithContext(_ context.Context, kind string, pid int32... function getProcInet (line 217) | func getProcInet(kinds []netConnectionKindType, pid int32) ([]Connection... function getNetStatWithKind (line 241) | func getNetStatWithKind(kindType netConnectionKindType) ([]ConnectionSta... function PidsWithContext (line 261) | func PidsWithContext(_ context.Context) ([]int32, error) { function ConnectionsMaxWithContext (line 265) | func ConnectionsMaxWithContext(ctx context.Context, kind string, maxConn... function ConnectionsWithoutUidsWithContext (line 269) | func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string)... function ConnectionsMaxWithoutUidsWithContext (line 273) | func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidWithoutUidsWithContext (line 277) | func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind stri... function ConnectionsPidMaxWithContext (line 281) | func ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid ... function ConnectionsPidMaxWithoutUidsWithContext (line 285) | func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind s... function connectionsPidMaxWithoutUidsWithContext (line 289) | func connectionsPidMaxWithoutUidsWithContext(_ context.Context, _ string... function FilterCountersWithContext (line 293) | func FilterCountersWithContext(_ context.Context) ([]FilterStat, error) { function ConntrackStatsWithContext (line 297) | func ConntrackStatsWithContext(_ context.Context, _ bool) ([]ConntrackSt... function ProtoCountersWithContext (line 301) | func ProtoCountersWithContext(_ context.Context, _ []string) ([]ProtoCou... function getTableUintptr (line 305) | func getTableUintptr(family uint32, buf []byte) uintptr { function getTableInfo (line 331) | func getTableInfo(filename string, table any) (index, step, length int) { function getTCPConnections (line 354) | func getTCPConnections(family uint32) ([]ConnectionStat, error) { function getUDPConnections (line 435) | func getUDPConnections(family uint32) ([]ConnectionStat, error) { function getExtendedTCPTable (line 531) | func getExtendedTCPTable(pTCPTable uintptr, pdwSize *uint32, bOrder bool... function getExtendedUDPTable (line 539) | func getExtendedUDPTable(pUDPTable uintptr, pdwSize *uint32, bOrder bool... function getUintptrFromBool (line 547) | func getUintptrFromBool(b bool) uintptr { constant anySize (line 554) | anySize = 1 type mibTCPState (line 557) | type mibTCPState type tcpTableClass (line 559) | type tcpTableClass constant tcpTableBasicListener (line 562) | tcpTableBasicListener tcpTableClass = iota constant tcpTableBasicConnections (line 563) | tcpTableBasicConnections constant tcpTableBasicAll (line 564) | tcpTableBasicAll constant tcpTableOwnerPidListener (line 565) | tcpTableOwnerPidListener constant tcpTableOwnerPidConnections (line 566) | tcpTableOwnerPidConnections constant tcpTableOwnerPidAll (line 567) | tcpTableOwnerPidAll constant tcpTableOwnerModuleListener (line 568) | tcpTableOwnerModuleListener constant tcpTableOwnerModuleConnections (line 569) | tcpTableOwnerModuleConnections constant tcpTableOwnerModuleAll (line 570) | tcpTableOwnerModuleAll type udpTableClass (line 573) | type udpTableClass constant udpTableBasic (line 576) | udpTableBasic udpTableClass = iota constant udpTableOwnerPid (line 577) | udpTableOwnerPid constant udpTableOwnerModule (line 578) | udpTableOwnerModule type mibTCPRowOwnerPid (line 583) | type mibTCPRowOwnerPid struct method convertToConnectionStat (line 592) | func (m *mibTCPRowOwnerPid) convertToConnectionStat() ConnectionStat { type mibTCPTableOwnerPid (line 611) | type mibTCPTableOwnerPid struct type mibTCP6RowOwnerPid (line 616) | type mibTCP6RowOwnerPid struct method convertToConnectionStat (line 627) | func (m *mibTCP6RowOwnerPid) convertToConnectionStat() ConnectionStat { type mibTCP6TableOwnerPid (line 646) | type mibTCP6TableOwnerPid struct type pmibTCPTableOwnerPidAll (line 652) | type pmibTCPTableOwnerPidAll type pmibTCP6TableOwnerPidAll (line 653) | type pmibTCP6TableOwnerPidAll type mibUDPRowOwnerPid (line 658) | type mibUDPRowOwnerPid struct method convertToConnectionStat (line 664) | func (m *mibUDPRowOwnerPid) convertToConnectionStat() ConnectionStat { type mibUDPTableOwnerPid (line 678) | type mibUDPTableOwnerPid struct type mibUDP6RowOwnerPid (line 683) | type mibUDP6RowOwnerPid struct method convertToConnectionStat (line 690) | func (m *mibUDP6RowOwnerPid) convertToConnectionStat() ConnectionStat { type mibUDP6TableOwnerPid (line 704) | type mibUDP6TableOwnerPid struct type pmibUDPTableOwnerPid (line 710) | type pmibUDPTableOwnerPid type pmibUDP6TableOwnerPid (line 711) | type pmibUDP6TableOwnerPid function decodePort (line 714) | func decodePort(port uint32) uint16 { function parseIPv4HexString (line 718) | func parseIPv4HexString(addr uint32) string { function parseIPv6HexString (line 722) | func parseIPv6HexString(addr [16]byte) string { FILE: net/types_darwin.go constant sizeofPtr (line 29) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 30) | sizeofShort = C.sizeof_short constant sizeofInt (line 31) | sizeofInt = C.sizeof_int constant sizeofLong (line 32) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 33) | sizeofLongLong = C.sizeof_longlong constant sizeofLongDouble (line 34) | sizeofLongDouble = C.sizeof_longlong type _C_short (line 40) | type _C_short type _C_int (line 41) | type _C_int type _C_long (line 42) | type _C_long type _C_long_long (line 43) | type _C_long_long type _C_long_double (line 44) | type _C_long_double type Xinpgen (line 48) | type Xinpgen type Inpcb (line 49) | type Inpcb type in_addr (line 50) | type in_addr type Inpcb_list_entry (line 51) | type Inpcb_list_entry type Xsocket (line 52) | type Xsocket type Xsockbuf (line 53) | type Xsockbuf type Xinpcb (line 54) | type Xinpcb FILE: process/process.go type Process (line 28) | type Process struct method String (line 155) | func (p Process) String() string { method Background (line 238) | func (p *Process) Background() (bool, error) { method BackgroundWithContext (line 242) | func (p *Process) BackgroundWithContext(ctx context.Context) (bool, er... method Percent (line 252) | func (p *Process) Percent(interval time.Duration) (float64, error) { method PercentWithContext (line 256) | func (p *Process) PercentWithContext(ctx context.Context, interval tim... method IsRunning (line 290) | func (p *Process) IsRunning() (bool, error) { method IsRunningWithContext (line 294) | func (p *Process) IsRunningWithContext(ctx context.Context) (bool, err... method CreateTime (line 311) | func (p *Process) CreateTime() (int64, error) { method CreateTimeWithContext (line 315) | func (p *Process) CreateTimeWithContext(ctx context.Context) (int64, e... method MemoryPercent (line 338) | func (p *Process) MemoryPercent() (float32, error) { method MemoryPercentWithContext (line 342) | func (p *Process) MemoryPercentWithContext(ctx context.Context) (float... method CPUPercent (line 359) | func (p *Process) CPUPercent() (float64, error) { method CPUPercentWithContext (line 363) | func (p *Process) CPUPercentWithContext(ctx context.Context) (float64,... method Groups (line 384) | func (p *Process) Groups() ([]uint32, error) { method Ppid (line 389) | func (p *Process) Ppid() (int32, error) { method Name (line 394) | func (p *Process) Name() (string, error) { method Exe (line 399) | func (p *Process) Exe() (string, error) { method Cmdline (line 405) | func (p *Process) Cmdline() (string, error) { method CmdlineSlice (line 416) | func (p *Process) CmdlineSlice() ([]string, error) { method Cwd (line 421) | func (p *Process) Cwd() (string, error) { method Parent (line 426) | func (p *Process) Parent() (*Process, error) { method ParentWithContext (line 431) | func (p *Process) ParentWithContext(ctx context.Context) (*Process, er... method Status (line 444) | func (p *Process) Status() ([]string, error) { method Foreground (line 449) | func (p *Process) Foreground() (bool, error) { method Uids (line 454) | func (p *Process) Uids() ([]uint32, error) { method Gids (line 459) | func (p *Process) Gids() ([]uint32, error) { method Terminal (line 464) | func (p *Process) Terminal() (string, error) { method Nice (line 469) | func (p *Process) Nice() (int32, error) { method IOnice (line 474) | func (p *Process) IOnice() (int32, error) { method Rlimit (line 479) | func (p *Process) Rlimit() ([]RlimitStat, error) { method RlimitUsage (line 486) | func (p *Process) RlimitUsage(gatherUsed bool) ([]RlimitStat, error) { method IOCounters (line 491) | func (p *Process) IOCounters() (*IOCountersStat, error) { method NumCtxSwitches (line 496) | func (p *Process) NumCtxSwitches() (*NumCtxSwitchesStat, error) { method NumFDs (line 501) | func (p *Process) NumFDs() (int32, error) { method NumThreads (line 506) | func (p *Process) NumThreads() (int32, error) { method Threads (line 510) | func (p *Process) Threads() (map[int32]*cpu.TimesStat, error) { method Times (line 515) | func (p *Process) Times() (*cpu.TimesStat, error) { method CPUAffinity (line 520) | func (p *Process) CPUAffinity() ([]int32, error) { method MemoryInfo (line 526) | func (p *Process) MemoryInfo() (*MemoryInfoStat, error) { method MemoryInfoEx (line 531) | func (p *Process) MemoryInfoEx() (*MemoryInfoExStat, error) { method PageFaults (line 536) | func (p *Process) PageFaults() (*PageFaultsStat, error) { method Children (line 542) | func (p *Process) Children() ([]*Process, error) { method OpenFiles (line 548) | func (p *Process) OpenFiles() ([]OpenFilesStat, error) { method Connections (line 554) | func (p *Process) Connections() ([]net.ConnectionStat, error) { method ConnectionsMax (line 559) | func (p *Process) ConnectionsMax(maxConn int) ([]net.ConnectionStat, e... method MemoryMaps (line 564) | func (p *Process) MemoryMaps(grouped bool) (*[]MemoryMapsStat, error) { method Tgid (line 569) | func (p *Process) Tgid() (int32, error) { method SendSignal (line 574) | func (p *Process) SendSignal(sig Signal) error { method Suspend (line 579) | func (p *Process) Suspend() error { method Resume (line 584) | func (p *Process) Resume() error { method Terminate (line 589) | func (p *Process) Terminate() error { method Kill (line 594) | func (p *Process) Kill() error { method Username (line 599) | func (p *Process) Username() (string, error) { method Environ (line 604) | func (p *Process) Environ() ([]string, error) { constant Running (line 52) | Running = "running" constant Blocked (line 54) | Blocked = "blocked" constant Idle (line 56) | Idle = "idle" constant Lock (line 58) | Lock = "lock" constant Sleep (line 60) | Sleep = "sleep" constant Stop (line 62) | Stop = "stop" constant Wait (line 64) | Wait = "wait" constant Zombie (line 66) | Zombie = "zombie" constant Daemon (line 69) | Daemon = "daemon" constant Detached (line 70) | Detached = "detached" constant System (line 71) | System = "system" constant Orphan (line 72) | Orphan = "orphan" constant UnknownState (line 74) | UnknownState = "" type OpenFilesStat (line 77) | type OpenFilesStat struct method String (line 160) | func (o OpenFilesStat) String() string { type MemoryInfoStat (line 82) | type MemoryInfoStat struct method String (line 165) | func (m MemoryInfoStat) String() string { type SignalInfoStat (line 92) | type SignalInfoStat struct type RlimitStat (line 100) | type RlimitStat struct method String (line 170) | func (r RlimitStat) String() string { type IOCountersStat (line 107) | type IOCountersStat struct method String (line 175) | func (i IOCountersStat) String() string { type NumCtxSwitchesStat (line 122) | type NumCtxSwitchesStat struct method String (line 180) | func (p NumCtxSwitchesStat) String() string { type PageFaultsStat (line 127) | type PageFaultsStat struct constant RLIMIT_CPU (line 137) | RLIMIT_CPU int32 = 0 constant RLIMIT_FSIZE (line 138) | RLIMIT_FSIZE int32 = 1 constant RLIMIT_DATA (line 139) | RLIMIT_DATA int32 = 2 constant RLIMIT_STACK (line 140) | RLIMIT_STACK int32 = 3 constant RLIMIT_CORE (line 141) | RLIMIT_CORE int32 = 4 constant RLIMIT_RSS (line 142) | RLIMIT_RSS int32 = 5 constant RLIMIT_NPROC (line 143) | RLIMIT_NPROC int32 = 6 constant RLIMIT_NOFILE (line 144) | RLIMIT_NOFILE int32 = 7 constant RLIMIT_MEMLOCK (line 145) | RLIMIT_MEMLOCK int32 = 8 constant RLIMIT_AS (line 146) | RLIMIT_AS int32 = 9 constant RLIMIT_LOCKS (line 147) | RLIMIT_LOCKS int32 = 10 constant RLIMIT_SIGPENDING (line 148) | RLIMIT_SIGPENDING int32 = 11 constant RLIMIT_MSGQUEUE (line 149) | RLIMIT_MSGQUEUE int32 = 12 constant RLIMIT_NICE (line 150) | RLIMIT_NICE int32 = 13 constant RLIMIT_RTPRIO (line 151) | RLIMIT_RTPRIO int32 = 14 constant RLIMIT_RTTIME (line 152) | RLIMIT_RTTIME int32 = 15 function EnableBootTimeCache (line 188) | func EnableBootTimeCache(enable bool) { function Pids (line 193) | func Pids() ([]int32, error) { function PidsWithContext (line 197) | func PidsWithContext(ctx context.Context) ([]int32, error) { function Processes (line 205) | func Processes() ([]*Process, error) { function NewProcess (line 213) | func NewProcess(pid int32) (*Process, error) { function NewProcessWithContext (line 217) | func NewProcessWithContext(ctx context.Context, pid int32) (*Process, er... function PidExists (line 233) | func PidExists(pid int32) (bool, error) { function calculatePercent (line 324) | func calculatePercent(t1, t2 *cpu.TimesStat, delta float64, numcpu int) ... function convertStatusChar (line 609) | func convertStatusChar(letter string) string { FILE: process/process_bsd.go type MemoryInfoExStat (line 15) | type MemoryInfoExStat struct type MemoryMapsStat (line 17) | type MemoryMapsStat struct method TgidWithContext (line 19) | func (*Process) TgidWithContext(_ context.Context) (int32, error) { method IOniceWithContext (line 23) | func (*Process) IOniceWithContext(_ context.Context) (int32, error) { method RlimitWithContext (line 27) | func (*Process) RlimitWithContext(_ context.Context) ([]RlimitStat, erro... method RlimitUsageWithContext (line 31) | func (*Process) RlimitUsageWithContext(_ context.Context, _ bool) ([]Rli... method NumCtxSwitchesWithContext (line 35) | func (*Process) NumCtxSwitchesWithContext(_ context.Context) (*NumCtxSwi... method CPUAffinityWithContext (line 39) | func (*Process) CPUAffinityWithContext(_ context.Context) ([]int32, erro... method MemoryInfoExWithContext (line 43) | func (*Process) MemoryInfoExWithContext(_ context.Context) (*MemoryInfoE... method PageFaultsWithContext (line 47) | func (*Process) PageFaultsWithContext(_ context.Context) (*PageFaultsSta... method OpenFilesWithContext (line 51) | func (*Process) OpenFilesWithContext(_ context.Context) ([]OpenFilesStat... method MemoryMapsWithContext (line 55) | func (*Process) MemoryMapsWithContext(_ context.Context, _ bool) (*[]Mem... method ThreadsWithContext (line 59) | func (*Process) ThreadsWithContext(_ context.Context) (map[int32]*cpu.Ti... method EnvironWithContext (line 63) | func (*Process) EnvironWithContext(_ context.Context) ([]string, error) { function parseKinfoProc (line 67) | func parseKinfoProc(buf []byte) (KinfoProc, error) { FILE: process/process_darwin.go constant CTLKern (line 28) | CTLKern = 1 constant KernProc (line 29) | KernProc = 14 constant KernProcPID (line 30) | KernProcPID = 1 constant KernProcProc (line 31) | KernProcProc = 8 constant KernProcAll (line 32) | KernProcAll = 0 constant KernProcPathname (line 33) | KernProcPathname = 12 type _Ctype_struct___0 (line 36) | type _Ctype_struct___0 struct function pidsWithContext (line 40) | func pidsWithContext(_ context.Context) ([]int32, error) { method PpidWithContext (line 56) | func (p *Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 65) | func (p *Process) NameWithContext(ctx context.Context) (string, error) { method createTimeWithContext (line 89) | func (p *Process) createTimeWithContext(_ context.Context) (int64, error) { method StatusWithContext (line 98) | func (p *Process) StatusWithContext(ctx context.Context) ([]string, erro... method ForegroundWithContext (line 107) | func (p *Process) ForegroundWithContext(ctx context.Context) (bool, erro... method UidsWithContext (line 117) | func (p *Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 129) | func (p *Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 141) | func (*Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 156) | func (*Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 174) | func (p *Process) NiceWithContext(_ context.Context) (int32, error) { method IOCountersWithContext (line 182) | func (*Process) IOCountersWithContext(_ context.Context) (*IOCountersSta... method ChildrenWithContext (line 186) | func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, ... method ConnectionsWithContext (line 205) | func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.Con... method ConnectionsMaxWithContext (line 209) | func (p *Process) ConnectionsMaxWithContext(ctx context.Context, maxConn... function ProcessesWithContext (line 213) | func ProcessesWithContext(ctx context.Context) ([]*Process, error) { method getKProc (line 234) | func (p *Process) getKProc() (*unix.KinfoProc, error) { function callPsWithContext (line 242) | func callPsWithContext(ctx context.Context, arg string, pid int32, threa... type dlFuncs (line 282) | type dlFuncs struct method getTimeScaleToNanoSeconds (line 294) | func (f *dlFuncs) getTimeScaleToNanoSeconds() float64 { method Close (line 302) | func (f *dlFuncs) Close() { function loadProcFuncs (line 286) | func loadProcFuncs() (*dlFuncs, error) { method ExeWithContext (line 306) | func (p *Process) ExeWithContext(_ context.Context) (string, error) { method CwdWithContext (line 328) | func (p *Process) CwdWithContext(_ context.Context) (string, error) { function procArgs (line 358) | func procArgs(pid int32) ([]byte, int, error) { method CmdlineSliceWithContext (line 369) | func (p *Process) CmdlineSliceWithContext(_ context.Context) ([]string, ... method cmdlineSlice (line 373) | func (p *Process) cmdlineSlice() ([]string, error) { method cmdNameWithContext (line 404) | func (p *Process) cmdNameWithContext(_ context.Context) (string, error) { method CmdlineWithContext (line 417) | func (p *Process) CmdlineWithContext(ctx context.Context) (string, error) { method NumThreadsWithContext (line 425) | func (p *Process) NumThreadsWithContext(_ context.Context) (int32, error) { method TimesWithContext (line 438) | func (p *Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, e... method MemoryInfoWithContext (line 457) | func (p *Process) MemoryInfoWithContext(_ context.Context) (*MemoryInfoS... type procFDInfo (line 475) | type procFDInfo struct method NumFDsWithContext (line 484) | func (p *Process) NumFDsWithContext(_ context.Context) (int32, error) { FILE: process/process_darwin_amd64.go constant sizeofPtr (line 8) | sizeofPtr = 0x8 constant sizeofShort (line 9) | sizeofShort = 0x2 constant sizeofInt (line 10) | sizeofInt = 0x4 constant sizeofLong (line 11) | sizeofLong = 0x8 constant sizeofLongLong (line 12) | sizeofLongLong = 0x8 type _C_short (line 16) | type _C_short type _C_int (line 17) | type _C_int type _C_long (line 18) | type _C_long type _C_long_long (line 19) | type _C_long_long type Timespec (line 22) | type Timespec struct type Timeval (line 27) | type Timeval struct type Rusage (line 33) | type Rusage struct type Rlimit (line 52) | type Rlimit struct type UGid_t (line 57) | type UGid_t type KinfoProc (line 59) | type KinfoProc struct type Eproc (line 64) | type Eproc struct type Proc (line 91) | type Proc struct type Session (line 93) | type Session struct type ucred (line 95) | type ucred struct type Uucred (line 103) | type Uucred struct type Upcred (line 111) | type Upcred struct type Vmspace (line 122) | type Vmspace struct type Sigacts (line 131) | type Sigacts struct type ExternProc (line 133) | type ExternProc struct type Itimerval (line 184) | type Itimerval struct type Vnode (line 189) | type Vnode struct type Pgrp (line 191) | type Pgrp struct type UserStruct (line 193) | type UserStruct struct type Au_session (line 195) | type Au_session struct type Posix_cred (line 200) | type Posix_cred struct type Label (line 213) | type Label struct type ProcTaskInfo (line 215) | type ProcTaskInfo struct type vinfoStat (line 236) | type vinfoStat struct type fsid (line 260) | type fsid struct type vnodeInfo (line 264) | type vnodeInfo struct type vnodeInfoPath (line 271) | type vnodeInfoPath struct type vnodePathInfo (line 276) | type vnodePathInfo struct type AuditinfoAddr (line 281) | type AuditinfoAddr struct type AuMask (line 289) | type AuMask struct type AuTidAddr (line 294) | type AuTidAddr struct type UcredQueue (line 300) | type UcredQueue struct FILE: process/process_darwin_arm64.go constant sizeofPtr (line 10) | sizeofPtr = 0x8 constant sizeofShort (line 11) | sizeofShort = 0x2 constant sizeofInt (line 12) | sizeofInt = 0x4 constant sizeofLong (line 13) | sizeofLong = 0x8 constant sizeofLongLong (line 14) | sizeofLongLong = 0x8 type _C_short (line 18) | type _C_short type _C_int (line 19) | type _C_int type _C_long (line 20) | type _C_long type _C_long_long (line 21) | type _C_long_long type Timespec (line 24) | type Timespec struct type Timeval (line 29) | type Timeval struct type Rusage (line 35) | type Rusage struct type Rlimit (line 54) | type Rlimit struct type UGid_t (line 59) | type UGid_t type KinfoProc (line 61) | type KinfoProc struct type Eproc (line 66) | type Eproc struct type Proc (line 89) | type Proc struct type Session (line 91) | type Session struct type ucred (line 93) | type ucred struct type Uucred (line 95) | type Uucred struct type Upcred (line 102) | type Upcred struct type Vmspace (line 113) | type Vmspace struct type Sigacts (line 120) | type Sigacts struct type ExternProc (line 122) | type ExternProc struct type Itimerval (line 173) | type Itimerval struct type Vnode (line 178) | type Vnode struct type Pgrp (line 180) | type Pgrp struct type UserStruct (line 182) | type UserStruct struct type Au_session (line 184) | type Au_session struct type Posix_cred (line 189) | type Posix_cred struct type Label (line 191) | type Label struct type ProcTaskInfo (line 193) | type ProcTaskInfo struct type vinfoStat (line 214) | type vinfoStat struct type fsid (line 238) | type fsid struct type vnodeInfo (line 242) | type vnodeInfo struct type vnodeInfoPath (line 249) | type vnodeInfoPath struct type vnodePathInfo (line 254) | type vnodePathInfo struct type AuditinfoAddr (line 259) | type AuditinfoAddr struct type AuMask (line 266) | type AuMask struct type AuTidAddr (line 270) | type AuTidAddr struct type UcredQueue (line 276) | type UcredQueue struct FILE: process/process_darwin_test.go function TestNumFDs (line 15) | func TestNumFDs(t *testing.T) { function TestNumFDs_NonExistent (line 40) | func TestNumFDs_NonExistent(t *testing.T) { function BenchmarkNumFDs (line 46) | func BenchmarkNumFDs(b *testing.B) { FILE: process/process_fallback.go type MemoryMapsStat (line 17) | type MemoryMapsStat struct type MemoryInfoExStat (line 31) | type MemoryInfoExStat struct function pidsWithContext (line 33) | func pidsWithContext(_ context.Context) ([]int32, error) { function ProcessesWithContext (line 37) | func ProcessesWithContext(_ context.Context) ([]*Process, error) { function PidExistsWithContext (line 41) | func PidExistsWithContext(_ context.Context, _ int32) (bool, error) { method PpidWithContext (line 45) | func (*Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 49) | func (*Process) NameWithContext(_ context.Context) (string, error) { method TgidWithContext (line 53) | func (*Process) TgidWithContext(_ context.Context) (int32, error) { method ExeWithContext (line 57) | func (*Process) ExeWithContext(_ context.Context) (string, error) { method CmdlineWithContext (line 61) | func (*Process) CmdlineWithContext(_ context.Context) (string, error) { method CmdlineSliceWithContext (line 65) | func (*Process) CmdlineSliceWithContext(_ context.Context) ([]string, er... method createTimeWithContext (line 69) | func (*Process) createTimeWithContext(_ context.Context) (int64, error) { method CwdWithContext (line 73) | func (*Process) CwdWithContext(_ context.Context) (string, error) { method StatusWithContext (line 77) | func (*Process) StatusWithContext(_ context.Context) ([]string, error) { method ForegroundWithContext (line 81) | func (*Process) ForegroundWithContext(_ context.Context) (bool, error) { method UidsWithContext (line 85) | func (*Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 89) | func (*Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 93) | func (*Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 97) | func (*Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 101) | func (*Process) NiceWithContext(_ context.Context) (int32, error) { method IOniceWithContext (line 105) | func (*Process) IOniceWithContext(_ context.Context) (int32, error) { method RlimitWithContext (line 109) | func (*Process) RlimitWithContext(_ context.Context) ([]RlimitStat, erro... method RlimitUsageWithContext (line 113) | func (*Process) RlimitUsageWithContext(_ context.Context, _ bool) ([]Rli... method IOCountersWithContext (line 117) | func (*Process) IOCountersWithContext(_ context.Context) (*IOCountersSta... method NumCtxSwitchesWithContext (line 121) | func (*Process) NumCtxSwitchesWithContext(_ context.Context) (*NumCtxSwi... method NumFDsWithContext (line 125) | func (*Process) NumFDsWithContext(_ context.Context) (int32, error) { method NumThreadsWithContext (line 129) | func (*Process) NumThreadsWithContext(_ context.Context) (int32, error) { method ThreadsWithContext (line 133) | func (*Process) ThreadsWithContext(_ context.Context) (map[int32]*cpu.Ti... method TimesWithContext (line 137) | func (*Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, err... method CPUAffinityWithContext (line 141) | func (*Process) CPUAffinityWithContext(_ context.Context) ([]int32, erro... method MemoryInfoWithContext (line 145) | func (*Process) MemoryInfoWithContext(_ context.Context) (*MemoryInfoSta... method MemoryInfoExWithContext (line 149) | func (*Process) MemoryInfoExWithContext(_ context.Context) (*MemoryInfoE... method PageFaultsWithContext (line 153) | func (*Process) PageFaultsWithContext(_ context.Context) (*PageFaultsSta... method ChildrenWithContext (line 157) | func (*Process) ChildrenWithContext(_ context.Context) ([]*Process, erro... method OpenFilesWithContext (line 161) | func (*Process) OpenFilesWithContext(_ context.Context) ([]OpenFilesStat... method ConnectionsWithContext (line 165) | func (*Process) ConnectionsWithContext(_ context.Context) ([]net.Connect... method ConnectionsMaxWithContext (line 169) | func (*Process) ConnectionsMaxWithContext(_ context.Context, _ int) ([]n... method MemoryMapsWithContext (line 173) | func (*Process) MemoryMapsWithContext(_ context.Context, _ bool) (*[]Mem... method SendSignalWithContext (line 177) | func (*Process) SendSignalWithContext(_ context.Context, _ Signal) error { method SuspendWithContext (line 181) | func (*Process) SuspendWithContext(_ context.Context) error { method ResumeWithContext (line 185) | func (*Process) ResumeWithContext(_ context.Context) error { method TerminateWithContext (line 189) | func (*Process) TerminateWithContext(_ context.Context) error { method KillWithContext (line 193) | func (*Process) KillWithContext(_ context.Context) error { method UsernameWithContext (line 197) | func (*Process) UsernameWithContext(_ context.Context) (string, error) { method EnvironWithContext (line 201) | func (*Process) EnvironWithContext(_ context.Context) ([]string, error) { FILE: process/process_freebsd.go function pidsWithContext (line 23) | func pidsWithContext(ctx context.Context) ([]int32, error) { method PpidWithContext (line 37) | func (p *Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 46) | func (p *Process) NameWithContext(ctx context.Context) (string, error) { method CwdWithContext (line 69) | func (p *Process) CwdWithContext(_ context.Context) (string, error) { method ExeWithContext (line 90) | func (p *Process) ExeWithContext(_ context.Context) (string, error) { method CmdlineWithContext (line 100) | func (p *Process) CmdlineWithContext(_ context.Context) (string, error) { method CmdlineSliceWithContext (line 113) | func (p *Process) CmdlineSliceWithContext(_ context.Context) ([]string, ... method createTimeWithContext (line 134) | func (p *Process) createTimeWithContext(_ context.Context) (int64, error) { method StatusWithContext (line 142) | func (p *Process) StatusWithContext(_ context.Context) ([]string, error) { method ForegroundWithContext (line 168) | func (p *Process) ForegroundWithContext(ctx context.Context) (bool, erro... method UidsWithContext (line 178) | func (p *Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 191) | func (p *Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 203) | func (p *Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 217) | func (p *Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 233) | func (p *Process) NiceWithContext(_ context.Context) (int32, error) { method IOCountersWithContext (line 241) | func (p *Process) IOCountersWithContext(_ context.Context) (*IOCountersS... method NumThreadsWithContext (line 252) | func (p *Process) NumThreadsWithContext(_ context.Context) (int32, error) { method TimesWithContext (line 261) | func (p *Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, e... method MemoryInfoWithContext (line 273) | func (p *Process) MemoryInfoWithContext(_ context.Context) (*MemoryInfoS... method ChildrenWithContext (line 290) | func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, ... method ConnectionsWithContext (line 309) | func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.Con... method ConnectionsMaxWithContext (line 313) | func (p *Process) ConnectionsMaxWithContext(ctx context.Context, maxConn... function ProcessesWithContext (line 317) | func ProcessesWithContext(ctx context.Context) ([]*Process, error) { method NumFDsWithContext (line 347) | func (*Process) NumFDsWithContext(_ context.Context) (int32, error) { method getKProc (line 351) | func (p *Process) getKProc() (*KinfoProc, error) { FILE: process/process_freebsd_386.go constant CTLKern (line 8) | CTLKern = 1 constant KernProc (line 9) | KernProc = 14 constant KernProcPID (line 10) | KernProcPID = 1 constant KernProcProc (line 11) | KernProcProc = 8 constant KernProcPathname (line 12) | KernProcPathname = 12 constant KernProcArgs (line 13) | KernProcArgs = 7 constant KernProcCwd (line 14) | KernProcCwd = 42 constant sizeofPtr (line 18) | sizeofPtr = 0x4 constant sizeofShort (line 19) | sizeofShort = 0x2 constant sizeofInt (line 20) | sizeofInt = 0x4 constant sizeofLong (line 21) | sizeofLong = 0x4 constant sizeofLongLong (line 22) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 26) | sizeOfKinfoVmentry = 0x488 constant sizeOfKinfoProc (line 27) | sizeOfKinfoProc = 0x300 constant sizeOfKinfoFile (line 28) | sizeOfKinfoFile = 0x570 constant SIDL (line 32) | SIDL = 1 constant SRUN (line 33) | SRUN = 2 constant SSLEEP (line 34) | SSLEEP = 3 constant SSTOP (line 35) | SSTOP = 4 constant SZOMB (line 36) | SZOMB = 5 constant SWAIT (line 37) | SWAIT = 6 constant SLOCK (line 38) | SLOCK = 7 type _C_short (line 42) | type _C_short type _C_int (line 43) | type _C_int type _C_long (line 44) | type _C_long type _C_long_long (line 45) | type _C_long_long type Timespec (line 48) | type Timespec struct type Timeval (line 53) | type Timeval struct type Rusage (line 58) | type Rusage struct type Rlimit (line 77) | type Rlimit struct type KinfoProc (line 82) | type KinfoProc struct type Priority (line 167) | type Priority struct type KinfoVmentry (line 174) | type KinfoVmentry struct type kinfoFile (line 198) | type kinfoFile struct type capRights (line 216) | type capRights struct FILE: process/process_freebsd_amd64.go constant CTLKern (line 8) | CTLKern = 1 constant KernProc (line 9) | KernProc = 14 constant KernProcPID (line 10) | KernProcPID = 1 constant KernProcProc (line 11) | KernProcProc = 8 constant KernProcPathname (line 12) | KernProcPathname = 12 constant KernProcArgs (line 13) | KernProcArgs = 7 constant KernProcCwd (line 14) | KernProcCwd = 42 constant sizeofPtr (line 18) | sizeofPtr = 0x8 constant sizeofShort (line 19) | sizeofShort = 0x2 constant sizeofInt (line 20) | sizeofInt = 0x4 constant sizeofLong (line 21) | sizeofLong = 0x8 constant sizeofLongLong (line 22) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 26) | sizeOfKinfoVmentry = 0x488 constant sizeOfKinfoProc (line 27) | sizeOfKinfoProc = 0x440 constant sizeOfKinfoFile (line 28) | sizeOfKinfoFile = 0x570 constant SIDL (line 32) | SIDL = 1 constant SRUN (line 33) | SRUN = 2 constant SSLEEP (line 34) | SSLEEP = 3 constant SSTOP (line 35) | SSTOP = 4 constant SZOMB (line 36) | SZOMB = 5 constant SWAIT (line 37) | SWAIT = 6 constant SLOCK (line 38) | SLOCK = 7 type _C_short (line 42) | type _C_short type _C_int (line 43) | type _C_int type _C_long (line 44) | type _C_long type _C_long_long (line 45) | type _C_long_long type Timespec (line 48) | type Timespec struct type Timeval (line 53) | type Timeval struct type Rusage (line 58) | type Rusage struct type Rlimit (line 77) | type Rlimit struct type KinfoProc (line 82) | type KinfoProc struct type Priority (line 173) | type Priority struct type KinfoVmentry (line 180) | type KinfoVmentry struct type kinfoFile (line 205) | type kinfoFile struct type capRights (line 222) | type capRights struct FILE: process/process_freebsd_arm.go constant CTLKern (line 8) | CTLKern = 1 constant KernProc (line 9) | KernProc = 14 constant KernProcPID (line 10) | KernProcPID = 1 constant KernProcProc (line 11) | KernProcProc = 8 constant KernProcPathname (line 12) | KernProcPathname = 12 constant KernProcArgs (line 13) | KernProcArgs = 7 constant KernProcCwd (line 14) | KernProcCwd = 42 constant sizeofPtr (line 18) | sizeofPtr = 0x4 constant sizeofShort (line 19) | sizeofShort = 0x2 constant sizeofInt (line 20) | sizeofInt = 0x4 constant sizeofLong (line 21) | sizeofLong = 0x4 constant sizeofLongLong (line 22) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 26) | sizeOfKinfoVmentry = 0x488 constant sizeOfKinfoProc (line 27) | sizeOfKinfoProc = 0x440 constant sizeOfKinfoFile (line 28) | sizeOfKinfoFile = 0x570 constant SIDL (line 32) | SIDL = 1 constant SRUN (line 33) | SRUN = 2 constant SSLEEP (line 34) | SSLEEP = 3 constant SSTOP (line 35) | SSTOP = 4 constant SZOMB (line 36) | SZOMB = 5 constant SWAIT (line 37) | SWAIT = 6 constant SLOCK (line 38) | SLOCK = 7 type _C_short (line 42) | type _C_short type _C_int (line 43) | type _C_int type _C_long (line 44) | type _C_long type _C_long_long (line 45) | type _C_long_long type Timespec (line 48) | type Timespec struct type Timeval (line 53) | type Timeval struct type Rusage (line 58) | type Rusage struct type Rlimit (line 77) | type Rlimit struct type KinfoProc (line 82) | type KinfoProc struct type Priority (line 167) | type Priority struct type KinfoVmentry (line 174) | type KinfoVmentry struct type kinfoFile (line 198) | type kinfoFile struct type capRights (line 216) | type capRights struct FILE: process/process_freebsd_arm64.go constant CTLKern (line 10) | CTLKern = 1 constant KernProc (line 11) | KernProc = 14 constant KernProcPID (line 12) | KernProcPID = 1 constant KernProcProc (line 13) | KernProcProc = 8 constant KernProcPathname (line 14) | KernProcPathname = 12 constant KernProcArgs (line 15) | KernProcArgs = 7 constant KernProcCwd (line 16) | KernProcCwd = 42 constant sizeofPtr (line 20) | sizeofPtr = 0x8 constant sizeofShort (line 21) | sizeofShort = 0x2 constant sizeofInt (line 22) | sizeofInt = 0x4 constant sizeofLong (line 23) | sizeofLong = 0x8 constant sizeofLongLong (line 24) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 28) | sizeOfKinfoVmentry = 0x488 constant sizeOfKinfoProc (line 29) | sizeOfKinfoProc = 0x440 constant sizeOfKinfoFile (line 30) | sizeOfKinfoFile = 0x570 constant SIDL (line 34) | SIDL = 1 constant SRUN (line 35) | SRUN = 2 constant SSLEEP (line 36) | SSLEEP = 3 constant SSTOP (line 37) | SSTOP = 4 constant SZOMB (line 38) | SZOMB = 5 constant SWAIT (line 39) | SWAIT = 6 constant SLOCK (line 40) | SLOCK = 7 type _C_short (line 44) | type _C_short type _C_int (line 45) | type _C_int type _C_long (line 46) | type _C_long type _C_long_long (line 47) | type _C_long_long type Timespec (line 50) | type Timespec struct type Timeval (line 55) | type Timeval struct type Rusage (line 60) | type Rusage struct type Rlimit (line 79) | type Rlimit struct type KinfoProc (line 84) | type KinfoProc struct type Priority (line 175) | type Priority struct type KinfoVmentry (line 182) | type KinfoVmentry struct type kinfoFile (line 207) | type kinfoFile struct type capRights (line 224) | type capRights struct FILE: process/process_linux.go constant prioProcess (line 29) | prioProcess = 0 function init (line 33) | func init() { type MemoryInfoExStat (line 42) | type MemoryInfoExStat struct method String (line 52) | func (m MemoryInfoExStat) String() string { type MemoryMapsStat (line 57) | type MemoryMapsStat struct method String (line 72) | func (m MemoryMapsStat) String() string { method PpidWithContext (line 77) | func (p *Process) PpidWithContext(ctx context.Context) (int32, error) { method NameWithContext (line 85) | func (p *Process) NameWithContext(ctx context.Context) (string, error) { method TgidWithContext (line 94) | func (p *Process) TgidWithContext(ctx context.Context) (int32, error) { method ExeWithContext (line 103) | func (p *Process) ExeWithContext(ctx context.Context) (string, error) { method CmdlineWithContext (line 107) | func (p *Process) CmdlineWithContext(ctx context.Context) (string, error) { method CmdlineSliceWithContext (line 111) | func (p *Process) CmdlineSliceWithContext(ctx context.Context) ([]string... method createTimeWithContext (line 115) | func (p *Process) createTimeWithContext(ctx context.Context) (int64, err... method CwdWithContext (line 123) | func (p *Process) CwdWithContext(ctx context.Context) (string, error) { method StatusWithContext (line 127) | func (p *Process) StatusWithContext(ctx context.Context) ([]string, erro... method ForegroundWithContext (line 135) | func (p *Process) ForegroundWithContext(ctx context.Context) (bool, erro... method UidsWithContext (line 152) | func (p *Process) UidsWithContext(ctx context.Context) ([]uint32, error) { method GidsWithContext (line 160) | func (p *Process) GidsWithContext(ctx context.Context) ([]uint32, error) { method GroupsWithContext (line 168) | func (p *Process) GroupsWithContext(ctx context.Context) ([]uint32, erro... method TerminalWithContext (line 176) | func (p *Process) TerminalWithContext(ctx context.Context) (string, erro... method NiceWithContext (line 189) | func (p *Process) NiceWithContext(ctx context.Context) (int32, error) { method IOniceWithContext (line 197) | func (*Process) IOniceWithContext(_ context.Context) (int32, error) { method RlimitWithContext (line 201) | func (p *Process) RlimitWithContext(ctx context.Context) ([]RlimitStat, ... method RlimitUsageWithContext (line 205) | func (p *Process) RlimitUsageWithContext(ctx context.Context, gatherUsed... method IOCountersWithContext (line 260) | func (p *Process) IOCountersWithContext(ctx context.Context) (*IOCounter... method NumCtxSwitchesWithContext (line 264) | func (p *Process) NumCtxSwitchesWithContext(ctx context.Context) (*NumCt... method NumFDsWithContext (line 272) | func (p *Process) NumFDsWithContext(ctx context.Context) (int32, error) { method NumThreadsWithContext (line 277) | func (p *Process) NumThreadsWithContext(ctx context.Context) (int32, err... method ThreadsWithContext (line 285) | func (p *Process) ThreadsWithContext(ctx context.Context) (map[int32]*cp... method TimesWithContext (line 305) | func (p *Process) TimesWithContext(ctx context.Context) (*cpu.TimesStat,... method CPUAffinityWithContext (line 313) | func (*Process) CPUAffinityWithContext(_ context.Context) ([]int32, erro... method MemoryInfoWithContext (line 317) | func (p *Process) MemoryInfoWithContext(ctx context.Context) (*MemoryInf... method MemoryInfoExWithContext (line 325) | func (p *Process) MemoryInfoExWithContext(ctx context.Context) (*MemoryI... method PageFaultsWithContext (line 333) | func (p *Process) PageFaultsWithContext(ctx context.Context) (*PageFault... method ChildrenWithContext (line 341) | func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, ... method OpenFilesWithContext (line 373) | func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFiles... method ConnectionsWithContext (line 378) | func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.Con... method ConnectionsMaxWithContext (line 382) | func (p *Process) ConnectionsMaxWithContext(ctx context.Context, maxConn... method MemoryMapsWithContext (line 386) | func (p *Process) MemoryMapsWithContext(ctx context.Context, grouped boo... method EnvironWithContext (line 491) | func (p *Process) EnvironWithContext(ctx context.Context) ([]string, err... function limitToUint (line 506) | func limitToUint(val string) (uint64, error) { method fillFromLimitsWithContext (line 518) | func (p *Process) fillFromLimitsWithContext(ctx context.Context) ([]Rlim... method fillFromfdListWithContext (line 611) | func (p *Process) fillFromfdListWithContext(ctx context.Context) (string... method fillFromfdWithContext (line 624) | func (p *Process) fillFromfdWithContext(ctx context.Context) (int32, []O... method fillFromCwdWithContext (line 653) | func (p *Process) fillFromCwdWithContext(ctx context.Context) (string, e... method fillFromExeWithContext (line 664) | func (p *Process) fillFromExeWithContext(ctx context.Context) (string, e... method fillFromCmdlineWithContext (line 675) | func (p *Process) fillFromCmdlineWithContext(ctx context.Context) (strin... method fillSliceFromCmdlineWithContext (line 689) | func (p *Process) fillSliceFromCmdlineWithContext(ctx context.Context) (... method fillFromIOWithContext (line 712) | func (p *Process) fillFromIOWithContext(ctx context.Context) (*IOCounter... method fillFromStatmWithContext (line 752) | func (p *Process) fillFromStatmWithContext(ctx context.Context) (*Memory... method fillNameWithContext (line 804) | func (p *Process) fillNameWithContext(ctx context.Context) error { method fillFromCommWithContext (line 813) | func (p *Process) fillFromCommWithContext(ctx context.Context) error { method fillFromStatus (line 826) | func (p *Process) fillFromStatus() error { method fillFromStatusWithContext (line 830) | func (p *Process) fillFromStatusWithContext(ctx context.Context) error { method fillFromTIDStat (line 1026) | func (p *Process) fillFromTIDStat(tid int32) (uint64, int32, *cpu.TimesS... method fillFromTIDStatWithContext (line 1030) | func (p *Process) fillFromTIDStatWithContext(ctx context.Context, tid in... method fillFromStatWithContext (line 1138) | func (p *Process) fillFromStatWithContext(ctx context.Context) (uint64, ... function pidsWithContext (line 1142) | func pidsWithContext(ctx context.Context) ([]int32, error) { function ProcessesWithContext (line 1146) | func ProcessesWithContext(ctx context.Context) ([]*Process, error) { function readPidsFromDir (line 1165) | func readPidsFromDir(path string) ([]int32, error) { function splitProcStat (line 1193) | func splitProcStat(content []byte) []string { FILE: process/process_linux_test.go function TestFillFromfdWithContext (line 18) | func TestFillFromfdWithContext(t *testing.T) { function TestSplitProcStat (line 73) | func TestSplitProcStat(t *testing.T) { function TestSplitProcStat_fromFile (line 115) | func TestSplitProcStat_fromFile(t *testing.T) { function TestFillFromCommWithContext (line 149) | func TestFillFromCommWithContext(t *testing.T) { function TestFillFromStatusWithContext (line 166) | func TestFillFromStatusWithContext(t *testing.T) { function Benchmark_fillFromCommWithContext (line 183) | func Benchmark_fillFromCommWithContext(b *testing.B) { function Benchmark_fillFromStatusWithContext (line 192) | func Benchmark_fillFromStatusWithContext(b *testing.B) { function TestFillFromTIDStatWithContext_lx_brandz (line 201) | func TestFillFromTIDStatWithContext_lx_brandz(t *testing.T) { function TestProcessMemoryMaps (line 220) | func TestProcessMemoryMaps(t *testing.T) { FILE: process/process_openbsd.go function pidsWithContext (line 26) | func pidsWithContext(ctx context.Context) ([]int32, error) { method PpidWithContext (line 40) | func (p *Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 49) | func (p *Process) NameWithContext(ctx context.Context) (string, error) { method CwdWithContext (line 72) | func (p *Process) CwdWithContext(_ context.Context) (string, error) { method ExeWithContext (line 81) | func (*Process) ExeWithContext(_ context.Context) (string, error) { method CmdlineSliceWithContext (line 85) | func (p *Process) CmdlineSliceWithContext(_ context.Context) ([]string, ... function readPtr (line 118) | func readPtr(r io.Reader) (uintptr, error) { method CmdlineWithContext (line 137) | func (p *Process) CmdlineWithContext(ctx context.Context) (string, error) { method createTimeWithContext (line 145) | func (*Process) createTimeWithContext(_ context.Context) (int64, error) { method StatusWithContext (line 149) | func (p *Process) StatusWithContext(_ context.Context) ([]string, error) { method ForegroundWithContext (line 171) | func (p *Process) ForegroundWithContext(ctx context.Context) (bool, erro... method UidsWithContext (line 181) | func (p *Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 194) | func (p *Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 206) | func (p *Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 220) | func (p *Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 236) | func (p *Process) NiceWithContext(_ context.Context) (int32, error) { method IOCountersWithContext (line 244) | func (p *Process) IOCountersWithContext(_ context.Context) (*IOCountersS... method NumThreadsWithContext (line 255) | func (*Process) NumThreadsWithContext(_ context.Context) (int32, error) { method TimesWithContext (line 260) | func (p *Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, e... method MemoryInfoWithContext (line 272) | func (p *Process) MemoryInfoWithContext(ctx context.Context) (*MemoryInf... method ChildrenWithContext (line 289) | func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, ... method ConnectionsWithContext (line 308) | func (*Process) ConnectionsWithContext(_ context.Context) ([]net.Connect... method ConnectionsMaxWithContext (line 312) | func (*Process) ConnectionsMaxWithContext(_ context.Context, _ int) ([]n... function ProcessesWithContext (line 316) | func ProcessesWithContext(ctx context.Context) ([]*Process, error) { method NumFDsWithContext (line 345) | func (*Process) NumFDsWithContext(_ context.Context) (int32, error) { method getKProc (line 349) | func (p *Process) getKProc() (*KinfoProc, error) { function callKernProcSyscall (line 365) | func callKernProcSyscall(op, arg int32) ([]byte, uint64, error) { FILE: process/process_openbsd_386.go constant CTLKern (line 10) | CTLKern = 1 constant KernProc (line 11) | KernProc = 66 constant KernProcAll (line 12) | KernProcAll = 0 constant KernProcPID (line 13) | KernProcPID = 1 constant KernProcProc (line 14) | KernProcProc = 8 constant KernProcPathname (line 15) | KernProcPathname = 12 constant KernProcArgs (line 16) | KernProcArgs = 55 constant KernProcCwd (line 17) | KernProcCwd = 78 constant KernProcArgv (line 18) | KernProcArgv = 1 constant KernProcEnv (line 19) | KernProcEnv = 3 constant ArgMax (line 23) | ArgMax = 256 * 1024 constant sizeofPtr (line 27) | sizeofPtr = 0x4 constant sizeofShort (line 28) | sizeofShort = 0x2 constant sizeofInt (line 29) | sizeofInt = 0x4 constant sizeofLong (line 30) | sizeofLong = 0x4 constant sizeofLongLong (line 31) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 35) | sizeOfKinfoVmentry = 0x38 constant sizeOfKinfoProc (line 36) | sizeOfKinfoProc = 0x264 constant SIDL (line 40) | SIDL = 1 constant SRUN (line 41) | SRUN = 2 constant SSLEEP (line 42) | SSLEEP = 3 constant SSTOP (line 43) | SSTOP = 4 constant SZOMB (line 44) | SZOMB = 5 constant SDEAD (line 45) | SDEAD = 6 constant SONPROC (line 46) | SONPROC = 7 type _C_short (line 50) | type _C_short type _C_int (line 51) | type _C_int type _C_long (line 52) | type _C_long type _C_long_long (line 53) | type _C_long_long type Timespec (line 56) | type Timespec struct type Timeval (line 61) | type Timeval struct type Rusage (line 66) | type Rusage struct type Rlimit (line 85) | type Rlimit struct type KinfoProc (line 90) | type KinfoProc struct type Priority (line 186) | type Priority struct type KinfoVmentry (line 188) | type KinfoVmentry struct FILE: process/process_openbsd_amd64.go constant CTLKern (line 8) | CTLKern = 1 constant KernProc (line 9) | KernProc = 66 constant KernProcAll (line 10) | KernProcAll = 0 constant KernProcPID (line 11) | KernProcPID = 1 constant KernProcProc (line 12) | KernProcProc = 8 constant KernProcPathname (line 13) | KernProcPathname = 12 constant KernProcArgs (line 14) | KernProcArgs = 55 constant KernProcCwd (line 15) | KernProcCwd = 78 constant KernProcArgv (line 16) | KernProcArgv = 1 constant KernProcEnv (line 17) | KernProcEnv = 3 constant ArgMax (line 21) | ArgMax = 256 * 1024 constant sizeofPtr (line 25) | sizeofPtr = 0x8 constant sizeofShort (line 26) | sizeofShort = 0x2 constant sizeofInt (line 27) | sizeofInt = 0x4 constant sizeofLong (line 28) | sizeofLong = 0x8 constant sizeofLongLong (line 29) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 33) | sizeOfKinfoVmentry = 0x50 constant sizeOfKinfoProc (line 34) | sizeOfKinfoProc = 0x268 constant SIDL (line 38) | SIDL = 1 constant SRUN (line 39) | SRUN = 2 constant SSLEEP (line 40) | SSLEEP = 3 constant SSTOP (line 41) | SSTOP = 4 constant SZOMB (line 42) | SZOMB = 5 constant SDEAD (line 43) | SDEAD = 6 constant SONPROC (line 44) | SONPROC = 7 type _C_short (line 48) | type _C_short type _C_int (line 49) | type _C_int type _C_long (line 50) | type _C_long type _C_long_long (line 51) | type _C_long_long type Timespec (line 54) | type Timespec struct type Timeval (line 59) | type Timeval struct type Rusage (line 64) | type Rusage struct type Rlimit (line 83) | type Rlimit struct type KinfoProc (line 88) | type KinfoProc struct type Priority (line 185) | type Priority struct type KinfoVmentry (line 187) | type KinfoVmentry struct FILE: process/process_openbsd_arm.go constant CTLKern (line 10) | CTLKern = 1 constant KernProc (line 11) | KernProc = 66 constant KernProcAll (line 12) | KernProcAll = 0 constant KernProcPID (line 13) | KernProcPID = 1 constant KernProcProc (line 14) | KernProcProc = 8 constant KernProcPathname (line 15) | KernProcPathname = 12 constant KernProcArgs (line 16) | KernProcArgs = 55 constant KernProcCwd (line 17) | KernProcCwd = 78 constant KernProcArgv (line 18) | KernProcArgv = 1 constant KernProcEnv (line 19) | KernProcEnv = 3 constant ArgMax (line 23) | ArgMax = 256 * 1024 constant sizeofPtr (line 27) | sizeofPtr = 0x4 constant sizeofShort (line 28) | sizeofShort = 0x2 constant sizeofInt (line 29) | sizeofInt = 0x4 constant sizeofLong (line 30) | sizeofLong = 0x4 constant sizeofLongLong (line 31) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 35) | sizeOfKinfoVmentry = 0x38 constant sizeOfKinfoProc (line 36) | sizeOfKinfoProc = 0x264 constant SIDL (line 40) | SIDL = 1 constant SRUN (line 41) | SRUN = 2 constant SSLEEP (line 42) | SSLEEP = 3 constant SSTOP (line 43) | SSTOP = 4 constant SZOMB (line 44) | SZOMB = 5 constant SDEAD (line 45) | SDEAD = 6 constant SONPROC (line 46) | SONPROC = 7 type _C_short (line 50) | type _C_short type _C_int (line 51) | type _C_int type _C_long (line 52) | type _C_long type _C_long_long (line 53) | type _C_long_long type Timespec (line 56) | type Timespec struct type Timeval (line 61) | type Timeval struct type Rusage (line 66) | type Rusage struct type Rlimit (line 85) | type Rlimit struct type KinfoProc (line 90) | type KinfoProc struct type Priority (line 186) | type Priority struct type KinfoVmentry (line 188) | type KinfoVmentry struct FILE: process/process_openbsd_arm64.go constant CTLKern (line 10) | CTLKern = 1 constant KernProc (line 11) | KernProc = 66 constant KernProcAll (line 12) | KernProcAll = 0 constant KernProcPID (line 13) | KernProcPID = 1 constant KernProcProc (line 14) | KernProcProc = 8 constant KernProcPathname (line 15) | KernProcPathname = 12 constant KernProcArgs (line 16) | KernProcArgs = 55 constant KernProcCwd (line 17) | KernProcCwd = 78 constant KernProcArgv (line 18) | KernProcArgv = 1 constant KernProcEnv (line 19) | KernProcEnv = 3 constant ArgMax (line 23) | ArgMax = 256 * 1024 constant sizeofPtr (line 27) | sizeofPtr = 0x8 constant sizeofShort (line 28) | sizeofShort = 0x2 constant sizeofInt (line 29) | sizeofInt = 0x4 constant sizeofLong (line 30) | sizeofLong = 0x8 constant sizeofLongLong (line 31) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 35) | sizeOfKinfoVmentry = 0x50 constant sizeOfKinfoProc (line 36) | sizeOfKinfoProc = 0x270 constant SIDL (line 40) | SIDL = 1 constant SRUN (line 41) | SRUN = 2 constant SSLEEP (line 42) | SSLEEP = 3 constant SSTOP (line 43) | SSTOP = 4 constant SZOMB (line 44) | SZOMB = 5 constant SDEAD (line 45) | SDEAD = 6 constant SONPROC (line 46) | SONPROC = 7 type _C_short (line 50) | type _C_short type _C_int (line 51) | type _C_int type _C_long (line 52) | type _C_long type _C_long_long (line 53) | type _C_long_long type Timespec (line 56) | type Timespec struct type Timeval (line 61) | type Timeval struct type Rusage (line 66) | type Rusage struct type Rlimit (line 85) | type Rlimit struct type KinfoProc (line 90) | type KinfoProc struct type Priority (line 187) | type Priority struct type KinfoVmentry (line 189) | type KinfoVmentry struct FILE: process/process_openbsd_riscv64.go constant CTLKern (line 10) | CTLKern = 1 constant KernProc (line 11) | KernProc = 66 constant KernProcAll (line 12) | KernProcAll = 0 constant KernProcPID (line 13) | KernProcPID = 1 constant KernProcProc (line 14) | KernProcProc = 8 constant KernProcPathname (line 15) | KernProcPathname = 12 constant KernProcArgs (line 16) | KernProcArgs = 55 constant KernProcCwd (line 17) | KernProcCwd = 78 constant KernProcArgv (line 18) | KernProcArgv = 1 constant KernProcEnv (line 19) | KernProcEnv = 3 constant ArgMax (line 23) | ArgMax = 256 * 1024 constant sizeofPtr (line 27) | sizeofPtr = 0x8 constant sizeofShort (line 28) | sizeofShort = 0x2 constant sizeofInt (line 29) | sizeofInt = 0x4 constant sizeofLong (line 30) | sizeofLong = 0x8 constant sizeofLongLong (line 31) | sizeofLongLong = 0x8 constant sizeOfKinfoVmentry (line 35) | sizeOfKinfoVmentry = 0x50 constant sizeOfKinfoProc (line 36) | sizeOfKinfoProc = 0x288 constant SIDL (line 40) | SIDL = 1 constant SRUN (line 41) | SRUN = 2 constant SSLEEP (line 42) | SSLEEP = 3 constant SSTOP (line 43) | SSTOP = 4 constant SZOMB (line 44) | SZOMB = 5 constant SDEAD (line 45) | SDEAD = 6 constant SONPROC (line 46) | SONPROC = 7 type _C_short (line 50) | type _C_short type _C_int (line 51) | type _C_int type _C_long (line 52) | type _C_long type _C_long_long (line 53) | type _C_long_long type Timespec (line 56) | type Timespec struct type Timeval (line 61) | type Timeval struct type Rusage (line 66) | type Rusage struct type Rlimit (line 85) | type Rlimit struct type KinfoProc (line 90) | type KinfoProc struct type Priority (line 188) | type Priority struct type KinfoVmentry (line 190) | type KinfoVmentry struct FILE: process/process_plan9.go type MemoryMapsStat (line 17) | type MemoryMapsStat struct type MemoryInfoExStat (line 31) | type MemoryInfoExStat struct function pidsWithContext (line 33) | func pidsWithContext(_ context.Context) ([]int32, error) { function ProcessesWithContext (line 37) | func ProcessesWithContext(_ context.Context) ([]*Process, error) { function PidExistsWithContext (line 41) | func PidExistsWithContext(_ context.Context, _ int32) (bool, error) { method PpidWithContext (line 45) | func (*Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 49) | func (*Process) NameWithContext(_ context.Context) (string, error) { method TgidWithContext (line 53) | func (*Process) TgidWithContext(_ context.Context) (int32, error) { method ExeWithContext (line 57) | func (*Process) ExeWithContext(_ context.Context) (string, error) { method CmdlineWithContext (line 61) | func (*Process) CmdlineWithContext(_ context.Context) (string, error) { method CmdlineSliceWithContext (line 65) | func (*Process) CmdlineSliceWithContext(_ context.Context) ([]string, er... method createTimeWithContext (line 69) | func (*Process) createTimeWithContext(_ context.Context) (int64, error) { method CwdWithContext (line 73) | func (*Process) CwdWithContext(_ context.Context) (string, error) { method StatusWithContext (line 77) | func (*Process) StatusWithContext(_ context.Context) ([]string, error) { method ForegroundWithContext (line 81) | func (*Process) ForegroundWithContext(_ context.Context) (bool, error) { method UidsWithContext (line 85) | func (*Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 89) | func (*Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 93) | func (*Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 97) | func (*Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 101) | func (*Process) NiceWithContext(_ context.Context) (int32, error) { method IOniceWithContext (line 105) | func (*Process) IOniceWithContext(_ context.Context) (int32, error) { method RlimitWithContext (line 109) | func (*Process) RlimitWithContext(_ context.Context) ([]RlimitStat, erro... method RlimitUsageWithContext (line 113) | func (*Process) RlimitUsageWithContext(_ context.Context, _ bool) ([]Rli... method IOCountersWithContext (line 117) | func (*Process) IOCountersWithContext(_ context.Context) (*IOCountersSta... method NumCtxSwitchesWithContext (line 121) | func (*Process) NumCtxSwitchesWithContext(_ context.Context) (*NumCtxSwi... method NumFDsWithContext (line 125) | func (*Process) NumFDsWithContext(_ context.Context) (int32, error) { method NumThreadsWithContext (line 129) | func (*Process) NumThreadsWithContext(_ context.Context) (int32, error) { method ThreadsWithContext (line 133) | func (*Process) ThreadsWithContext(_ context.Context) (map[int32]*cpu.Ti... method TimesWithContext (line 137) | func (*Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, err... method CPUAffinityWithContext (line 141) | func (*Process) CPUAffinityWithContext(_ context.Context) ([]int32, erro... method MemoryInfoWithContext (line 145) | func (*Process) MemoryInfoWithContext(_ context.Context) (*MemoryInfoSta... method MemoryInfoExWithContext (line 149) | func (*Process) MemoryInfoExWithContext(_ context.Context) (*MemoryInfoE... method PageFaultsWithContext (line 153) | func (*Process) PageFaultsWithContext(_ context.Context) (*PageFaultsSta... method ChildrenWithContext (line 157) | func (*Process) ChildrenWithContext(_ context.Context) ([]*Process, erro... method OpenFilesWithContext (line 161) | func (*Process) OpenFilesWithContext(_ context.Context) ([]OpenFilesStat... method ConnectionsWithContext (line 165) | func (*Process) ConnectionsWithContext(_ context.Context) ([]net.Connect... method ConnectionsMaxWithContext (line 169) | func (*Process) ConnectionsMaxWithContext(_ context.Context, _ int) ([]n... method MemoryMapsWithContext (line 173) | func (*Process) MemoryMapsWithContext(_ context.Context, _ bool) (*[]Mem... method SendSignalWithContext (line 177) | func (*Process) SendSignalWithContext(_ context.Context, _ Signal) error { method SuspendWithContext (line 181) | func (*Process) SuspendWithContext(_ context.Context) error { method ResumeWithContext (line 185) | func (*Process) ResumeWithContext(_ context.Context) error { method TerminateWithContext (line 189) | func (*Process) TerminateWithContext(_ context.Context) error { method KillWithContext (line 193) | func (*Process) KillWithContext(_ context.Context) error { method UsernameWithContext (line 197) | func (*Process) UsernameWithContext(_ context.Context) (string, error) { method EnvironWithContext (line 201) | func (*Process) EnvironWithContext(_ context.Context) ([]string, error) { FILE: process/process_posix.go function getTerminalMap (line 25) | func getTerminalMap() (map[uint64]string, error) { function isMount (line 82) | func isMount(path string) bool { function PidExistsWithContext (line 103) | func PidExistsWithContext(ctx context.Context, pid int32) (bool, error) { method SendSignalWithContext (line 143) | func (p *Process) SendSignalWithContext(_ context.Context, sig syscall.S... method SuspendWithContext (line 158) | func (p *Process) SuspendWithContext(ctx context.Context) error { method ResumeWithContext (line 162) | func (p *Process) ResumeWithContext(ctx context.Context) error { method TerminateWithContext (line 166) | func (p *Process) TerminateWithContext(ctx context.Context) error { method KillWithContext (line 170) | func (p *Process) KillWithContext(ctx context.Context) error { method UsernameWithContext (line 174) | func (p *Process) UsernameWithContext(ctx context.Context) (string, erro... FILE: process/process_posix_test.go function Test_SendSignal (line 16) | func Test_SendSignal(t *testing.T) { function TestGetTerminalMapPathsExist (line 23) | func TestGetTerminalMapPathsExist(t *testing.T) { FILE: process/process_race_test.go function TestPpid_Race (line 16) | func TestPpid_Race(t *testing.T) { FILE: process/process_solaris.go type MemoryMapsStat (line 16) | type MemoryMapsStat struct type MemoryInfoExStat (line 30) | type MemoryInfoExStat struct function pidsWithContext (line 32) | func pidsWithContext(ctx context.Context) ([]int32, error) { function ProcessesWithContext (line 36) | func ProcessesWithContext(ctx context.Context) ([]*Process, error) { method PpidWithContext (line 55) | func (*Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 59) | func (*Process) NameWithContext(_ context.Context) (string, error) { method TgidWithContext (line 63) | func (*Process) TgidWithContext(_ context.Context) (int32, error) { method ExeWithContext (line 67) | func (p *Process) ExeWithContext(ctx context.Context) (string, error) { method CmdlineWithContext (line 75) | func (p *Process) CmdlineWithContext(ctx context.Context) (string, error) { method CmdlineSliceWithContext (line 79) | func (p *Process) CmdlineSliceWithContext(ctx context.Context) ([]string... method createTimeWithContext (line 83) | func (*Process) createTimeWithContext(_ context.Context) (int64, error) { method CwdWithContext (line 87) | func (p *Process) CwdWithContext(ctx context.Context) (string, error) { method StatusWithContext (line 91) | func (*Process) StatusWithContext(_ context.Context) ([]string, error) { method ForegroundWithContext (line 95) | func (*Process) ForegroundWithContext(_ context.Context) (bool, error) { method UidsWithContext (line 99) | func (*Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 103) | func (*Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 107) | func (*Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 111) | func (*Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 115) | func (*Process) NiceWithContext(_ context.Context) (int32, error) { method IOniceWithContext (line 119) | func (*Process) IOniceWithContext(_ context.Context) (int32, error) { method RlimitWithContext (line 123) | func (*Process) RlimitWithContext(_ context.Context) ([]RlimitStat, erro... method RlimitUsageWithContext (line 127) | func (*Process) RlimitUsageWithContext(_ context.Context, _ bool) ([]Rli... method IOCountersWithContext (line 131) | func (*Process) IOCountersWithContext(_ context.Context) (*IOCountersSta... method NumCtxSwitchesWithContext (line 135) | func (*Process) NumCtxSwitchesWithContext(_ context.Context) (*NumCtxSwi... method NumFDsWithContext (line 139) | func (p *Process) NumFDsWithContext(ctx context.Context) (int32, error) { method NumThreadsWithContext (line 144) | func (*Process) NumThreadsWithContext(_ context.Context) (int32, error) { method ThreadsWithContext (line 148) | func (*Process) ThreadsWithContext(_ context.Context) (map[int32]*cpu.Ti... method TimesWithContext (line 152) | func (*Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, err... method CPUAffinityWithContext (line 156) | func (*Process) CPUAffinityWithContext(_ context.Context) ([]int32, erro... method MemoryInfoWithContext (line 160) | func (*Process) MemoryInfoWithContext(_ context.Context) (*MemoryInfoSta... method MemoryInfoExWithContext (line 164) | func (*Process) MemoryInfoExWithContext(_ context.Context) (*MemoryInfoE... method PageFaultsWithContext (line 168) | func (*Process) PageFaultsWithContext(_ context.Context) (*PageFaultsSta... method ChildrenWithContext (line 172) | func (*Process) ChildrenWithContext(_ context.Context) ([]*Process, erro... method OpenFilesWithContext (line 176) | func (*Process) OpenFilesWithContext(_ context.Context) ([]OpenFilesStat... method ConnectionsWithContext (line 180) | func (*Process) ConnectionsWithContext(_ context.Context) ([]net.Connect... method ConnectionsMaxWithContext (line 184) | func (*Process) ConnectionsMaxWithContext(_ context.Context, _ int) ([]n... method MemoryMapsWithContext (line 188) | func (*Process) MemoryMapsWithContext(_ context.Context, _ bool) (*[]Mem... method EnvironWithContext (line 192) | func (*Process) EnvironWithContext(_ context.Context) ([]string, error) { method fillFromfdListWithContext (line 200) | func (p *Process) fillFromfdListWithContext(ctx context.Context) (string... method fillFromPathCwdWithContext (line 212) | func (p *Process) fillFromPathCwdWithContext(ctx context.Context) (strin... method fillFromPathAOutWithContext (line 222) | func (p *Process) fillFromPathAOutWithContext(ctx context.Context) (stri... method fillFromExecnameWithContext (line 232) | func (p *Process) fillFromExecnameWithContext(ctx context.Context) (stri... method fillFromCmdlineWithContext (line 242) | func (p *Process) fillFromCmdlineWithContext(ctx context.Context) (strin... method fillSliceFromCmdlineWithContext (line 256) | func (p *Process) fillSliceFromCmdlineWithContext(ctx context.Context) (... function readPidsFromDir (line 278) | func readPidsFromDir(path string) ([]int32, error) { FILE: process/process_test.go function testGetProcess (line 32) | func testGetProcess() Process { function TestPids (line 38) | func TestPids(t *testing.T) { function TestPid_exists (line 47) | func TestPid_exists(t *testing.T) { function TestNewProcess (line 59) | func TestNewProcess(t *testing.T) { function TestMemoryMaps (line 73) | func TestMemoryMaps(t *testing.T) { function TestMemoryInfo (line 103) | func TestMemoryInfo(t *testing.T) { function TestCmdLine (line 117) | func TestCmdLine(t *testing.T) { function TestCmdLineSlice (line 128) | func TestCmdLineSlice(t *testing.T) { function TestPpid (line 139) | func TestPpid(t *testing.T) { function TestStatus (line 152) | func TestStatus(t *testing.T) { function TestTerminal (line 166) | func TestTerminal(t *testing.T) { function TestIOCounters (line 176) | func TestIOCounters(t *testing.T) { function TestNumCtx (line 188) | func TestNumCtx(t *testing.T) { function TestNice (line 198) | func TestNice(t *testing.T) { function TestGroups (line 216) | func TestGroups(t *testing.T) { function TestNumThread (line 229) | func TestNumThread(t *testing.T) { function TestThreads (line 240) | func TestThreads(t *testing.T) { function TestName (line 258) | func TestName(t *testing.T) { function TestLong_Name_With_Spaces (line 270) | func TestLong_Name_With_Spaces(t *testing.T) { function TestLong_Name (line 309) | func TestLong_Name(t *testing.T) { function TestName_Against_Python (line 347) | func TestName_Against_Python(t *testing.T) { function TestExe (line 394) | func TestExe(t *testing.T) { function TestCpuPercent (line 405) | func TestCpuPercent(t *testing.T) { function TestCpuPercentLoop (line 422) | func TestCpuPercentLoop(t *testing.T) { function TestCreateTime (line 438) | func TestCreateTime(t *testing.T) { function TestParent (line 459) | func TestParent(t *testing.T) { function TestConnections (line 471) | func TestConnections(t *testing.T) { function TestChildren (line 537) | func TestChildren(t *testing.T) { function TestUsername (line 566) | func TestUsername(t *testing.T) { function TestCPUTimes (line 581) | func TestCPUTimes(t *testing.T) { function TestOpenFiles (line 617) | func TestOpenFiles(t *testing.T) { function TestKill (line 643) | func TestKill(t *testing.T) { function TestIsRunning (line 666) | func TestIsRunning(t *testing.T) { function TestEnviron (line 696) | func TestEnviron(t *testing.T) { function TestCwd (line 739) | func TestCwd(t *testing.T) { function TestConcurrent (line 755) | func TestConcurrent(t *testing.T) { function BenchmarkNewProcess (line 778) | func BenchmarkNewProcess(b *testing.B) { function BenchmarkProcessName (line 785) | func BenchmarkProcessName(b *testing.B) { function BenchmarkProcessPpid (line 792) | func BenchmarkProcessPpid(b *testing.B) { function BenchmarkProcesses (line 799) | func BenchmarkProcesses(b *testing.B) { FILE: process/process_windows.go constant processQueryInformation (line 51) | processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION type systemProcessorInformation (line 53) | type systemProcessorInformation struct type systemInfo (line 61) | type systemInfo struct type MemoryInfoExStat (line 76) | type MemoryInfoExStat struct type MemoryMapsStat (line 78) | type MemoryMapsStat struct type ioCounters (line 82) | type ioCounters struct type processBasicInformation32 (line 91) | type processBasicInformation32 struct type processBasicInformation64 (line 100) | type processBasicInformation64 struct type processEnvironmentBlock32 (line 109) | type processEnvironmentBlock32 struct type processEnvironmentBlock64 (line 119) | type processEnvironmentBlock64 struct type rtlUserProcessParameters32 (line 130) | type rtlUserProcessParameters32 struct type rtlUserProcessParameters64 (line 154) | type rtlUserProcessParameters64 struct type winLUID (line 182) | type winLUID struct type winLUIDAndAttributes (line 188) | type winLUIDAndAttributes struct type winTokenPrivileges (line 194) | type winTokenPrivileges struct type winLong (line 200) | type winLong type winDWord (line 201) | type winDWord function init (line 204) | func init() { function pidsWithContext (line 244) | func pidsWithContext(_ context.Context) ([]int32, error) { function PidExistsWithContext (line 269) | func PidExistsWithContext(ctx context.Context, pid int32) (bool, error) { method PpidWithContext (line 305) | func (p *Process) PpidWithContext(_ context.Context) (int32, error) { method NameWithContext (line 323) | func (p *Process) NameWithContext(ctx context.Context) (string, error) { method TgidWithContext (line 339) | func (*Process) TgidWithContext(_ context.Context) (int32, error) { method ExeWithContext (line 343) | func (p *Process) ExeWithContext(_ context.Context) (string, error) { method CmdlineWithContext (line 370) | func (p *Process) CmdlineWithContext(_ context.Context) (string, error) { method CmdlineSliceWithContext (line 378) | func (p *Process) CmdlineSliceWithContext(ctx context.Context) ([]string... function parseCmdline (line 386) | func parseCmdline(cmdline string) ([]string, error) { method createTimeWithContext (line 406) | func (p *Process) createTimeWithContext(_ context.Context) (int64, error) { method CwdWithContext (line 415) | func (p *Process) CwdWithContext(_ context.Context) (string, error) { method StatusWithContext (line 459) | func (*Process) StatusWithContext(_ context.Context) ([]string, error) { method ForegroundWithContext (line 463) | func (*Process) ForegroundWithContext(_ context.Context) (bool, error) { method UsernameWithContext (line 467) | func (p *Process) UsernameWithContext(_ context.Context) (string, error) { method UidsWithContext (line 490) | func (*Process) UidsWithContext(_ context.Context) ([]uint32, error) { method GidsWithContext (line 494) | func (*Process) GidsWithContext(_ context.Context) ([]uint32, error) { method GroupsWithContext (line 498) | func (*Process) GroupsWithContext(_ context.Context) ([]uint32, error) { method TerminalWithContext (line 502) | func (*Process) TerminalWithContext(_ context.Context) (string, error) { method NiceWithContext (line 518) | func (p *Process) NiceWithContext(_ context.Context) (int32, error) { method IOniceWithContext (line 535) | func (*Process) IOniceWithContext(_ context.Context) (int32, error) { method RlimitWithContext (line 539) | func (*Process) RlimitWithContext(_ context.Context) ([]RlimitStat, erro... method RlimitUsageWithContext (line 543) | func (*Process) RlimitUsageWithContext(_ context.Context, _ bool) ([]Rli... method IOCountersWithContext (line 547) | func (p *Process) IOCountersWithContext(_ context.Context) (*IOCountersS... method NumCtxSwitchesWithContext (line 568) | func (*Process) NumCtxSwitchesWithContext(_ context.Context) (*NumCtxSwi... method NumFDsWithContext (line 574) | func (p *Process) NumFDsWithContext(_ context.Context) (int32, error) { method NumThreadsWithContext (line 589) | func (p *Process) NumThreadsWithContext(_ context.Context) (int32, error) { method ThreadsWithContext (line 604) | func (*Process) ThreadsWithContext(_ context.Context) (map[int32]*cpu.Ti... method TimesWithContext (line 608) | func (p *Process) TimesWithContext(_ context.Context) (*cpu.TimesStat, e... method CPUAffinityWithContext (line 632) | func (*Process) CPUAffinityWithContext(_ context.Context) ([]int32, erro... method MemoryInfoWithContext (line 636) | func (p *Process) MemoryInfoWithContext(_ context.Context) (*MemoryInfoS... method MemoryInfoExWithContext (line 650) | func (*Process) MemoryInfoExWithContext(_ context.Context) (*MemoryInfoE... method PageFaultsWithContext (line 654) | func (p *Process) PageFaultsWithContext(_ context.Context) (*PageFaultsS... method ChildrenWithContext (line 668) | func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, ... method OpenFilesWithContext (line 694) | func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFiles... method ConnectionsWithContext (line 789) | func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.Con... method ConnectionsMaxWithContext (line 793) | func (*Process) ConnectionsMaxWithContext(_ context.Context, _ int) ([]n... method MemoryMapsWithContext (line 797) | func (*Process) MemoryMapsWithContext(_ context.Context, _ bool) (*[]Mem... method SendSignalWithContext (line 801) | func (*Process) SendSignalWithContext(_ context.Context, _ syscall.Signa... method SuspendWithContext (line 805) | func (p *Process) SuspendWithContext(_ context.Context) error { method ResumeWithContext (line 821) | func (p *Process) ResumeWithContext(_ context.Context) error { method TerminateWithContext (line 837) | func (p *Process) TerminateWithContext(_ context.Context) error { method KillWithContext (line 847) | func (p *Process) KillWithContext(_ context.Context) error { method EnvironWithContext (line 856) | func (p *Process) EnvironWithContext(ctx context.Context) ([]string, err... method getPpid (line 865) | func (p *Process) getPpid() int32 { method setPpid (line 873) | func (p *Process) setPpid(ppid int32) { function getFromSnapProcess (line 879) | func getFromSnapProcess(pid int32) (int32, int32, string, error) { //nol... function ProcessesWithContext (line 903) | func ProcessesWithContext(ctx context.Context) ([]*Process, error) { function getRusage (line 922) | func getRusage(pid int32) (*windows.Rusage, error) { function getMemoryInfo (line 938) | func getMemoryInfo(pid int32) (PROCESS_MEMORY_COUNTERS, error) { function getProcessMemoryInfo (line 952) | func getProcessMemoryInfo(h windows.Handle, mem *PROCESS_MEMORY_COUNTERS... type SYSTEM_TIMES (line 964) | type SYSTEM_TIMES struct function getProcessCPUTimes (line 971) | func getProcessCPUTimes(pid int32) (SYSTEM_TIMES, error) { function getUserProcessParams32 (line 991) | func getUserProcessParams32(handle windows.Handle) (rtlUserProcessParame... function getUserProcessParams64 (line 1010) | func getUserProcessParams64(handle windows.Handle) (rtlUserProcessParame... function is32BitProcess (line 1029) | func is32BitProcess(h windows.Handle) bool { function getProcessEnvironmentVariables (line 1074) | func getProcessEnvironmentVariables(ctx context.Context, pid int32) ([]s... type processReader (line 1142) | type processReader struct method Read (line 1148) | func (p *processReader) Read(buf []byte) (int, error) { function getProcessCommandLine (line 1158) | func getProcessCommandLine(pid int32) (string, error) { function convertUTF16ToString (line 1202) | func convertUTF16ToString(src []byte) string { FILE: process/process_windows_32bit.go type PROCESS_MEMORY_COUNTERS (line 16) | type PROCESS_MEMORY_COUNTERS struct function queryPebAddress (line 29) | func queryPebAddress(procHandle syscall.Handle, is32BitProcess bool) (ui... function readProcessMemory (line 66) | func readProcessMemory(h syscall.Handle, is32BitProcess bool, address ui... FILE: process/process_windows_64bit.go type PROCESS_MEMORY_COUNTERS (line 15) | type PROCESS_MEMORY_COUNTERS struct function queryPebAddress (line 28) | func queryPebAddress(procHandle syscall.Handle, is32BitProcess bool) (ui... function readProcessMemory (line 61) | func readProcessMemory(procHandle syscall.Handle, _ bool, address uint64... FILE: process/types_darwin.go constant sizeofPtr (line 94) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 95) | sizeofShort = C.sizeof_short constant sizeofInt (line 96) | sizeofInt = C.sizeof_int constant sizeofLong (line 97) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 98) | sizeofLongLong = C.sizeof_longlong type _C_short (line 104) | type _C_short type _C_int (line 105) | type _C_int type _C_long (line 106) | type _C_long type _C_long_long (line 107) | type _C_long_long type Timespec (line 112) | type Timespec type Timeval (line 114) | type Timeval type Rusage (line 118) | type Rusage type Rlimit (line 120) | type Rlimit type UGid_t (line 122) | type UGid_t type KinfoProc (line 124) | type KinfoProc type Eproc (line 126) | type Eproc type Proc (line 128) | type Proc type Session (line 130) | type Session type ucred (line 132) | type ucred type Uucred (line 134) | type Uucred type Upcred (line 136) | type Upcred type Vmspace (line 138) | type Vmspace type Sigacts (line 140) | type Sigacts type ExternProc (line 142) | type ExternProc type Itimerval (line 144) | type Itimerval type Vnode (line 146) | type Vnode type Pgrp (line 148) | type Pgrp type UserStruct (line 150) | type UserStruct type Au_session (line 152) | type Au_session type Posix_cred (line 154) | type Posix_cred type Label (line 156) | type Label type ProcTaskInfo (line 158) | type ProcTaskInfo type vinfoStat (line 160) | type vinfoStat type fsid (line 162) | type fsid type vnodeInfo (line 164) | type vnodeInfo type vnodeInfoPath (line 166) | type vnodeInfoPath type vnodePathInfo (line 168) | type vnodePathInfo type AuditinfoAddr (line 171) | type AuditinfoAddr type AuMask (line 172) | type AuMask type AuTidAddr (line 173) | type AuTidAddr type UcredQueue (line 177) | type UcredQueue FILE: process/types_freebsd.go constant CTLKern (line 39) | CTLKern = 1 constant KernProc (line 40) | KernProc = 14 constant KernProcPID (line 41) | KernProcPID = 1 constant KernProcProc (line 42) | KernProcProc = 8 constant KernProcPathname (line 43) | KernProcPathname = 12 constant KernProcArgs (line 44) | KernProcArgs = 7 constant KernProcCwd (line 45) | KernProcCwd = 42 constant sizeofPtr (line 49) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 50) | sizeofShort = C.sizeof_short constant sizeofInt (line 51) | sizeofInt = C.sizeof_int constant sizeofLong (line 52) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 53) | sizeofLongLong = C.sizeof_longlong constant sizeOfKinfoVmentry (line 57) | sizeOfKinfoVmentry = C.sizeof_struct_kinfo_vmentry constant sizeOfKinfoProc (line 58) | sizeOfKinfoProc = C.sizeof_struct_kinfo_proc constant sizeOfKinfoFile (line 59) | sizeOfKinfoFile = C.sizeof_struct_kinfo_file constant SIDL (line 64) | SIDL = 1 constant SRUN (line 65) | SRUN = 2 constant SSLEEP (line 66) | SSLEEP = 3 constant SSTOP (line 67) | SSTOP = 4 constant SZOMB (line 68) | SZOMB = 5 constant SWAIT (line 69) | SWAIT = 6 constant SLOCK (line 70) | SLOCK = 7 type _C_short (line 76) | type _C_short type _C_int (line 77) | type _C_int type _C_long (line 78) | type _C_long type _C_long_long (line 79) | type _C_long_long type Timespec (line 84) | type Timespec type Timeval (line 86) | type Timeval type Rusage (line 90) | type Rusage type Rlimit (line 92) | type Rlimit type KinfoProc (line 94) | type KinfoProc type Priority (line 96) | type Priority type KinfoVmentry (line 98) | type KinfoVmentry type kinfoFile (line 100) | type kinfoFile type capRights (line 102) | type capRights FILE: process/types_openbsd.go constant CTLKern (line 40) | CTLKern = 1 constant KernProc (line 41) | KernProc = 66 constant KernProcAll (line 42) | KernProcAll = 0 constant KernProcPID (line 43) | KernProcPID = 1 constant KernProcProc (line 44) | KernProcProc = 8 constant KernProcPathname (line 45) | KernProcPathname = 12 constant KernProcArgs (line 46) | KernProcArgs = 55 constant KernProcCwd (line 47) | KernProcCwd = 78 constant KernProcArgv (line 48) | KernProcArgv = 1 constant KernProcEnv (line 49) | KernProcEnv = 3 constant ArgMax (line 53) | ArgMax = 256 * 1024 constant sizeofPtr (line 57) | sizeofPtr = C.sizeofPtr constant sizeofShort (line 58) | sizeofShort = C.sizeof_short constant sizeofInt (line 59) | sizeofInt = C.sizeof_int constant sizeofLong (line 60) | sizeofLong = C.sizeof_long constant sizeofLongLong (line 61) | sizeofLongLong = C.sizeof_longlong constant sizeOfKinfoVmentry (line 65) | sizeOfKinfoVmentry = C.sizeof_struct_kinfo_vmentry constant sizeOfKinfoProc (line 66) | sizeOfKinfoProc = C.sizeof_struct_kinfo_proc constant SIDL (line 71) | SIDL = 1 constant SRUN (line 72) | SRUN = 2 constant SSLEEP (line 73) | SSLEEP = 3 constant SSTOP (line 74) | SSTOP = 4 constant SZOMB (line 75) | SZOMB = 5 constant SDEAD (line 76) | SDEAD = 6 constant SONPROC (line 77) | SONPROC = 7 type _C_short (line 83) | type _C_short type _C_int (line 84) | type _C_int type _C_long (line 85) | type _C_long type _C_long_long (line 86) | type _C_long_long type Timespec (line 91) | type Timespec type Timeval (line 93) | type Timeval type Rusage (line 97) | type Rusage type Rlimit (line 99) | type Rlimit type KinfoProc (line 101) | type KinfoProc type Priority (line 103) | type Priority type KinfoVmentry (line 105) | type KinfoVmentry FILE: sensors/ex_linux.go type ExTemperature (line 15) | type ExTemperature struct type ExLinux (line 22) | type ExLinux struct method TemperatureWithContext (line 28) | func (*ExLinux) TemperatureWithContext(ctx context.Context) ([]ExTempe... function NewExLinux (line 24) | func NewExLinux() *ExLinux { FILE: sensors/sensors.go type TemperatureStat (line 16) | type TemperatureStat struct method String (line 23) | func (t TemperatureStat) String() string { function SensorsTemperatures (line 28) | func SensorsTemperatures() ([]TemperatureStat, error) { FILE: sensors/sensors_aix.go constant hostTemperatureScale (line 13) | hostTemperatureScale = 1000.0 function TemperaturesWithContext (line 16) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... FILE: sensors/sensors_darwin.go function TemperaturesWithContext (line 14) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... type smcReturn (line 56) | type smcReturn struct type smcPLimitData (line 63) | type smcPLimitData struct type smcKeyInfoData (line 71) | type smcKeyInfoData struct type smcVersion (line 77) | type smcVersion struct type smcParamStruct (line 85) | type smcParamStruct struct constant smcKeySize (line 98) | smcKeySize = 4 constant dataTypeSp78 (line 99) | dataTypeSp78 = "sp78" function getTemperature (line 102) | func getTemperature(smc *common.SMC, key string) float64 { function readSMC (line 115) | func readSMC(smc *common.SMC, key string) (*smcReturn, error) { function callSMC (line 146) | func callSMC(smc *common.SMC, input *smcParamStruct) (*smcParamStruct, e... function toUint32 (line 161) | func toUint32(key string) uint32 { FILE: sensors/sensors_darwin_arm64.go constant kHIDPageAppleVendor (line 14) | kHIDPageAppleVendor = 0xff00 constant kHIDPageAppleVendorTemperatureSensor (line 15) | kHIDPageAppleVendorTemperatureSensor = 5 function ReadTemperaturesArm (line 18) | func ReadTemperaturesArm() []TemperatureStat { function TemperaturesWithContext (line 23) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... type temperatureArm (line 51) | type temperatureArm struct method getSensors (line 56) | func (ta *temperatureArm) getSensors(system, sensors unsafe.Pointer) [... method matching (line 105) | func (ta *temperatureArm) matching(page, usage int32) unsafe.Pointer { function ioHIDEventFieldBase (line 129) | func ioHIDEventFieldBase(i int32) int32 { FILE: sensors/sensors_fallback.go function TemperaturesWithContext (line 12) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... FILE: sensors/sensors_freebsd.go function TemperaturesWithContext (line 12) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... FILE: sensors/sensors_linux.go constant hostTemperatureScale (line 19) | hostTemperatureScale = 1000.0 function TemperaturesWithContext (line 22) | func TemperaturesWithContext(ctx context.Context) ([]TemperatureStat, er... function getTemperatureFiles (line 129) | func getTemperatureFiles(ctx context.Context) ([]string, error) { function optionalValueReadFromFile (line 151) | func optionalValueReadFromFile(filename string) float64 { FILE: sensors/sensors_netbsd.go function TemperaturesWithContext (line 12) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... FILE: sensors/sensors_openbsd.go function TemperaturesWithContext (line 12) | func TemperaturesWithContext(_ context.Context) ([]TemperatureStat, erro... FILE: sensors/sensors_solaris.go function TemperaturesWithContext (line 15) | func TemperaturesWithContext(ctx context.Context) ([]TemperatureStat, er... FILE: sensors/sensors_test.go function TestTemperatureStat_String (line 16) | func TestTemperatureStat_String(t *testing.T) { function TestTemperatures (line 27) | func TestTemperatures(t *testing.T) { FILE: sensors/sensors_windows.go type msAcpi_ThermalZoneTemperature (line 14) | type msAcpi_ThermalZoneTemperature struct function TemperaturesWithContext (line 21) | func TemperaturesWithContext(ctx context.Context) ([]TemperatureStat, er... function kelvinToCelsius (line 40) | func kelvinToCelsius(temp uint32) float64 { FILE: winservices/manager.go type scmanager (line 10) | type scmanager struct method close (line 22) | func (sc *scmanager) close() error { function openSCManager (line 14) | func openSCManager() (*scmanager, error) { function getService (line 26) | func getService(serviceName string) (*mgr.Service, error) { FILE: winservices/winservices.go type Service (line 17) | type Service struct method GetServiceDetail (line 47) | func (s *Service) GetServiceDetail() error { method GetServiceDetailWithContext (line 52) | func (s *Service) GetServiceDetailWithContext(ctx context.Context) err... method QueryServiceConfig (line 69) | func (s *Service) QueryServiceConfig() (mgr.Config, error) { method QueryServiceConfigWithContext (line 75) | func (s *Service) QueryServiceConfigWithContext(_ context.Context) (mg... method QueryStatus (line 80) | func (s *Service) QueryStatus() (ServiceStatus, error) { method QueryStatusWithContext (line 85) | func (s *Service) QueryStatusWithContext(_ context.Context) (ServiceSt... type ServiceStatus (line 25) | type ServiceStatus struct function NewService (line 33) | func NewService(name string) (*Service, error) { function ListServices (line 110) | func ListServices() ([]Service, error) {