Lines Matching refs:table
138 static void warn_sysctl_write(const struct ctl_table *table) in warn_sysctl_write() argument
143 current->comm, table->procname); in warn_sysctl_write()
156 const struct ctl_table *table) in proc_first_pos_non_zero_ignore() argument
165 warn_sysctl_write(table); in proc_first_pos_non_zero_ignore()
189 int proc_dostring(const struct ctl_table *table, int dir, in proc_dostring() argument
193 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring()
195 return _proc_do_string(table->data, table->maxlen, dir, buffer, lenp, in proc_dostring()
383 static int do_proc_dointvec(const struct ctl_table *table, int dir, in do_proc_dointvec() argument
386 int dir, const struct ctl_table *table)) in do_proc_dointvec()
392 if (!table->data || !table->maxlen || !*lenp || in do_proc_dointvec()
398 i = (int *) table->data; in do_proc_dointvec()
399 vleft = table->maxlen / sizeof(*i); in do_proc_dointvec()
406 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_dointvec()
428 if (conv(&neg, &lval, i, 1, table)) { in do_proc_dointvec()
433 if (conv(&neg, &lval, i, 0, table)) { in do_proc_dointvec()
455 static int do_proc_douintvec_w(const struct ctl_table *table, void *buffer, in do_proc_douintvec_w() argument
459 const struct ctl_table *table)) in do_proc_douintvec_w()
469 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_douintvec_w()
489 if (conv(&lval, (unsigned int *) table->data, 1, table)) { in do_proc_douintvec_w()
508 static int do_proc_douintvec_r(const struct ctl_table *table, void *buffer, in do_proc_douintvec_r() argument
512 const struct ctl_table *table)) in do_proc_douintvec_r()
520 if (conv(&lval, (unsigned int *) table->data, 0, table)) { in do_proc_douintvec_r()
538 static int do_proc_douintvec(const struct ctl_table *table, int dir, in do_proc_douintvec() argument
542 const struct ctl_table *table)) in do_proc_douintvec()
546 if (!table->data || !table->maxlen || !*lenp || in do_proc_douintvec()
552 vleft = table->maxlen / sizeof(unsigned int); in do_proc_douintvec()
567 return do_proc_douintvec_w(table, buffer, lenp, ppos, conv); in do_proc_douintvec()
568 return do_proc_douintvec_r(table, buffer, lenp, ppos, conv); in do_proc_douintvec()
571 int proc_douintvec_conv(const struct ctl_table *table, int dir, void *buffer, in proc_douintvec_conv() argument
574 int dir, const struct ctl_table *table)) in proc_douintvec_conv()
576 return do_proc_douintvec(table, dir, buffer, lenp, ppos, conv); in proc_douintvec_conv()
596 int proc_dobool(const struct ctl_table *table, int dir, void *buffer, in proc_dobool() argument
600 bool *data = table->data; in proc_dobool()
604 if (table->maxlen != sizeof(bool)) in proc_dobool()
607 tmp = *table; in proc_dobool()
633 int proc_dointvec(const struct ctl_table *table, int dir, void *buffer, in proc_dointvec() argument
636 return do_proc_dointvec(table, dir, buffer, lenp, ppos, NULL); in proc_dointvec()
652 int proc_douintvec(const struct ctl_table *table, int dir, void *buffer, in proc_douintvec() argument
655 return do_proc_douintvec(table, dir, buffer, lenp, ppos, in proc_douintvec()
676 int proc_dointvec_minmax(const struct ctl_table *table, int dir, in proc_dointvec_minmax() argument
679 return do_proc_dointvec(table, dir, buffer, lenp, ppos, in proc_dointvec_minmax()
703 int proc_douintvec_minmax(const struct ctl_table *table, int dir, in proc_douintvec_minmax() argument
706 return do_proc_douintvec(table, dir, buffer, lenp, ppos, in proc_douintvec_minmax()
728 int proc_dou8vec_minmax(const struct ctl_table *table, int dir, in proc_dou8vec_minmax() argument
733 u8 *data = table->data; in proc_dou8vec_minmax()
737 if (table->maxlen != sizeof(u8)) in proc_dou8vec_minmax()
740 tmp = *table; in proc_dou8vec_minmax()
760 static int do_proc_doulongvec_minmax(const struct ctl_table *table, int dir, in do_proc_doulongvec_minmax() argument
770 if (!table->data || !table->maxlen || !*lenp || in do_proc_doulongvec_minmax()
776 i = table->data; in do_proc_doulongvec_minmax()
777 min = table->extra1; in do_proc_doulongvec_minmax()
778 max = table->extra2; in do_proc_doulongvec_minmax()
779 vleft = table->maxlen / sizeof(unsigned long); in do_proc_doulongvec_minmax()
783 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_doulongvec_minmax()
835 int proc_doulongvec_minmax_conv(const struct ctl_table *table, int dir, in proc_doulongvec_minmax_conv() argument
839 return do_proc_doulongvec_minmax(table, dir, buffer, lenp, ppos, in proc_doulongvec_minmax_conv()
859 int proc_doulongvec_minmax(const struct ctl_table *table, int dir, in proc_doulongvec_minmax() argument
862 return proc_doulongvec_minmax_conv(table, dir, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
865 int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, in proc_dointvec_conv() argument
868 int dir, const struct ctl_table *table)) in proc_dointvec_conv()
870 return do_proc_dointvec(table, dir, buffer, lenp, ppos, conv); in proc_dointvec_conv()
890 int proc_do_large_bitmap(const struct ctl_table *table, int dir, in proc_do_large_bitmap() argument
895 unsigned long bitmap_len = table->maxlen; in proc_do_large_bitmap()
896 unsigned long *bitmap = *(unsigned long **) table->data; in proc_do_large_bitmap()
1022 int proc_dostring(const struct ctl_table *table, int dir, in proc_dostring() argument
1028 int proc_dobool(const struct ctl_table *table, int dir, in proc_dobool() argument
1034 int proc_dointvec(const struct ctl_table *table, int dir, in proc_dointvec() argument
1040 int proc_douintvec(const struct ctl_table *table, int dir, in proc_douintvec() argument
1046 int proc_dointvec_minmax(const struct ctl_table *table, int dir, in proc_dointvec_minmax() argument
1052 int proc_douintvec_minmax(const struct ctl_table *table, int dir, in proc_douintvec_minmax() argument
1058 int proc_dou8vec_minmax(const struct ctl_table *table, int dir, in proc_dou8vec_minmax() argument
1064 int proc_doulongvec_minmax(const struct ctl_table *table, int dir, in proc_doulongvec_minmax() argument
1070 int proc_doulongvec_minmax_conv(const struct ctl_table *table, int dir, in proc_doulongvec_minmax_conv() argument
1077 int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, in proc_dointvec_conv() argument
1080 int dir, const struct ctl_table *table)) in proc_dointvec_conv()
1085 int proc_do_large_bitmap(const struct ctl_table *table, int dir, in proc_do_large_bitmap() argument
1094 int proc_do_static_key(const struct ctl_table *table, int dir, in proc_do_static_key() argument
1097 struct static_key *key = (struct static_key *)table->data; in proc_do_static_key()
1103 .mode = table->mode, in proc_do_static_key()