sysctl.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. /*
  2. * sysctl.h: General linux system control interface
  3. *
  4. * Begun 24 March 1995, Stephen Tweedie
  5. *
  6. ****************************************************************
  7. ****************************************************************
  8. **
  9. ** WARNING:
  10. ** The values in this file are exported to user space via
  11. ** the sysctl() binary interface. Do *NOT* change the
  12. ** numbering of any existing values here, and do not change
  13. ** any numbers within any one set of values. If you have to
  14. ** redefine an existing interface, use a new number for it.
  15. ** The kernel will then return -ENOTDIR to any application using
  16. ** the old binary interface.
  17. **
  18. ****************************************************************
  19. ****************************************************************
  20. */
  21. #ifndef _LINUX_SYSCTL_H
  22. #define _LINUX_SYSCTL_H
  23. #include <linux/kernel.h>
  24. #include <linux/types.h>
  25. struct completion;
  26. #define CTL_MAXNAME 10 /* how many path components do we allow in a
  27. call to sysctl? In other words, what is
  28. the largest acceptable value for the nlen
  29. member of a struct __sysctl_args to have? */
  30. struct __sysctl_args {
  31. int *name;
  32. int nlen;
  33. void *oldval;
  34. size_t *oldlenp;
  35. void *newval;
  36. size_t newlen;
  37. unsigned long __unused[4];
  38. };
  39. /* Define sysctl names first */
  40. /* Top-level names: */
  41. enum
  42. {
  43. CTL_KERN=1, /* General kernel info and control */
  44. CTL_VM=2, /* VM management */
  45. CTL_NET=3, /* Networking */
  46. CTL_PROC=4, /* removal breaks strace(1) compilation */
  47. CTL_FS=5, /* Filesystems */
  48. CTL_DEBUG=6, /* Debugging */
  49. CTL_DEV=7, /* Devices */
  50. CTL_BUS=8, /* Busses */
  51. CTL_ABI=9, /* Binary emulation */
  52. CTL_CPU=10, /* CPU stuff (speed scaling, etc) */
  53. CTL_ARLAN=254, /* arlan wireless driver */
  54. CTL_S390DBF=5677, /* s390 debug */
  55. CTL_SUNRPC=7249, /* sunrpc debug */
  56. CTL_PM=9899, /* frv power management */
  57. CTL_FRV=9898, /* frv specific sysctls */
  58. };
  59. /* CTL_BUS names: */
  60. enum
  61. {
  62. CTL_BUS_ISA=1 /* ISA */
  63. };
  64. /* /proc/sys/fs/inotify/ */
  65. enum
  66. {
  67. INOTIFY_MAX_USER_INSTANCES=1, /* max instances per user */
  68. INOTIFY_MAX_USER_WATCHES=2, /* max watches per user */
  69. INOTIFY_MAX_QUEUED_EVENTS=3 /* max queued events per instance */
  70. };
  71. /* CTL_KERN names: */
  72. enum
  73. {
  74. KERN_OSTYPE=1, /* string: system version */
  75. KERN_OSRELEASE=2, /* string: system release */
  76. KERN_OSREV=3, /* int: system revision */
  77. KERN_VERSION=4, /* string: compile time info */
  78. KERN_SECUREMASK=5, /* struct: maximum rights mask */
  79. KERN_PROF=6, /* table: profiling information */
  80. KERN_NODENAME=7, /* string: hostname */
  81. KERN_DOMAINNAME=8, /* string: domainname */
  82. KERN_PANIC=15, /* int: panic timeout */
  83. KERN_REALROOTDEV=16, /* real root device to mount after initrd */
  84. KERN_SPARC_REBOOT=21, /* reboot command on Sparc */
  85. KERN_CTLALTDEL=22, /* int: allow ctl-alt-del to reboot */
  86. KERN_PRINTK=23, /* struct: control printk logging parameters */
  87. KERN_NAMETRANS=24, /* Name translation */
  88. KERN_PPC_HTABRECLAIM=25, /* turn htab reclaimation on/off on PPC */
  89. KERN_PPC_ZEROPAGED=26, /* turn idle page zeroing on/off on PPC */
  90. KERN_PPC_POWERSAVE_NAP=27, /* use nap mode for power saving */
  91. KERN_MODPROBE=28, /* string: modprobe path */
  92. KERN_SG_BIG_BUFF=29, /* int: sg driver reserved buffer size */
  93. KERN_ACCT=30, /* BSD process accounting parameters */
  94. KERN_PPC_L2CR=31, /* l2cr register on PPC */
  95. KERN_RTSIGNR=32, /* Number of rt sigs queued */
  96. KERN_RTSIGMAX=33, /* Max queuable */
  97. KERN_SHMMAX=34, /* long: Maximum shared memory segment */
  98. KERN_MSGMAX=35, /* int: Maximum size of a messege */
  99. KERN_MSGMNB=36, /* int: Maximum message queue size */
  100. KERN_MSGPOOL=37, /* int: Maximum system message pool size */
  101. KERN_SYSRQ=38, /* int: Sysreq enable */
  102. KERN_MAX_THREADS=39, /* int: Maximum nr of threads in the system */
  103. KERN_RANDOM=40, /* Random driver */
  104. KERN_SHMALL=41, /* int: Maximum size of shared memory */
  105. KERN_MSGMNI=42, /* int: msg queue identifiers */
  106. KERN_SEM=43, /* struct: sysv semaphore limits */
  107. KERN_SPARC_STOP_A=44, /* int: Sparc Stop-A enable */
  108. KERN_SHMMNI=45, /* int: shm array identifiers */
  109. KERN_OVERFLOWUID=46, /* int: overflow UID */
  110. KERN_OVERFLOWGID=47, /* int: overflow GID */
  111. KERN_SHMPATH=48, /* string: path to shm fs */
  112. KERN_HOTPLUG=49, /* string: path to uevent helper (deprecated) */
  113. KERN_IEEE_EMULATION_WARNINGS=50, /* int: unimplemented ieee instructions */
  114. KERN_S390_USER_DEBUG_LOGGING=51, /* int: dumps of user faults */
  115. KERN_CORE_USES_PID=52, /* int: use core or core.%pid */
  116. KERN_TAINTED=53, /* int: various kernel tainted flags */
  117. KERN_CADPID=54, /* int: PID of the process to notify on CAD */
  118. KERN_PIDMAX=55, /* int: PID # limit */
  119. KERN_CORE_PATTERN=56, /* string: pattern for core-file names */
  120. KERN_PANIC_ON_OOPS=57, /* int: whether we will panic on an oops */
  121. KERN_HPPA_PWRSW=58, /* int: hppa soft-power enable */
  122. KERN_HPPA_UNALIGNED=59, /* int: hppa unaligned-trap enable */
  123. KERN_PRINTK_RATELIMIT=60, /* int: tune printk ratelimiting */
  124. KERN_PRINTK_RATELIMIT_BURST=61, /* int: tune printk ratelimiting */
  125. KERN_PTY=62, /* dir: pty driver */
  126. KERN_NGROUPS_MAX=63, /* int: NGROUPS_MAX */
  127. KERN_SPARC_SCONS_PWROFF=64, /* int: serial console power-off halt */
  128. KERN_HZ_TIMER=65, /* int: hz timer on or off */
  129. KERN_UNKNOWN_NMI_PANIC=66, /* int: unknown nmi panic flag */
  130. KERN_BOOTLOADER_TYPE=67, /* int: boot loader type */
  131. KERN_RANDOMIZE=68, /* int: randomize virtual address space */
  132. KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */
  133. KERN_SPIN_RETRY=70, /* int: number of spinlock retries */
  134. KERN_ACPI_VIDEO_FLAGS=71, /* int: flags for setting up video after ACPI sleep */
  135. KERN_IA64_UNALIGNED=72, /* int: ia64 unaligned userland trap enable */
  136. KERN_COMPAT_LOG=73, /* int: print compat layer messages */
  137. KERN_MAX_LOCK_DEPTH=74, /* int: rtmutex's maximum lock depth */
  138. KERN_NMI_WATCHDOG=75, /* int: enable/disable nmi watchdog */
  139. KERN_PANIC_ON_NMI=76, /* int: whether we will panic on an unrecovered */
  140. KERN_PANIC_ON_WARN=77, /* int: call panic() in WARN() functions */
  141. };
  142. /* CTL_VM names: */
  143. enum
  144. {
  145. VM_UNUSED1=1, /* was: struct: Set vm swapping control */
  146. VM_UNUSED2=2, /* was; int: Linear or sqrt() swapout for hogs */
  147. VM_UNUSED3=3, /* was: struct: Set free page thresholds */
  148. VM_UNUSED4=4, /* Spare */
  149. VM_OVERCOMMIT_MEMORY=5, /* Turn off the virtual memory safety limit */
  150. VM_UNUSED5=6, /* was: struct: Set buffer memory thresholds */
  151. VM_UNUSED7=7, /* was: struct: Set cache memory thresholds */
  152. VM_UNUSED8=8, /* was: struct: Control kswapd behaviour */
  153. VM_UNUSED9=9, /* was: struct: Set page table cache parameters */
  154. VM_PAGE_CLUSTER=10, /* int: set number of pages to swap together */
  155. VM_DIRTY_BACKGROUND=11, /* dirty_background_ratio */
  156. VM_DIRTY_RATIO=12, /* dirty_ratio */
  157. VM_DIRTY_WB_CS=13, /* dirty_writeback_centisecs */
  158. VM_DIRTY_EXPIRE_CS=14, /* dirty_expire_centisecs */
  159. VM_NR_PDFLUSH_THREADS=15, /* nr_pdflush_threads */
  160. VM_OVERCOMMIT_RATIO=16, /* percent of RAM to allow overcommit in */
  161. VM_PAGEBUF=17, /* struct: Control pagebuf parameters */
  162. VM_HUGETLB_PAGES=18, /* int: Number of available Huge Pages */
  163. VM_SWAPPINESS=19, /* Tendency to steal mapped memory */
  164. VM_LOWMEM_RESERVE_RATIO=20,/* reservation ratio for lower memory zones */
  165. VM_MIN_FREE_KBYTES=21, /* Minimum free kilobytes to maintain */
  166. VM_MAX_MAP_COUNT=22, /* int: Maximum number of mmaps/address-space */
  167. VM_LAPTOP_MODE=23, /* vm laptop mode */
  168. VM_BLOCK_DUMP=24, /* block dump mode */
  169. VM_HUGETLB_GROUP=25, /* permitted hugetlb group */
  170. VM_VFS_CACHE_PRESSURE=26, /* dcache/icache reclaim pressure */
  171. VM_LEGACY_VA_LAYOUT=27, /* legacy/compatibility virtual address space layout */
  172. VM_SWAP_TOKEN_TIMEOUT=28, /* default time for token time out */
  173. VM_DROP_PAGECACHE=29, /* int: nuke lots of pagecache */
  174. VM_PERCPU_PAGELIST_FRACTION=30,/* int: fraction of pages in each percpu_pagelist */
  175. VM_ZONE_RECLAIM_MODE=31, /* reclaim local zone memory before going off node */
  176. VM_MIN_UNMAPPED=32, /* Set min percent of unmapped pages */
  177. VM_PANIC_ON_OOM=33, /* panic at out-of-memory */
  178. VM_VDSO_ENABLED=34, /* map VDSO into new processes? */
  179. VM_MIN_SLAB=35, /* Percent pages ignored by zone reclaim */
  180. };
  181. /* CTL_NET names: */
  182. enum
  183. {
  184. NET_CORE=1,
  185. NET_ETHER=2,
  186. NET_802=3,
  187. NET_UNIX=4,
  188. NET_IPV4=5,
  189. NET_IPX=6,
  190. NET_ATALK=7,
  191. NET_NETROM=8,
  192. NET_AX25=9,
  193. NET_BRIDGE=10,
  194. NET_ROSE=11,
  195. NET_IPV6=12,
  196. NET_X25=13,
  197. NET_TR=14,
  198. NET_DECNET=15,
  199. NET_ECONET=16,
  200. NET_SCTP=17,
  201. NET_LLC=18,
  202. NET_NETFILTER=19,
  203. NET_DCCP=20,
  204. NET_IRDA=412,
  205. };
  206. /* /proc/sys/kernel/random */
  207. enum
  208. {
  209. RANDOM_POOLSIZE=1,
  210. RANDOM_ENTROPY_COUNT=2,
  211. RANDOM_READ_THRESH=3,
  212. RANDOM_WRITE_THRESH=4,
  213. RANDOM_BOOT_ID=5,
  214. RANDOM_UUID=6
  215. };
  216. /* /proc/sys/kernel/pty */
  217. enum
  218. {
  219. PTY_MAX=1,
  220. PTY_NR=2
  221. };
  222. /* /proc/sys/bus/isa */
  223. enum
  224. {
  225. BUS_ISA_MEM_BASE=1,
  226. BUS_ISA_PORT_BASE=2,
  227. BUS_ISA_PORT_SHIFT=3
  228. };
  229. /* /proc/sys/net/core */
  230. enum
  231. {
  232. NET_CORE_WMEM_MAX=1,
  233. NET_CORE_RMEM_MAX=2,
  234. NET_CORE_WMEM_DEFAULT=3,
  235. NET_CORE_RMEM_DEFAULT=4,
  236. /* was NET_CORE_DESTROY_DELAY */
  237. NET_CORE_MAX_BACKLOG=6,
  238. NET_CORE_FASTROUTE=7,
  239. NET_CORE_MSG_COST=8,
  240. NET_CORE_MSG_BURST=9,
  241. NET_CORE_OPTMEM_MAX=10,
  242. NET_CORE_HOT_LIST_LENGTH=11,
  243. NET_CORE_DIVERT_VERSION=12,
  244. NET_CORE_NO_CONG_THRESH=13,
  245. NET_CORE_NO_CONG=14,
  246. NET_CORE_LO_CONG=15,
  247. NET_CORE_MOD_CONG=16,
  248. NET_CORE_DEV_WEIGHT=17,
  249. NET_CORE_SOMAXCONN=18,
  250. NET_CORE_BUDGET=19,
  251. NET_CORE_AEVENT_ETIME=20,
  252. NET_CORE_AEVENT_RSEQTH=21,
  253. NET_CORE_WARNINGS=22,
  254. };
  255. /* /proc/sys/net/ethernet */
  256. /* /proc/sys/net/802 */
  257. /* /proc/sys/net/unix */
  258. enum
  259. {
  260. NET_UNIX_DESTROY_DELAY=1,
  261. NET_UNIX_DELETE_DELAY=2,
  262. NET_UNIX_MAX_DGRAM_QLEN=3,
  263. };
  264. /* /proc/sys/net/netfilter */
  265. enum
  266. {
  267. NET_NF_CONNTRACK_MAX=1,
  268. NET_NF_CONNTRACK_TCP_TIMEOUT_SYN_SENT=2,
  269. NET_NF_CONNTRACK_TCP_TIMEOUT_SYN_RECV=3,
  270. NET_NF_CONNTRACK_TCP_TIMEOUT_ESTABLISHED=4,
  271. NET_NF_CONNTRACK_TCP_TIMEOUT_FIN_WAIT=5,
  272. NET_NF_CONNTRACK_TCP_TIMEOUT_CLOSE_WAIT=6,
  273. NET_NF_CONNTRACK_TCP_TIMEOUT_LAST_ACK=7,
  274. NET_NF_CONNTRACK_TCP_TIMEOUT_TIME_WAIT=8,
  275. NET_NF_CONNTRACK_TCP_TIMEOUT_CLOSE=9,
  276. NET_NF_CONNTRACK_UDP_TIMEOUT=10,
  277. NET_NF_CONNTRACK_UDP_TIMEOUT_STREAM=11,
  278. NET_NF_CONNTRACK_ICMP_TIMEOUT=12,
  279. NET_NF_CONNTRACK_GENERIC_TIMEOUT=13,
  280. NET_NF_CONNTRACK_BUCKETS=14,
  281. NET_NF_CONNTRACK_LOG_INVALID=15,
  282. NET_NF_CONNTRACK_TCP_TIMEOUT_MAX_RETRANS=16,
  283. NET_NF_CONNTRACK_TCP_LOOSE=17,
  284. NET_NF_CONNTRACK_TCP_BE_LIBERAL=18,
  285. NET_NF_CONNTRACK_TCP_MAX_RETRANS=19,
  286. NET_NF_CONNTRACK_SCTP_TIMEOUT_CLOSED=20,
  287. NET_NF_CONNTRACK_SCTP_TIMEOUT_COOKIE_WAIT=21,
  288. NET_NF_CONNTRACK_SCTP_TIMEOUT_COOKIE_ECHOED=22,
  289. NET_NF_CONNTRACK_SCTP_TIMEOUT_ESTABLISHED=23,
  290. NET_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_SENT=24,
  291. NET_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_RECD=25,
  292. NET_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_ACK_SENT=26,
  293. NET_NF_CONNTRACK_COUNT=27,
  294. NET_NF_CONNTRACK_ICMPV6_TIMEOUT=28,
  295. NET_NF_CONNTRACK_FRAG6_TIMEOUT=29,
  296. NET_NF_CONNTRACK_FRAG6_LOW_THRESH=30,
  297. NET_NF_CONNTRACK_FRAG6_HIGH_THRESH=31,
  298. NET_NF_CONNTRACK_CHECKSUM=32,
  299. };
  300. /* /proc/sys/net/ipv4 */
  301. enum
  302. {
  303. /* v2.0 compatibile variables */
  304. NET_IPV4_FORWARD=8,
  305. NET_IPV4_DYNADDR=9,
  306. NET_IPV4_CONF=16,
  307. NET_IPV4_NEIGH=17,
  308. NET_IPV4_ROUTE=18,
  309. NET_IPV4_FIB_HASH=19,
  310. NET_IPV4_NETFILTER=20,
  311. NET_IPV4_TCP_TIMESTAMPS=33,
  312. NET_IPV4_TCP_WINDOW_SCALING=34,
  313. NET_IPV4_TCP_SACK=35,
  314. NET_IPV4_TCP_RETRANS_COLLAPSE=36,
  315. NET_IPV4_DEFAULT_TTL=37,
  316. NET_IPV4_AUTOCONFIG=38,
  317. NET_IPV4_NO_PMTU_DISC=39,
  318. NET_IPV4_TCP_SYN_RETRIES=40,
  319. NET_IPV4_IPFRAG_HIGH_THRESH=41,
  320. NET_IPV4_IPFRAG_LOW_THRESH=42,
  321. NET_IPV4_IPFRAG_TIME=43,
  322. NET_IPV4_TCP_MAX_KA_PROBES=44,
  323. NET_IPV4_TCP_KEEPALIVE_TIME=45,
  324. NET_IPV4_TCP_KEEPALIVE_PROBES=46,
  325. NET_IPV4_TCP_RETRIES1=47,
  326. NET_IPV4_TCP_RETRIES2=48,
  327. NET_IPV4_TCP_FIN_TIMEOUT=49,
  328. NET_IPV4_IP_MASQ_DEBUG=50,
  329. NET_TCP_SYNCOOKIES=51,
  330. NET_TCP_STDURG=52,
  331. NET_TCP_RFC1337=53,
  332. NET_TCP_SYN_TAILDROP=54,
  333. NET_TCP_MAX_SYN_BACKLOG=55,
  334. NET_IPV4_LOCAL_PORT_RANGE=56,
  335. NET_IPV4_ICMP_ECHO_IGNORE_ALL=57,
  336. NET_IPV4_ICMP_ECHO_IGNORE_BROADCASTS=58,
  337. NET_IPV4_ICMP_SOURCEQUENCH_RATE=59,
  338. NET_IPV4_ICMP_DESTUNREACH_RATE=60,
  339. NET_IPV4_ICMP_TIMEEXCEED_RATE=61,
  340. NET_IPV4_ICMP_PARAMPROB_RATE=62,
  341. NET_IPV4_ICMP_ECHOREPLY_RATE=63,
  342. NET_IPV4_ICMP_IGNORE_BOGUS_ERROR_RESPONSES=64,
  343. NET_IPV4_IGMP_MAX_MEMBERSHIPS=65,
  344. NET_TCP_TW_RECYCLE=66,
  345. NET_IPV4_ALWAYS_DEFRAG=67,
  346. NET_IPV4_TCP_KEEPALIVE_INTVL=68,
  347. NET_IPV4_INET_PEER_THRESHOLD=69,
  348. NET_IPV4_INET_PEER_MINTTL=70,
  349. NET_IPV4_INET_PEER_MAXTTL=71,
  350. NET_IPV4_INET_PEER_GC_MINTIME=72,
  351. NET_IPV4_INET_PEER_GC_MAXTIME=73,
  352. NET_TCP_ORPHAN_RETRIES=74,
  353. NET_TCP_ABORT_ON_OVERFLOW=75,
  354. NET_TCP_SYNACK_RETRIES=76,
  355. NET_TCP_MAX_ORPHANS=77,
  356. NET_TCP_MAX_TW_BUCKETS=78,
  357. NET_TCP_FACK=79,
  358. NET_TCP_REORDERING=80,
  359. NET_TCP_ECN=81,
  360. NET_TCP_DSACK=82,
  361. NET_TCP_MEM=83,
  362. NET_TCP_WMEM=84,
  363. NET_TCP_RMEM=85,
  364. NET_TCP_APP_WIN=86,
  365. NET_TCP_ADV_WIN_SCALE=87,
  366. NET_IPV4_NONLOCAL_BIND=88,
  367. NET_IPV4_ICMP_RATELIMIT=89,
  368. NET_IPV4_ICMP_RATEMASK=90,
  369. NET_TCP_TW_REUSE=91,
  370. NET_TCP_FRTO=92,
  371. NET_TCP_LOW_LATENCY=93,
  372. NET_IPV4_IPFRAG_SECRET_INTERVAL=94,
  373. NET_IPV4_IGMP_MAX_MSF=96,
  374. NET_TCP_NO_METRICS_SAVE=97,
  375. NET_TCP_DEFAULT_WIN_SCALE=105,
  376. NET_TCP_MODERATE_RCVBUF=106,
  377. NET_TCP_TSO_WIN_DIVISOR=107,
  378. NET_TCP_BIC_BETA=108,
  379. NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR=109,
  380. NET_TCP_CONG_CONTROL=110,
  381. NET_TCP_ABC=111,
  382. NET_IPV4_IPFRAG_MAX_DIST=112,
  383. NET_TCP_MTU_PROBING=113,
  384. NET_TCP_BASE_MSS=114,
  385. NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS=115,
  386. NET_TCP_DMA_COPYBREAK=116,
  387. NET_TCP_SLOW_START_AFTER_IDLE=117,
  388. NET_CIPSOV4_CACHE_ENABLE=118,
  389. NET_CIPSOV4_CACHE_BUCKET_SIZE=119,
  390. NET_CIPSOV4_RBM_OPTFMT=120,
  391. NET_CIPSOV4_RBM_STRICTVALID=121,
  392. NET_TCP_AVAIL_CONG_CONTROL=122,
  393. NET_TCP_ALLOWED_CONG_CONTROL=123,
  394. NET_TCP_MAX_SSTHRESH=124,
  395. NET_TCP_FRTO_RESPONSE=125,
  396. };
  397. enum {
  398. NET_IPV4_ROUTE_FLUSH=1,
  399. NET_IPV4_ROUTE_MIN_DELAY=2, /* obsolete since 2.6.25 */
  400. NET_IPV4_ROUTE_MAX_DELAY=3, /* obsolete since 2.6.25 */
  401. NET_IPV4_ROUTE_GC_THRESH=4,
  402. NET_IPV4_ROUTE_MAX_SIZE=5,
  403. NET_IPV4_ROUTE_GC_MIN_INTERVAL=6,
  404. NET_IPV4_ROUTE_GC_TIMEOUT=7,
  405. NET_IPV4_ROUTE_GC_INTERVAL=8, /* obsolete since 2.6.38 */
  406. NET_IPV4_ROUTE_REDIRECT_LOAD=9,
  407. NET_IPV4_ROUTE_REDIRECT_NUMBER=10,
  408. NET_IPV4_ROUTE_REDIRECT_SILENCE=11,
  409. NET_IPV4_ROUTE_ERROR_COST=12,
  410. NET_IPV4_ROUTE_ERROR_BURST=13,
  411. NET_IPV4_ROUTE_GC_ELASTICITY=14,
  412. NET_IPV4_ROUTE_MTU_EXPIRES=15,
  413. NET_IPV4_ROUTE_MIN_PMTU=16,
  414. NET_IPV4_ROUTE_MIN_ADVMSS=17,
  415. NET_IPV4_ROUTE_SECRET_INTERVAL=18,
  416. NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS=19,
  417. };
  418. enum
  419. {
  420. NET_PROTO_CONF_ALL=-2,
  421. NET_PROTO_CONF_DEFAULT=-3
  422. /* And device ifindices ... */
  423. };
  424. enum
  425. {
  426. NET_IPV4_CONF_FORWARDING=1,
  427. NET_IPV4_CONF_MC_FORWARDING=2,
  428. NET_IPV4_CONF_PROXY_ARP=3,
  429. NET_IPV4_CONF_ACCEPT_REDIRECTS=4,
  430. NET_IPV4_CONF_SECURE_REDIRECTS=5,
  431. NET_IPV4_CONF_SEND_REDIRECTS=6,
  432. NET_IPV4_CONF_SHARED_MEDIA=7,
  433. NET_IPV4_CONF_RP_FILTER=8,
  434. NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE=9,
  435. NET_IPV4_CONF_BOOTP_RELAY=10,
  436. NET_IPV4_CONF_LOG_MARTIANS=11,
  437. NET_IPV4_CONF_TAG=12,
  438. NET_IPV4_CONF_ARPFILTER=13,
  439. NET_IPV4_CONF_MEDIUM_ID=14,
  440. NET_IPV4_CONF_NOXFRM=15,
  441. NET_IPV4_CONF_NOPOLICY=16,
  442. NET_IPV4_CONF_FORCE_IGMP_VERSION=17,
  443. NET_IPV4_CONF_ARP_ANNOUNCE=18,
  444. NET_IPV4_CONF_ARP_IGNORE=19,
  445. NET_IPV4_CONF_PROMOTE_SECONDARIES=20,
  446. NET_IPV4_CONF_ARP_ACCEPT=21,
  447. NET_IPV4_CONF_ARP_NOTIFY=22,
  448. };
  449. /* /proc/sys/net/ipv4/netfilter */
  450. enum
  451. {
  452. NET_IPV4_NF_CONNTRACK_MAX=1,
  453. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_SYN_SENT=2,
  454. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_SYN_RECV=3,
  455. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_ESTABLISHED=4,
  456. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_FIN_WAIT=5,
  457. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_CLOSE_WAIT=6,
  458. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_LAST_ACK=7,
  459. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_TIME_WAIT=8,
  460. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_CLOSE=9,
  461. NET_IPV4_NF_CONNTRACK_UDP_TIMEOUT=10,
  462. NET_IPV4_NF_CONNTRACK_UDP_TIMEOUT_STREAM=11,
  463. NET_IPV4_NF_CONNTRACK_ICMP_TIMEOUT=12,
  464. NET_IPV4_NF_CONNTRACK_GENERIC_TIMEOUT=13,
  465. NET_IPV4_NF_CONNTRACK_BUCKETS=14,
  466. NET_IPV4_NF_CONNTRACK_LOG_INVALID=15,
  467. NET_IPV4_NF_CONNTRACK_TCP_TIMEOUT_MAX_RETRANS=16,
  468. NET_IPV4_NF_CONNTRACK_TCP_LOOSE=17,
  469. NET_IPV4_NF_CONNTRACK_TCP_BE_LIBERAL=18,
  470. NET_IPV4_NF_CONNTRACK_TCP_MAX_RETRANS=19,
  471. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_CLOSED=20,
  472. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_COOKIE_WAIT=21,
  473. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_COOKIE_ECHOED=22,
  474. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_ESTABLISHED=23,
  475. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_SENT=24,
  476. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_RECD=25,
  477. NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_ACK_SENT=26,
  478. NET_IPV4_NF_CONNTRACK_COUNT=27,
  479. NET_IPV4_NF_CONNTRACK_CHECKSUM=28,
  480. };
  481. /* /proc/sys/net/ipv6 */
  482. enum {
  483. NET_IPV6_CONF=16,
  484. NET_IPV6_NEIGH=17,
  485. NET_IPV6_ROUTE=18,
  486. NET_IPV6_ICMP=19,
  487. NET_IPV6_BINDV6ONLY=20,
  488. NET_IPV6_IP6FRAG_HIGH_THRESH=21,
  489. NET_IPV6_IP6FRAG_LOW_THRESH=22,
  490. NET_IPV6_IP6FRAG_TIME=23,
  491. NET_IPV6_IP6FRAG_SECRET_INTERVAL=24,
  492. NET_IPV6_MLD_MAX_MSF=25,
  493. };
  494. enum {
  495. NET_IPV6_ROUTE_FLUSH=1,
  496. NET_IPV6_ROUTE_GC_THRESH=2,
  497. NET_IPV6_ROUTE_MAX_SIZE=3,
  498. NET_IPV6_ROUTE_GC_MIN_INTERVAL=4,
  499. NET_IPV6_ROUTE_GC_TIMEOUT=5,
  500. NET_IPV6_ROUTE_GC_INTERVAL=6,
  501. NET_IPV6_ROUTE_GC_ELASTICITY=7,
  502. NET_IPV6_ROUTE_MTU_EXPIRES=8,
  503. NET_IPV6_ROUTE_MIN_ADVMSS=9,
  504. NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS=10
  505. };
  506. enum {
  507. NET_IPV6_FORWARDING=1,
  508. NET_IPV6_HOP_LIMIT=2,
  509. NET_IPV6_MTU=3,
  510. NET_IPV6_ACCEPT_RA=4,
  511. NET_IPV6_ACCEPT_REDIRECTS=5,
  512. NET_IPV6_AUTOCONF=6,
  513. NET_IPV6_DAD_TRANSMITS=7,
  514. NET_IPV6_RTR_SOLICITS=8,
  515. NET_IPV6_RTR_SOLICIT_INTERVAL=9,
  516. NET_IPV6_RTR_SOLICIT_DELAY=10,
  517. NET_IPV6_USE_TEMPADDR=11,
  518. NET_IPV6_TEMP_VALID_LFT=12,
  519. NET_IPV6_TEMP_PREFERED_LFT=13,
  520. NET_IPV6_REGEN_MAX_RETRY=14,
  521. NET_IPV6_MAX_DESYNC_FACTOR=15,
  522. NET_IPV6_MAX_ADDRESSES=16,
  523. NET_IPV6_FORCE_MLD_VERSION=17,
  524. NET_IPV6_ACCEPT_RA_DEFRTR=18,
  525. NET_IPV6_ACCEPT_RA_PINFO=19,
  526. NET_IPV6_ACCEPT_RA_RTR_PREF=20,
  527. NET_IPV6_RTR_PROBE_INTERVAL=21,
  528. NET_IPV6_ACCEPT_RA_RT_INFO_MAX_PLEN=22,
  529. NET_IPV6_PROXY_NDP=23,
  530. NET_IPV6_ACCEPT_SOURCE_ROUTE=25,
  531. NET_IPV6_ACCEPT_RA_FROM_LOCAL=26,
  532. __NET_IPV6_MAX
  533. };
  534. /* /proc/sys/net/ipv6/icmp */
  535. enum {
  536. NET_IPV6_ICMP_RATELIMIT=1
  537. };
  538. /* /proc/sys/net/<protocol>/neigh/<dev> */
  539. enum {
  540. NET_NEIGH_MCAST_SOLICIT=1,
  541. NET_NEIGH_UCAST_SOLICIT=2,
  542. NET_NEIGH_APP_SOLICIT=3,
  543. NET_NEIGH_RETRANS_TIME=4,
  544. NET_NEIGH_REACHABLE_TIME=5,
  545. NET_NEIGH_DELAY_PROBE_TIME=6,
  546. NET_NEIGH_GC_STALE_TIME=7,
  547. NET_NEIGH_UNRES_QLEN=8,
  548. NET_NEIGH_PROXY_QLEN=9,
  549. NET_NEIGH_ANYCAST_DELAY=10,
  550. NET_NEIGH_PROXY_DELAY=11,
  551. NET_NEIGH_LOCKTIME=12,
  552. NET_NEIGH_GC_INTERVAL=13,
  553. NET_NEIGH_GC_THRESH1=14,
  554. NET_NEIGH_GC_THRESH2=15,
  555. NET_NEIGH_GC_THRESH3=16,
  556. NET_NEIGH_RETRANS_TIME_MS=17,
  557. NET_NEIGH_REACHABLE_TIME_MS=18,
  558. };
  559. /* /proc/sys/net/dccp */
  560. enum {
  561. NET_DCCP_DEFAULT=1,
  562. };
  563. /* /proc/sys/net/ipx */
  564. enum {
  565. NET_IPX_PPROP_BROADCASTING=1,
  566. NET_IPX_FORWARDING=2
  567. };
  568. /* /proc/sys/net/llc */
  569. enum {
  570. NET_LLC2=1,
  571. NET_LLC_STATION=2,
  572. };
  573. /* /proc/sys/net/llc/llc2 */
  574. enum {
  575. NET_LLC2_TIMEOUT=1,
  576. };
  577. /* /proc/sys/net/llc/station */
  578. enum {
  579. NET_LLC_STATION_ACK_TIMEOUT=1,
  580. };
  581. /* /proc/sys/net/llc/llc2/timeout */
  582. enum {
  583. NET_LLC2_ACK_TIMEOUT=1,
  584. NET_LLC2_P_TIMEOUT=2,
  585. NET_LLC2_REJ_TIMEOUT=3,
  586. NET_LLC2_BUSY_TIMEOUT=4,
  587. };
  588. /* /proc/sys/net/appletalk */
  589. enum {
  590. NET_ATALK_AARP_EXPIRY_TIME=1,
  591. NET_ATALK_AARP_TICK_TIME=2,
  592. NET_ATALK_AARP_RETRANSMIT_LIMIT=3,
  593. NET_ATALK_AARP_RESOLVE_TIME=4
  594. };
  595. /* /proc/sys/net/netrom */
  596. enum {
  597. NET_NETROM_DEFAULT_PATH_QUALITY=1,
  598. NET_NETROM_OBSOLESCENCE_COUNT_INITIALISER=2,
  599. NET_NETROM_NETWORK_TTL_INITIALISER=3,
  600. NET_NETROM_TRANSPORT_TIMEOUT=4,
  601. NET_NETROM_TRANSPORT_MAXIMUM_TRIES=5,
  602. NET_NETROM_TRANSPORT_ACKNOWLEDGE_DELAY=6,
  603. NET_NETROM_TRANSPORT_BUSY_DELAY=7,
  604. NET_NETROM_TRANSPORT_REQUESTED_WINDOW_SIZE=8,
  605. NET_NETROM_TRANSPORT_NO_ACTIVITY_TIMEOUT=9,
  606. NET_NETROM_ROUTING_CONTROL=10,
  607. NET_NETROM_LINK_FAILS_COUNT=11,
  608. NET_NETROM_RESET=12
  609. };
  610. /* /proc/sys/net/ax25 */
  611. enum {
  612. NET_AX25_IP_DEFAULT_MODE=1,
  613. NET_AX25_DEFAULT_MODE=2,
  614. NET_AX25_BACKOFF_TYPE=3,
  615. NET_AX25_CONNECT_MODE=4,
  616. NET_AX25_STANDARD_WINDOW=5,
  617. NET_AX25_EXTENDED_WINDOW=6,
  618. NET_AX25_T1_TIMEOUT=7,
  619. NET_AX25_T2_TIMEOUT=8,
  620. NET_AX25_T3_TIMEOUT=9,
  621. NET_AX25_IDLE_TIMEOUT=10,
  622. NET_AX25_N2=11,
  623. NET_AX25_PACLEN=12,
  624. NET_AX25_PROTOCOL=13,
  625. NET_AX25_DAMA_SLAVE_TIMEOUT=14
  626. };
  627. /* /proc/sys/net/rose */
  628. enum {
  629. NET_ROSE_RESTART_REQUEST_TIMEOUT=1,
  630. NET_ROSE_CALL_REQUEST_TIMEOUT=2,
  631. NET_ROSE_RESET_REQUEST_TIMEOUT=3,
  632. NET_ROSE_CLEAR_REQUEST_TIMEOUT=4,
  633. NET_ROSE_ACK_HOLD_BACK_TIMEOUT=5,
  634. NET_ROSE_ROUTING_CONTROL=6,
  635. NET_ROSE_LINK_FAIL_TIMEOUT=7,
  636. NET_ROSE_MAX_VCS=8,
  637. NET_ROSE_WINDOW_SIZE=9,
  638. NET_ROSE_NO_ACTIVITY_TIMEOUT=10
  639. };
  640. /* /proc/sys/net/x25 */
  641. enum {
  642. NET_X25_RESTART_REQUEST_TIMEOUT=1,
  643. NET_X25_CALL_REQUEST_TIMEOUT=2,
  644. NET_X25_RESET_REQUEST_TIMEOUT=3,
  645. NET_X25_CLEAR_REQUEST_TIMEOUT=4,
  646. NET_X25_ACK_HOLD_BACK_TIMEOUT=5,
  647. NET_X25_FORWARD=6
  648. };
  649. /* /proc/sys/net/token-ring */
  650. enum
  651. {
  652. NET_TR_RIF_TIMEOUT=1
  653. };
  654. /* /proc/sys/net/decnet/ */
  655. enum {
  656. NET_DECNET_NODE_TYPE = 1,
  657. NET_DECNET_NODE_ADDRESS = 2,
  658. NET_DECNET_NODE_NAME = 3,
  659. NET_DECNET_DEFAULT_DEVICE = 4,
  660. NET_DECNET_TIME_WAIT = 5,
  661. NET_DECNET_DN_COUNT = 6,
  662. NET_DECNET_DI_COUNT = 7,
  663. NET_DECNET_DR_COUNT = 8,
  664. NET_DECNET_DST_GC_INTERVAL = 9,
  665. NET_DECNET_CONF = 10,
  666. NET_DECNET_NO_FC_MAX_CWND = 11,
  667. NET_DECNET_MEM = 12,
  668. NET_DECNET_RMEM = 13,
  669. NET_DECNET_WMEM = 14,
  670. NET_DECNET_DEBUG_LEVEL = 255
  671. };
  672. /* /proc/sys/net/decnet/conf/<dev> */
  673. enum {
  674. NET_DECNET_CONF_LOOPBACK = -2,
  675. NET_DECNET_CONF_DDCMP = -3,
  676. NET_DECNET_CONF_PPP = -4,
  677. NET_DECNET_CONF_X25 = -5,
  678. NET_DECNET_CONF_GRE = -6,
  679. NET_DECNET_CONF_ETHER = -7
  680. /* ... and ifindex of devices */
  681. };
  682. /* /proc/sys/net/decnet/conf/<dev>/ */
  683. enum {
  684. NET_DECNET_CONF_DEV_PRIORITY = 1,
  685. NET_DECNET_CONF_DEV_T1 = 2,
  686. NET_DECNET_CONF_DEV_T2 = 3,
  687. NET_DECNET_CONF_DEV_T3 = 4,
  688. NET_DECNET_CONF_DEV_FORWARDING = 5,
  689. NET_DECNET_CONF_DEV_BLKSIZE = 6,
  690. NET_DECNET_CONF_DEV_STATE = 7
  691. };
  692. /* /proc/sys/net/sctp */
  693. enum {
  694. NET_SCTP_RTO_INITIAL = 1,
  695. NET_SCTP_RTO_MIN = 2,
  696. NET_SCTP_RTO_MAX = 3,
  697. NET_SCTP_RTO_ALPHA = 4,
  698. NET_SCTP_RTO_BETA = 5,
  699. NET_SCTP_VALID_COOKIE_LIFE = 6,
  700. NET_SCTP_ASSOCIATION_MAX_RETRANS = 7,
  701. NET_SCTP_PATH_MAX_RETRANS = 8,
  702. NET_SCTP_MAX_INIT_RETRANSMITS = 9,
  703. NET_SCTP_HB_INTERVAL = 10,
  704. NET_SCTP_PRESERVE_ENABLE = 11,
  705. NET_SCTP_MAX_BURST = 12,
  706. NET_SCTP_ADDIP_ENABLE = 13,
  707. NET_SCTP_PRSCTP_ENABLE = 14,
  708. NET_SCTP_SNDBUF_POLICY = 15,
  709. NET_SCTP_SACK_TIMEOUT = 16,
  710. NET_SCTP_RCVBUF_POLICY = 17,
  711. };
  712. /* /proc/sys/net/bridge */
  713. enum {
  714. NET_BRIDGE_NF_CALL_ARPTABLES = 1,
  715. NET_BRIDGE_NF_CALL_IPTABLES = 2,
  716. NET_BRIDGE_NF_CALL_IP6TABLES = 3,
  717. NET_BRIDGE_NF_FILTER_VLAN_TAGGED = 4,
  718. NET_BRIDGE_NF_FILTER_PPPOE_TAGGED = 5,
  719. };
  720. /* proc/sys/net/irda */
  721. enum {
  722. NET_IRDA_DISCOVERY=1,
  723. NET_IRDA_DEVNAME=2,
  724. NET_IRDA_DEBUG=3,
  725. NET_IRDA_FAST_POLL=4,
  726. NET_IRDA_DISCOVERY_SLOTS=5,
  727. NET_IRDA_DISCOVERY_TIMEOUT=6,
  728. NET_IRDA_SLOT_TIMEOUT=7,
  729. NET_IRDA_MAX_BAUD_RATE=8,
  730. NET_IRDA_MIN_TX_TURN_TIME=9,
  731. NET_IRDA_MAX_TX_DATA_SIZE=10,
  732. NET_IRDA_MAX_TX_WINDOW=11,
  733. NET_IRDA_MAX_NOREPLY_TIME=12,
  734. NET_IRDA_WARN_NOREPLY_TIME=13,
  735. NET_IRDA_LAP_KEEPALIVE_TIME=14,
  736. };
  737. /* CTL_FS names: */
  738. enum
  739. {
  740. FS_NRINODE=1, /* int:current number of allocated inodes */
  741. FS_STATINODE=2,
  742. FS_MAXINODE=3, /* int:maximum number of inodes that can be allocated */
  743. FS_NRDQUOT=4, /* int:current number of allocated dquots */
  744. FS_MAXDQUOT=5, /* int:maximum number of dquots that can be allocated */
  745. FS_NRFILE=6, /* int:current number of allocated filedescriptors */
  746. FS_MAXFILE=7, /* int:maximum number of filedescriptors that can be allocated */
  747. FS_DENTRY=8,
  748. FS_NRSUPER=9, /* int:current number of allocated super_blocks */
  749. FS_MAXSUPER=10, /* int:maximum number of super_blocks that can be allocated */
  750. FS_OVERFLOWUID=11, /* int: overflow UID */
  751. FS_OVERFLOWGID=12, /* int: overflow GID */
  752. FS_LEASES=13, /* int: leases enabled */
  753. FS_DIR_NOTIFY=14, /* int: directory notification enabled */
  754. FS_LEASE_TIME=15, /* int: maximum time to wait for a lease break */
  755. FS_DQSTATS=16, /* disc quota usage statistics and control */
  756. FS_XFS=17, /* struct: control xfs parameters */
  757. FS_AIO_NR=18, /* current system-wide number of aio requests */
  758. FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */
  759. FS_INOTIFY=20, /* inotify submenu */
  760. FS_OCFS2=988, /* ocfs2 */
  761. };
  762. /* /proc/sys/fs/quota/ */
  763. enum {
  764. FS_DQ_LOOKUPS = 1,
  765. FS_DQ_DROPS = 2,
  766. FS_DQ_READS = 3,
  767. FS_DQ_WRITES = 4,
  768. FS_DQ_CACHE_HITS = 5,
  769. FS_DQ_ALLOCATED = 6,
  770. FS_DQ_FREE = 7,
  771. FS_DQ_SYNCS = 8,
  772. FS_DQ_WARNINGS = 9,
  773. };
  774. /* CTL_DEBUG names: */
  775. /* CTL_DEV names: */
  776. enum {
  777. DEV_CDROM=1,
  778. DEV_HWMON=2,
  779. DEV_PARPORT=3,
  780. DEV_RAID=4,
  781. DEV_MAC_HID=5,
  782. DEV_SCSI=6,
  783. DEV_IPMI=7,
  784. };
  785. /* /proc/sys/dev/cdrom */
  786. enum {
  787. DEV_CDROM_INFO=1,
  788. DEV_CDROM_AUTOCLOSE=2,
  789. DEV_CDROM_AUTOEJECT=3,
  790. DEV_CDROM_DEBUG=4,
  791. DEV_CDROM_LOCK=5,
  792. DEV_CDROM_CHECK_MEDIA=6
  793. };
  794. /* /proc/sys/dev/parport */
  795. enum {
  796. DEV_PARPORT_DEFAULT=-3
  797. };
  798. /* /proc/sys/dev/raid */
  799. enum {
  800. DEV_RAID_SPEED_LIMIT_MIN=1,
  801. DEV_RAID_SPEED_LIMIT_MAX=2
  802. };
  803. /* /proc/sys/dev/parport/default */
  804. enum {
  805. DEV_PARPORT_DEFAULT_TIMESLICE=1,
  806. DEV_PARPORT_DEFAULT_SPINTIME=2
  807. };
  808. /* /proc/sys/dev/parport/parport n */
  809. enum {
  810. DEV_PARPORT_SPINTIME=1,
  811. DEV_PARPORT_BASE_ADDR=2,
  812. DEV_PARPORT_IRQ=3,
  813. DEV_PARPORT_DMA=4,
  814. DEV_PARPORT_MODES=5,
  815. DEV_PARPORT_DEVICES=6,
  816. DEV_PARPORT_AUTOPROBE=16
  817. };
  818. /* /proc/sys/dev/parport/parport n/devices/ */
  819. enum {
  820. DEV_PARPORT_DEVICES_ACTIVE=-3,
  821. };
  822. /* /proc/sys/dev/parport/parport n/devices/device n */
  823. enum {
  824. DEV_PARPORT_DEVICE_TIMESLICE=1,
  825. };
  826. /* /proc/sys/dev/mac_hid */
  827. enum {
  828. DEV_MAC_HID_KEYBOARD_SENDS_LINUX_KEYCODES=1,
  829. DEV_MAC_HID_KEYBOARD_LOCK_KEYCODES=2,
  830. DEV_MAC_HID_MOUSE_BUTTON_EMULATION=3,
  831. DEV_MAC_HID_MOUSE_BUTTON2_KEYCODE=4,
  832. DEV_MAC_HID_MOUSE_BUTTON3_KEYCODE=5,
  833. DEV_MAC_HID_ADB_MOUSE_SENDS_KEYCODES=6
  834. };
  835. /* /proc/sys/dev/scsi */
  836. enum {
  837. DEV_SCSI_LOGGING_LEVEL=1,
  838. };
  839. /* /proc/sys/dev/ipmi */
  840. enum {
  841. DEV_IPMI_POWEROFF_POWERCYCLE=1,
  842. };
  843. /* /proc/sys/abi */
  844. enum
  845. {
  846. ABI_DEFHANDLER_COFF=1, /* default handler for coff binaries */
  847. ABI_DEFHANDLER_ELF=2, /* default handler for ELF binaries */
  848. ABI_DEFHANDLER_LCALL7=3,/* default handler for procs using lcall7 */
  849. ABI_DEFHANDLER_LIBCSO=4,/* default handler for an libc.so ELF interp */
  850. ABI_TRACE=5, /* tracing flags */
  851. ABI_FAKE_UTSNAME=6, /* fake target utsname information */
  852. };
  853. #endif /* _LINUX_SYSCTL_H */