Lines Matching refs:lenp
204 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument
222 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler()
239 void *buffer, size_t *lenp, loff_t *ppos) in bpf_unpriv_handler() argument
249 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_unpriv_handler()
269 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
274 if (!data || !maxlen || !*lenp) { in _proc_do_string()
275 *lenp = 0; in _proc_do_string()
294 *ppos += *lenp; in _proc_do_string()
296 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
309 *lenp = 0; in _proc_do_string()
316 if (len > *lenp) in _proc_do_string()
317 len = *lenp; in _proc_do_string()
320 if (len < *lenp) { in _proc_do_string()
324 *lenp = len; in _proc_do_string()
382 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
387 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
595 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
604 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
605 *lenp = 0; in __do_proc_dointvec()
611 left = *lenp; in __do_proc_dointvec()
660 *lenp -= left; in __do_proc_dointvec()
662 *ppos += *lenp; in __do_proc_dointvec()
667 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
673 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
679 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
691 left = *lenp; in do_proc_douintvec_w()
729 *ppos += *lenp; in do_proc_douintvec_w()
734 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
744 left = *lenp; in do_proc_douintvec_r()
758 *lenp -= left; in do_proc_douintvec_r()
759 *ppos += *lenp; in do_proc_douintvec_r()
766 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
774 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
775 *lenp = 0; in __do_proc_douintvec()
787 *lenp = 0; in __do_proc_douintvec()
795 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
797 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
801 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
808 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
825 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
827 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
832 int write, void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_warn_RT_change() argument
837 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
840 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
865 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
867 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
876 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
887 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
916 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument
921 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
982 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
988 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
1051 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1057 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
1079 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1110 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
1141 void *buffer, size_t *lenp, loff_t *ppos) in proc_dopipe_max_size() argument
1143 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_dopipe_max_size()
1162 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_coredump() argument
1164 int error = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_coredump()
1172 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring_coredump() argument
1174 int error = proc_dostring(table, write, buffer, lenp, ppos); in proc_dostring_coredump()
1183 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
1190 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1202 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1210 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1211 *lenp = 0; in __do_proc_doulongvec_minmax()
1219 left = *lenp; in __do_proc_doulongvec_minmax()
1267 *lenp -= left; in __do_proc_doulongvec_minmax()
1269 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1274 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1278 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1298 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1300 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1321 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1324 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1418 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1420 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1440 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1442 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_userhz_jiffies()
1463 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1465 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1470 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1479 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1509 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1513 size_t left = *lenp; in proc_do_large_bitmap()
1520 *lenp = 0; in proc_do_large_bitmap()
1531 skipped = *lenp - left; in proc_do_large_bitmap()
1631 *lenp -= left; in proc_do_large_bitmap()
1632 *ppos += *lenp; in proc_do_large_bitmap()
1642 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1648 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1654 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1660 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1666 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1672 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1678 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1684 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1690 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1696 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1702 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1708 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1717 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1735 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()