• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/FE/ppcFrontEnd/osx_headers/sys/sysctl.h

00001 /*
00002 ** This is the stuff we need on x86 from Apple's sysctl.h
00003 */
00004 #ifndef _PPC_SYS_SYSCTL_H_
00005 #define _PPC_SYS_SYSCTL_H_
00006 
00007 /*
00008 ** Define these so the native sysctl stuff does not get included later
00009 */
00010 #define _LINUX_SYSCTL_H
00011 #define _SYS_SYSCTL_H
00012 
00013 /*
00014  * Top-level identifiers
00015  */
00016 #define CTL_UNSPEC      0               /* unused */
00017 #define CTL_KERN        1               /* "high kernel": proc, limits */
00018 #define CTL_VM          2               /* virtual memory */
00019 #define CTL_VFS         3               /* file system, mount type is next */
00020 #define CTL_NET         4               /* network, see socket.h */
00021 #define CTL_DEBUG       5               /* debugging parameters */
00022 #define CTL_HW          6               /* generic cpu/io */
00023 #define CTL_MACHDEP     7               /* machine dependent */
00024 #define CTL_USER        8               /* user-level */
00025 #define CTL_MAXID       9               /* number of valid top-level ids */
00026 
00027 
00028 /*
00029  * CTL_HW identifiers
00030  */
00031 #define HW_MACHINE       1              /* string: machine class */
00032 #define HW_MODEL         2              /* string: specific machine model */
00033 #define HW_NCPU          3              /* int: number of cpus */
00034 #define HW_BYTEORDER     4              /* int: machine byte order */
00035 #define HW_PHYSMEM       5              /* int: total memory */
00036 #define HW_USERMEM       6              /* int: non-kernel memory */
00037 #define HW_PAGESIZE      7              /* int: software page size */
00038 #define HW_DISKNAMES     8              /* strings: disk drive names */
00039 #define HW_DISKSTATS     9              /* struct: diskstats[] */
00040 #define HW_EPOCH        10              /* int: 0 for Legacy, else NewWorld */
00041 #define HW_FLOATINGPT   11              /* int: has HW floating point? */
00042 #define HW_MACHINE_ARCH 12              /* string: machine architecture */
00043 #define HW_VECTORUNIT   13              /* int: has HW vector unit? */
00044 #define HW_BUS_FREQ     14              /* int: Bus Frequency */
00045 #define HW_CPU_FREQ     15              /* int: CPU Frequency */
00046 #define HW_CACHELINE    16              /* int: Cache Line Size in Bytes */
00047 #define HW_L1ICACHESIZE 17              /* int: L1 I Cache Size in Bytes */
00048 #define HW_L1DCACHESIZE 18              /* int: L1 D Cache Size in Bytes */
00049 #define HW_L2SETTINGS   19              /* int: L2 Cache Settings */
00050 #define HW_L2CACHESIZE  20              /* int: L2 Cache Size in Bytes */
00051 #define HW_L3SETTINGS   21              /* int: L3 Cache Settings */
00052 #define HW_L3CACHESIZE  22              /* int: L3 Cache Size in Bytes */
00053 #define HW_TB_FREQ      23              /* int: Bus Frequency */
00054 #define HW_MEMSIZE      24              /* uint64_t: physical ram size */
00055 #define HW_AVAILCPU     25              /* int: number of available CPUs */
00056 #define HW_MAXID        26              /* number of valid hw ids */
00057 
00058 #ifdef __cplusplus
00059 extern "C" {
00060 #endif
00061 int     sysctl(int *, u_int, void *, size_t *, void *, size_t);
00062 int     sysctlbyname(const char *, void *, size_t *, void *, size_t);
00063 int     sysctlnametomib(const char *, int *, size_t *);
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif  /* !_PPC_SYS_SYSCTL_H_ */

Generated on Fri Oct 22 2010 11:02:21 for SST by  doxygen 1.7.1