Lines Matching refs:table
209 static void warn_sysctl_write(struct ctl_table *table) in warn_sysctl_write() argument
214 current->comm, table->procname); in warn_sysctl_write()
227 struct ctl_table *table) in proc_first_pos_non_zero_ignore() argument
236 warn_sysctl_write(table); in proc_first_pos_non_zero_ignore()
260 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument
264 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring()
266 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
487 static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table, in __do_proc_dointvec() argument
498 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
504 vleft = table->maxlen / sizeof(*i); in __do_proc_dointvec()
511 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_dointvec()
560 static int do_proc_dointvec(struct ctl_table *table, int write, in do_proc_dointvec() argument
566 return __do_proc_dointvec(table->data, table, write, in do_proc_dointvec()
571 struct ctl_table *table, in do_proc_douintvec_w() argument
587 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_douintvec_w()
658 static int __do_proc_douintvec(void *tbl_data, struct ctl_table *table, in __do_proc_douintvec() argument
668 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
674 vleft = table->maxlen / sizeof(*i); in __do_proc_douintvec()
689 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
694 int do_proc_douintvec(struct ctl_table *table, int write, in do_proc_douintvec() argument
701 return __do_proc_douintvec(table->data, table, write, in do_proc_douintvec()
718 int proc_dobool(struct ctl_table *table, int write, void *buffer, in proc_dobool() argument
721 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dobool()
738 int proc_dointvec(struct ctl_table *table, int write, void *buffer, in proc_dointvec() argument
741 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
745 static int proc_dointvec_minmax_warn_RT_change(struct ctl_table *table, in proc_dointvec_minmax_warn_RT_change() argument
751 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
753 old = *(int *)table->data; in proc_dointvec_minmax_warn_RT_change()
754 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
757 if (old != *(int *)table->data) in proc_dointvec_minmax_warn_RT_change()
759 table->procname, current->comm, in proc_dointvec_minmax_warn_RT_change()
778 int proc_douintvec(struct ctl_table *table, int write, void *buffer, in proc_douintvec() argument
781 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
789 static int proc_taint(struct ctl_table *table, int write, in proc_taint() argument
799 t = *table; in proc_taint()
884 int proc_dointvec_minmax(struct ctl_table *table, int write, in proc_dointvec_minmax() argument
888 .min = (int *) table->extra1, in proc_dointvec_minmax()
889 .max = (int *) table->extra2, in proc_dointvec_minmax()
891 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
953 int proc_douintvec_minmax(struct ctl_table *table, int write, in proc_douintvec_minmax() argument
957 .min = (unsigned int *) table->extra1, in proc_douintvec_minmax()
958 .max = (unsigned int *) table->extra2, in proc_douintvec_minmax()
960 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
981 int proc_dou8vec_minmax(struct ctl_table *table, int write, in proc_dou8vec_minmax() argument
986 u8 *data = table->data; in proc_dou8vec_minmax()
994 if (table->maxlen != sizeof(u8)) in proc_dou8vec_minmax()
997 if (table->extra1) { in proc_dou8vec_minmax()
998 min = *(unsigned int *) table->extra1; in proc_dou8vec_minmax()
1002 if (table->extra2) { in proc_dou8vec_minmax()
1003 max = *(unsigned int *) table->extra2; in proc_dou8vec_minmax()
1008 tmp = *table; in proc_dou8vec_minmax()
1024 static int sysrq_sysctl_handler(struct ctl_table *table, int write, in sysrq_sysctl_handler() argument
1031 ret = __do_proc_dointvec(&tmp, table, write, buffer, in sysrq_sysctl_handler()
1043 static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, in __do_proc_doulongvec_minmax() argument
1052 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1058 min = table->extra1; in __do_proc_doulongvec_minmax()
1059 max = table->extra2; in __do_proc_doulongvec_minmax()
1060 vleft = table->maxlen / sizeof(unsigned long); in __do_proc_doulongvec_minmax()
1064 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_doulongvec_minmax()
1116 static int do_proc_doulongvec_minmax(struct ctl_table *table, int write, in do_proc_doulongvec_minmax() argument
1120 return __do_proc_doulongvec_minmax(table->data, table, write, in do_proc_doulongvec_minmax()
1140 int proc_doulongvec_minmax(struct ctl_table *table, int write, in proc_doulongvec_minmax() argument
1143 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1163 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_doulongvec_ms_jiffies_minmax() argument
1166 return do_proc_doulongvec_minmax(table, write, buffer, in proc_doulongvec_ms_jiffies_minmax()
1284 int proc_dointvec_jiffies(struct ctl_table *table, int write, in proc_dointvec_jiffies() argument
1287 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1291 int proc_dointvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_dointvec_ms_jiffies_minmax() argument
1295 .min = (int *) table->extra1, in proc_dointvec_ms_jiffies_minmax()
1296 .max = (int *) table->extra2, in proc_dointvec_ms_jiffies_minmax()
1298 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax()
1317 int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, in proc_dointvec_userhz_jiffies() argument
1320 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
1340 int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, void *buffer, in proc_dointvec_ms_jiffies() argument
1343 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1347 static int proc_do_cad_pid(struct ctl_table *table, int write, void *buffer, in proc_do_cad_pid() argument
1356 r = __do_proc_dointvec(&tmp, table, write, buffer, in proc_do_cad_pid()
1386 int proc_do_large_bitmap(struct ctl_table *table, int write, in proc_do_large_bitmap() argument
1391 unsigned long bitmap_len = table->maxlen; in proc_do_large_bitmap()
1392 unsigned long *bitmap = *(unsigned long **) table->data; in proc_do_large_bitmap()
1518 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument
1524 int proc_dobool(struct ctl_table *table, int write, in proc_dobool() argument
1530 int proc_dointvec(struct ctl_table *table, int write, in proc_dointvec() argument
1536 int proc_douintvec(struct ctl_table *table, int write, in proc_douintvec() argument
1542 int proc_dointvec_minmax(struct ctl_table *table, int write, in proc_dointvec_minmax() argument
1548 int proc_douintvec_minmax(struct ctl_table *table, int write, in proc_douintvec_minmax() argument
1554 int proc_dou8vec_minmax(struct ctl_table *table, int write, in proc_dou8vec_minmax() argument
1560 int proc_dointvec_jiffies(struct ctl_table *table, int write, in proc_dointvec_jiffies() argument
1566 int proc_dointvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_dointvec_ms_jiffies_minmax() argument
1572 int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, in proc_dointvec_userhz_jiffies() argument
1578 int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, in proc_dointvec_ms_jiffies() argument
1584 int proc_doulongvec_minmax(struct ctl_table *table, int write, in proc_doulongvec_minmax() argument
1590 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_doulongvec_ms_jiffies_minmax() argument
1596 int proc_do_large_bitmap(struct ctl_table *table, int write, in proc_do_large_bitmap() argument
1605 int proc_do_static_key(struct ctl_table *table, int write, in proc_do_static_key() argument
1608 struct static_key *key = (struct static_key *)table->data; in proc_do_static_key()
1614 .mode = table->mode, in proc_do_static_key()