"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/bsd/kernel.h" (11 Jul 2020, 1524 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "kernel.h" see the Fossies "Dox" file reference documentation.

    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
   26 BSDGetCPUSpeed();
   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
   79 BSDHasBattery();
   80 
   81 void
   82 BSDGetBatteryInfo(int *remaining, unsigned int *state);
   83 
   84 
   85 #endif