File: kernel.h

package info (click to toggle)
xosview 1.16-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,100 kB
  • ctags: 1,434
  • sloc: cpp: 11,003; makefile: 167; ansic: 32; awk: 13; sh: 8
file content (88 lines) | stat: -rw-r--r-- 1,582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef __kernel_h__
#define __kernel_h__

//
//  NetBSD port:
//  Copyright (c) 1995, 1996, 1997-2002 by Brian Grayson (bgrayson@netbsd.org)
//
//  This file was written by Brian Grayson for the NetBSD and xosview
//    projects.
//  This file may be distributed under terms of the GPL or of the BSD
//    license, whichever you choose.  The full license notices are
//    contained in the files COPYING.GPL and COPYING.BSD, which you
//    should have received.  If not, contact one of the xosview
//    authors for a copy.
//

#include <sys/types.h>
#include "defines.h"

void
BSDInit();

void
SetKernelName(const char* kernelName);

int
BSDGetCPUSpeed();

void
BSDPageInit();

void
BSDGetPageStats(u_int64_t *meminfo, u_int64_t *pageinfo);

void
BSDCPUInit();

void
#if defined(XOSVIEW_NETBSD) || defined(XOSVIEW_DFBSD)
BSDGetCPUTimes(u_int64_t *timesArray);
#else
BSDGetCPUTimes(long *timesArray);
#endif

int
BSDNetInit();

void
BSDGetNetInOut(unsigned long long *inbytes, unsigned long long *outbytes, const char *netIface, bool ignored);

int
BSDSwapInit();

void
BSDGetSwapInfo(u_int64_t* total, u_int64_t* free);

int
BSDDiskInit();

u_int64_t
BSDGetDiskXFerBytes(u_int64_t *read_bytes, u_int64_t *write_bytes);

int
BSDIntrInit();

int
BSDNumInts();

void
BSDGetIntrStats(unsigned long *intrCount, unsigned int *intrNbrs);

int
BSDCountCpus(void);

void
BSDGetCPUTemperature(float *temps, float *tjmax);

void
BSDGetSensor(const char *name, const char *valname, float *value);

bool
BSDHasBattery();

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


#endif