xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

kernel.h File Reference
#include "defines.h"
Include dependency graph for kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void BSDInit ()
 
void SetKernelName (const char *kernelName)
 
int BSDGetCPUSpeed ()
 
void BSDPageInit ()
 
void BSDGetPageStats (uint64_t *meminfo, uint64_t *pageinfo)
 
void BSDCPUInit ()
 
void BSDGetCPUTimes (uint64_t *timesArray, unsigned int cpu=0)
 
int BSDNetInit ()
 
void BSDGetNetInOut (uint64_t *inbytes, uint64_t *outbytes, const char *netIface, bool ignored)
 
int BSDSwapInit ()
 
void BSDGetSwapInfo (uint64_t *total, uint64_t *free)
 
int BSDDiskInit ()
 
uint64_t BSDGetDiskXFerBytes (uint64_t *read_bytes, uint64_t *write_bytes)
 
int BSDIntrInit ()
 
int BSDNumInts ()
 
void BSDGetIntrStats (uint64_t *intrCount, unsigned int *intrNbrs)
 
int BSDCountCpus (void)
 
void BSDGetSensor (const char *name, const char *valname, float *value, char *unit=NULL)
 
bool BSDHasBattery ()
 
void BSDGetBatteryInfo (int *remaining, unsigned int *state)
 

Function Documentation

◆ BSDCountCpus()

int BSDCountCpus ( void  )

Definition at line 1127 of file kernel.cc.

References mib_cpu.

Referenced by BSDGetCPUSpeed(), BSDGetCPUTimes(), LoadMeter::checkResources(), and MeterMaker::makeMeters().

◆ BSDCPUInit()

void BSDCPUInit ( )

Definition at line 394 of file kernel.cc.

References OpenKDIfNeeded().

Referenced by CPUMeter::CPUMeter().

◆ BSDDiskInit()

int BSDDiskInit ( )

Definition at line 795 of file kernel.cc.

References OpenKDIfNeeded().

Referenced by DiskMeter::DiskMeter().

◆ BSDGetBatteryInfo()

void BSDGetBatteryInfo ( int *  remaining,
unsigned int *  state 
)

◆ BSDGetCPUSpeed()

int BSDGetCPUSpeed ( )

Definition at line 254 of file kernel.cc.

References BSDCountCpus().

Referenced by LoadMeter::checkevent().

◆ BSDGetCPUTimes()

void BSDGetCPUTimes ( uint64_t *  timesArray,
unsigned int  cpu = 0 
)

Definition at line 407 of file kernel.cc.

References BSDCountCpus().

Referenced by CPUMeter::getcputime().

◆ BSDGetDiskXFerBytes()

uint64_t BSDGetDiskXFerBytes ( uint64_t *  read_bytes,
uint64_t *  write_bytes 
)

Definition at line 804 of file kernel.cc.

References safe_kvm_read(), and safe_kvm_read_symbol().

Referenced by DiskMeter::getstats().

◆ BSDGetIntrStats()

void BSDGetIntrStats ( uint64_t *  intrCount,
unsigned int *  intrNbrs 
)

Definition at line 976 of file kernel.cc.

References nlst, and safe_kvm_read().

Referenced by IrqRateMeter::checkResources(), IrqRateMeter::getinfo(), and IntMeter::getirqs().

◆ BSDGetNetInOut()

void BSDGetNetInOut ( uint64_t *  inbytes,
uint64_t *  outbytes,
const char *  netIface,
bool  ignored 
)

Definition at line 492 of file kernel.cc.

References IFA_STAT.

Referenced by NetMeter::getstats(), and NetMeter::NetMeter().

◆ BSDGetPageStats()

void BSDGetPageStats ( uint64_t *  meminfo,
uint64_t *  pageinfo 
)

Definition at line 301 of file kernel.cc.

Referenced by MemMeter::getmeminfo(), PageMeter::getpageinfo(), and PageMeter::PageMeter().

◆ BSDGetSensor()

void BSDGetSensor ( const char *  name,
const char *  valname,
float *  value,
char *  unit = NULL 
)

◆ BSDGetSwapInfo()

void BSDGetSwapInfo ( uint64_t *  total,
uint64_t *  free 
)

Definition at line 531 of file kernel.cc.

References kd, and OpenKDIfNeeded().

Referenced by SwapMeter::getswapinfo().

◆ BSDHasBattery()

bool BSDHasBattery ( )

Definition at line 1532 of file kernel.cc.

References BSDGetSensor().

Referenced by MeterMaker::makeMeters().

◆ BSDInit()

void BSDInit ( )

Definition at line 198 of file kernel.cc.

References kernelFileName.

Referenced by XOSView::XOSView().

◆ BSDIntrInit()

int BSDIntrInit ( )

◆ BSDNetInit()

int BSDNetInit ( )

Definition at line 486 of file kernel.cc.

References OpenKDIfNeeded().

Referenced by NetMeter::NetMeter().

◆ BSDNumInts()

int BSDNumInts ( )

Definition at line 873 of file kernel.cc.

References nlst, and safe_kvm_read().

Referenced by IntMeter::IntMeter(), and IrqRateMeter::IrqRateMeter().

◆ BSDPageInit()

void BSDPageInit ( )

Definition at line 294 of file kernel.cc.

References OpenKDIfNeeded().

Referenced by MemMeter::MemMeter(), and PageMeter::PageMeter().

◆ BSDSwapInit()

int BSDSwapInit ( )

Definition at line 525 of file kernel.cc.

References OpenKDIfNeeded().

Referenced by SwapMeter::SwapMeter().

◆ SetKernelName()

void SetKernelName ( const char *  kernelName)

Definition at line 203 of file kernel.cc.

References kernelFileName.

Referenced by XOSView::checkArgs().