.. | .. |
---|
38 | 38 | struct ctl_dir; |
---|
39 | 39 | |
---|
40 | 40 | /* Keep the same order as in fs/proc/proc_sysctl.c */ |
---|
41 | | -#define SYSCTL_ZERO ((void *)&sysctl_vals[0]) |
---|
42 | | -#define SYSCTL_ONE ((void *)&sysctl_vals[1]) |
---|
43 | | -#define SYSCTL_INT_MAX ((void *)&sysctl_vals[2]) |
---|
| 41 | +#define SYSCTL_NEG_ONE ((void *)&android_gki_sysctl_vals[0]) |
---|
| 42 | +#define SYSCTL_ZERO ((void *)&android_gki_sysctl_vals[1]) |
---|
| 43 | +#define SYSCTL_ONE ((void *)&android_gki_sysctl_vals[2]) |
---|
| 44 | +#define SYSCTL_TWO ((void *)&android_gki_sysctl_vals[3]) |
---|
| 45 | +#define SYSCTL_FOUR ((void *)&android_gki_sysctl_vals[4]) |
---|
| 46 | +#define SYSCTL_ONE_HUNDRED ((void *)&android_gki_sysctl_vals[5]) |
---|
| 47 | +#define SYSCTL_TWO_HUNDRED ((void *)&android_gki_sysctl_vals[6]) |
---|
| 48 | +#define SYSCTL_ONE_THOUSAND ((void *)&android_gki_sysctl_vals[7]) |
---|
| 49 | +#define SYSCTL_THREE_THOUSAND ((void *)&android_gki_sysctl_vals[8]) |
---|
| 50 | +#define SYSCTL_INT_MAX ((void *)&android_gki_sysctl_vals[9]) |
---|
44 | 51 | |
---|
45 | 52 | extern const int sysctl_vals[]; |
---|
| 53 | +extern const int android_gki_sysctl_vals[]; |
---|
46 | 54 | |
---|
47 | 55 | typedef int proc_handler(struct ctl_table *ctl, int write, void *buffer, |
---|
48 | 56 | size_t *lenp, loff_t *ppos); |
---|
.. | .. |
---|
53 | 61 | int proc_dointvec_minmax(struct ctl_table *, int, void *, size_t *, loff_t *); |
---|
54 | 62 | int proc_douintvec_minmax(struct ctl_table *table, int write, void *buffer, |
---|
55 | 63 | size_t *lenp, loff_t *ppos); |
---|
| 64 | +int proc_dou8vec_minmax(struct ctl_table *table, int write, void *buffer, |
---|
| 65 | + size_t *lenp, loff_t *ppos); |
---|
56 | 66 | int proc_dointvec_jiffies(struct ctl_table *, int, void *, size_t *, loff_t *); |
---|
57 | 67 | int proc_dointvec_userhz_jiffies(struct ctl_table *, int, void *, size_t *, |
---|
58 | 68 | loff_t *); |
---|
.. | .. |
---|
195 | 205 | void unregister_sysctl_table(struct ctl_table_header * table); |
---|
196 | 206 | |
---|
197 | 207 | extern int sysctl_init(void); |
---|
| 208 | +extern void __register_sysctl_init(const char *path, struct ctl_table *table, |
---|
| 209 | + const char *table_name); |
---|
| 210 | +#define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table) |
---|
198 | 211 | void do_sysctl_args(void); |
---|
199 | 212 | |
---|
200 | 213 | extern int pwrsw_enabled; |
---|