00001
00002
00003
00004 #ifndef _PPC_SYS_SYSCTL_H_
00005 #define _PPC_SYS_SYSCTL_H_
00006
00007
00008
00009
00010 #define _LINUX_SYSCTL_H
00011 #define _SYS_SYSCTL_H
00012
00013
00014
00015
00016 #define CTL_UNSPEC 0
00017 #define CTL_KERN 1
00018 #define CTL_VM 2
00019 #define CTL_VFS 3
00020 #define CTL_NET 4
00021 #define CTL_DEBUG 5
00022 #define CTL_HW 6
00023 #define CTL_MACHDEP 7
00024 #define CTL_USER 8
00025 #define CTL_MAXID 9
00026
00027
00028
00029
00030
00031 #define HW_MACHINE 1
00032 #define HW_MODEL 2
00033 #define HW_NCPU 3
00034 #define HW_BYTEORDER 4
00035 #define HW_PHYSMEM 5
00036 #define HW_USERMEM 6
00037 #define HW_PAGESIZE 7
00038 #define HW_DISKNAMES 8
00039 #define HW_DISKSTATS 9
00040 #define HW_EPOCH 10
00041 #define HW_FLOATINGPT 11
00042 #define HW_MACHINE_ARCH 12
00043 #define HW_VECTORUNIT 13
00044 #define HW_BUS_FREQ 14
00045 #define HW_CPU_FREQ 15
00046 #define HW_CACHELINE 16
00047 #define HW_L1ICACHESIZE 17
00048 #define HW_L1DCACHESIZE 18
00049 #define HW_L2SETTINGS 19
00050 #define HW_L2CACHESIZE 20
00051 #define HW_L3SETTINGS 21
00052 #define HW_L3CACHESIZE 22
00053 #define HW_TB_FREQ 23
00054 #define HW_MEMSIZE 24
00055 #define HW_AVAILCPU 25
00056 #define HW_MAXID 26
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