sysctl.h 25 KB

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