sysctl.c (5096add84b9e96e2e0a9c72675c442fe5433388a) sysctl.c (77461ab33229d48614402decfb1b2eaa6d446861)
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.

--- 63 unchanged lines hidden (view full) ---

72extern int min_free_kbytes;
73extern int printk_ratelimit_jiffies;
74extern int printk_ratelimit_burst;
75extern int pid_max_min, pid_max_max;
76extern int sysctl_drop_caches;
77extern int percpu_pagelist_fraction;
78extern int compat_log;
79extern int maps_protect;
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.

--- 63 unchanged lines hidden (view full) ---

72extern int min_free_kbytes;
73extern int printk_ratelimit_jiffies;
74extern int printk_ratelimit_burst;
75extern int pid_max_min, pid_max_max;
76extern int sysctl_drop_caches;
77extern int percpu_pagelist_fraction;
78extern int compat_log;
79extern int maps_protect;
80extern int sysctl_stat_interval;
80
81/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
82static int maxolduid = 65535;
83static int minolduid;
84static int min_percpu_pagelist_fract = 8;
85
86static int ngroups_max = NGROUPS_MAX;
87

--- 764 unchanged lines hidden (view full) ---

852 .maxlen = sizeof(sysctl_min_slab_ratio),
853 .mode = 0644,
854 .proc_handler = &sysctl_min_slab_ratio_sysctl_handler,
855 .strategy = &sysctl_intvec,
856 .extra1 = &zero,
857 .extra2 = &one_hundred,
858 },
859#endif
81
82/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
83static int maxolduid = 65535;
84static int minolduid;
85static int min_percpu_pagelist_fract = 8;
86
87static int ngroups_max = NGROUPS_MAX;
88

--- 764 unchanged lines hidden (view full) ---

853 .maxlen = sizeof(sysctl_min_slab_ratio),
854 .mode = 0644,
855 .proc_handler = &sysctl_min_slab_ratio_sysctl_handler,
856 .strategy = &sysctl_intvec,
857 .extra1 = &zero,
858 .extra2 = &one_hundred,
859 },
860#endif
861#ifdef CONFIG_SMP
862 {
863 .ctl_name = CTL_UNNUMBERED,
864 .procname = "stat_interval",
865 .data = &sysctl_stat_interval,
866 .maxlen = sizeof(sysctl_stat_interval),
867 .mode = 0644,
868 .proc_handler = &proc_dointvec_jiffies,
869 .strategy = &sysctl_jiffies,
870 },
871#endif
860#if defined(CONFIG_X86_32) || \
861 (defined(CONFIG_SUPERH) && defined(CONFIG_VSYSCALL))
862 {
863 .ctl_name = VM_VDSO_ENABLED,
864 .procname = "vdso_enabled",
865 .data = &vdso_enabled,
866 .maxlen = sizeof(vdso_enabled),
867 .mode = 0644,

--- 1516 unchanged lines hidden ---
872#if defined(CONFIG_X86_32) || \
873 (defined(CONFIG_SUPERH) && defined(CONFIG_VSYSCALL))
874 {
875 .ctl_name = VM_VDSO_ENABLED,
876 .procname = "vdso_enabled",
877 .data = &vdso_enabled,
878 .maxlen = sizeof(vdso_enabled),
879 .mode = 0644,

--- 1516 unchanged lines hidden ---