sysctl.c (dca2d6ac09d9ef59ff46820d4f0c94b08a671202) | sysctl.c (3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5) |
---|---|
1/* 2 * sysctl.c: General linux system control interface 3 * 4 * Begun 24 March 1995, Stephen Tweedie 5 * Added /proc support, Dec 1995 6 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas. 7 * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver. 8 * Added kernel/java-{interpreter,appletviewer}, 96/5/10, Mike Shaver. --- 23 unchanged lines hidden (view full) --- 32#include <linux/fs.h> 33#include <linux/init.h> 34#include <linux/kernel.h> 35#include <linux/kobject.h> 36#include <linux/net.h> 37#include <linux/sysrq.h> 38#include <linux/highuid.h> 39#include <linux/writeback.h> | 1/* 2 * sysctl.c: General linux system control interface 3 * 4 * Begun 24 March 1995, Stephen Tweedie 5 * Added /proc support, Dec 1995 6 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas. 7 * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver. 8 * Added kernel/java-{interpreter,appletviewer}, 96/5/10, Mike Shaver. --- 23 unchanged lines hidden (view full) --- 32#include <linux/fs.h> 33#include <linux/init.h> 34#include <linux/kernel.h> 35#include <linux/kobject.h> 36#include <linux/net.h> 37#include <linux/sysrq.h> 38#include <linux/highuid.h> 39#include <linux/writeback.h> |
40#include <linux/ratelimit.h> |
|
40#include <linux/hugetlb.h> 41#include <linux/initrd.h> 42#include <linux/key.h> 43#include <linux/times.h> 44#include <linux/limits.h> 45#include <linux/dcache.h> 46#include <linux/syscalls.h> 47#include <linux/vmstat.h> --- 38 unchanged lines hidden (view full) --- 86extern int latencytop_enabled; 87extern int sysctl_nr_open_min, sysctl_nr_open_max; 88#ifndef CONFIG_MMU 89extern int sysctl_nr_trim_pages; 90#endif 91#ifdef CONFIG_RCU_TORTURE_TEST 92extern int rcutorture_runnable; 93#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | 41#include <linux/hugetlb.h> 42#include <linux/initrd.h> 43#include <linux/key.h> 44#include <linux/times.h> 45#include <linux/limits.h> 46#include <linux/dcache.h> 47#include <linux/syscalls.h> 48#include <linux/vmstat.h> --- 38 unchanged lines hidden (view full) --- 87extern int latencytop_enabled; 88extern int sysctl_nr_open_min, sysctl_nr_open_max; 89#ifndef CONFIG_MMU 90extern int sysctl_nr_trim_pages; 91#endif 92#ifdef CONFIG_RCU_TORTURE_TEST 93extern int rcutorture_runnable; 94#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ |
95#ifdef CONFIG_BLOCK |
|
94extern int blk_iopoll_enabled; | 96extern int blk_iopoll_enabled; |
97#endif |
|
95 96/* Constants used for minimum and maximum */ 97#ifdef CONFIG_DETECT_SOFTLOCKUP 98static int sixty = 60; 99static int neg_one = -1; 100#endif 101 102static int zero; --- 45 unchanged lines hidden (view full) --- 148extern int acct_parm[]; 149#endif 150 151#ifdef CONFIG_IA64 152extern int no_unaligned_warning; 153extern int unaligned_dump_stack; 154#endif 155 | 98 99/* Constants used for minimum and maximum */ 100#ifdef CONFIG_DETECT_SOFTLOCKUP 101static int sixty = 60; 102static int neg_one = -1; 103#endif 104 105static int zero; --- 45 unchanged lines hidden (view full) --- 151extern int acct_parm[]; 152#endif 153 154#ifdef CONFIG_IA64 155extern int no_unaligned_warning; 156extern int unaligned_dump_stack; 157#endif 158 |
159extern struct ratelimit_state printk_ratelimit_state; 160 |
|
156#ifdef CONFIG_RT_MUTEXES 157extern int max_lock_depth; 158#endif 159 160#ifdef CONFIG_PROC_SYSCTL 161static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp, 162 void __user *buffer, size_t *lenp, loff_t *ppos); 163static int proc_taint(struct ctl_table *table, int write, struct file *filp, --- 829 unchanged lines hidden (view full) --- 993 .ctl_name = CTL_UNNUMBERED, 994 .procname = "kmemcheck", 995 .data = &kmemcheck_enabled, 996 .maxlen = sizeof(int), 997 .mode = 0644, 998 .proc_handler = &proc_dointvec, 999 }, 1000#endif | 161#ifdef CONFIG_RT_MUTEXES 162extern int max_lock_depth; 163#endif 164 165#ifdef CONFIG_PROC_SYSCTL 166static int proc_do_cad_pid(struct ctl_table *table, int write, struct file *filp, 167 void __user *buffer, size_t *lenp, loff_t *ppos); 168static int proc_taint(struct ctl_table *table, int write, struct file *filp, --- 829 unchanged lines hidden (view full) --- 998 .ctl_name = CTL_UNNUMBERED, 999 .procname = "kmemcheck", 1000 .data = &kmemcheck_enabled, 1001 .maxlen = sizeof(int), 1002 .mode = 0644, 1003 .proc_handler = &proc_dointvec, 1004 }, 1005#endif |
1006#ifdef CONFIG_BLOCK |
|
1001 { 1002 .ctl_name = CTL_UNNUMBERED, 1003 .procname = "blk_iopoll", 1004 .data = &blk_iopoll_enabled, 1005 .maxlen = sizeof(int), 1006 .mode = 0644, 1007 .proc_handler = &proc_dointvec, 1008 }, | 1007 { 1008 .ctl_name = CTL_UNNUMBERED, 1009 .procname = "blk_iopoll", 1010 .data = &blk_iopoll_enabled, 1011 .maxlen = sizeof(int), 1012 .mode = 0644, 1013 .proc_handler = &proc_dointvec, 1014 }, |
1015#endif |
|
1009/* 1010 * NOTE: do not add new entries to this table unless you have read 1011 * Documentation/sysctl/ctl_unnumbered.txt 1012 */ 1013 { .ctl_name = 0 } 1014}; 1015 1016static struct ctl_table vm_table[] = { --- 2200 unchanged lines hidden --- | 1016/* 1017 * NOTE: do not add new entries to this table unless you have read 1018 * Documentation/sysctl/ctl_unnumbered.txt 1019 */ 1020 { .ctl_name = 0 } 1021}; 1022 1023static struct ctl_table vm_table[] = { --- 2200 unchanged lines hidden --- |