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
Go to the documentation of this file.
1 #ifndef __kernel_h__
2 #define __kernel_h__
3 
4 //
5 // NetBSD port:
6 // Copyright (c) 1995, 1996, 1997-2002 by Brian Grayson (bgrayson@netbsd.org)
7 //
8 // This file was written by Brian Grayson for the NetBSD and xosview
9 // projects.
10 // This file may be distributed under terms of the GPL or of the BSD
11 // license, whichever you choose. The full license notices are
12 // contained in the files COPYING.GPL and COPYING.BSD, which you
13 // should have received. If not, contact one of the xosview
14 // authors for a copy.
15 //
16 
17 #include "defines.h"
18 
19 void
20 BSDInit();
21 
22 void
23 SetKernelName(const char* kernelName);
24 
25 int
27 
28 void
29 BSDPageInit();
30 
31 void
32 BSDGetPageStats(uint64_t *meminfo, uint64_t *pageinfo);
33 
34 void
35 BSDCPUInit();
36 
37 void
38 BSDGetCPUTimes(uint64_t *timesArray, unsigned int cpu = 0);
39 
40 int
41 BSDNetInit();
42 
43 void
44 BSDGetNetInOut(uint64_t *inbytes, uint64_t *outbytes, const char *netIface, bool ignored);
45 
46 int
47 BSDSwapInit();
48 
49 void
50 BSDGetSwapInfo(uint64_t *total, uint64_t *free);
51 
52 int
53 BSDDiskInit();
54 
55 uint64_t
56 BSDGetDiskXFerBytes(uint64_t *read_bytes, uint64_t *write_bytes);
57 
58 int
59 BSDIntrInit();
60 
61 int
62 BSDNumInts();
63 
64 void
65 BSDGetIntrStats(uint64_t *intrCount, unsigned int *intrNbrs);
66 
67 int
68 BSDCountCpus(void);
69 
70 #if defined(__i386__) || defined(__x86_64)
71 unsigned int
72 BSDGetCPUTemperature(float *temps, float *tjmax);
73 #endif
74 
75 void
76 BSDGetSensor(const char *name, const char *valname, float *value, char *unit = NULL);
77 
78 bool
80 
81 void
82 BSDGetBatteryInfo(int *remaining, unsigned int *state);
83 
84 
85 #endif
void BSDGetCPUTimes(uint64_t *timesArray, unsigned int cpu=0)
Definition: kernel.cc:407
void BSDGetSwapInfo(uint64_t *total, uint64_t *free)
Definition: kernel.cc:531
uint64_t BSDGetDiskXFerBytes(uint64_t *read_bytes, uint64_t *write_bytes)
Definition: kernel.cc:804
bool BSDHasBattery()
Definition: kernel.cc:1532
void BSDGetNetInOut(uint64_t *inbytes, uint64_t *outbytes, const char *netIface, bool ignored)
Definition: kernel.cc:492
int BSDSwapInit()
Definition: kernel.cc:525
int BSDNumInts()
Definition: kernel.cc:873
void SetKernelName(const char *kernelName)
Definition: kernel.cc:203
void BSDGetBatteryInfo(int *remaining, unsigned int *state)
Definition: kernel.cc:1585
void BSDCPUInit()
Definition: kernel.cc:394
void BSDPageInit()
Definition: kernel.cc:294
void BSDGetIntrStats(uint64_t *intrCount, unsigned int *intrNbrs)
Definition: kernel.cc:976
int BSDNetInit()
Definition: kernel.cc:486
int BSDCountCpus(void)
Definition: kernel.cc:1127
int BSDDiskInit()
Definition: kernel.cc:795
void BSDInit()
Definition: kernel.cc:198
void BSDGetPageStats(uint64_t *meminfo, uint64_t *pageinfo)
Definition: kernel.cc:301
int BSDIntrInit()
Definition: kernel.cc:855
void BSDGetSensor(const char *name, const char *valname, float *value, char *unit=NULL)
Definition: kernel.cc:1275
int BSDGetCPUSpeed()
Definition: kernel.cc:254