Lines Matching refs:lenp
195 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument
213 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler()
230 void *buffer, size_t *lenp, loff_t *ppos) in bpf_unpriv_handler() argument
240 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_unpriv_handler()
260 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
265 if (!data || !maxlen || !*lenp) { in _proc_do_string()
266 *lenp = 0; in _proc_do_string()
285 *ppos += *lenp; in _proc_do_string()
287 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
300 *lenp = 0; in _proc_do_string()
307 if (len > *lenp) in _proc_do_string()
308 len = *lenp; in _proc_do_string()
311 if (len < *lenp) { in _proc_do_string()
315 *lenp = len; in _proc_do_string()
373 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
378 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
601 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
610 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
611 *lenp = 0; in __do_proc_dointvec()
617 left = *lenp; in __do_proc_dointvec()
666 *lenp -= left; in __do_proc_dointvec()
668 *ppos += *lenp; in __do_proc_dointvec()
673 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
679 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
685 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
697 left = *lenp; in do_proc_douintvec_w()
735 *ppos += *lenp; in do_proc_douintvec_w()
740 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
750 left = *lenp; in do_proc_douintvec_r()
764 *lenp -= left; in do_proc_douintvec_r()
765 *ppos += *lenp; in do_proc_douintvec_r()
772 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
780 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
781 *lenp = 0; in __do_proc_douintvec()
793 *lenp = 0; in __do_proc_douintvec()
801 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
803 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
807 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
814 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
831 size_t *lenp, loff_t *ppos) in proc_dobool() argument
833 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dobool()
851 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
853 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
858 int write, void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_warn_RT_change() argument
863 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
866 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
891 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
893 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
902 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
913 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
942 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument
947 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
1008 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1014 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
1077 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1083 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
1105 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1136 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
1167 void *buffer, size_t *lenp, loff_t *ppos) in proc_dopipe_max_size() argument
1169 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_dopipe_max_size()
1188 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_coredump() argument
1190 int error = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_coredump()
1198 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring_coredump() argument
1200 int error = proc_dostring(table, write, buffer, lenp, ppos); in proc_dostring_coredump()
1209 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
1216 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1228 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1236 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1237 *lenp = 0; in __do_proc_doulongvec_minmax()
1245 left = *lenp; in __do_proc_doulongvec_minmax()
1293 *lenp -= left; in __do_proc_doulongvec_minmax()
1295 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1300 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1304 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1324 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1326 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1347 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1350 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1444 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1446 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1466 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1468 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_userhz_jiffies()
1489 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1491 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1496 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1505 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1535 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1538 size_t left = *lenp; in proc_do_large_bitmap()
1545 *lenp = 0; in proc_do_large_bitmap()
1556 skipped = *lenp - left; in proc_do_large_bitmap()
1656 *lenp -= left; in proc_do_large_bitmap()
1657 *ppos += *lenp; in proc_do_large_bitmap()
1667 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1673 void *buffer, size_t *lenp, loff_t *ppos) in proc_dobool() argument
1679 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1685 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1691 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1697 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1703 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1709 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1715 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1721 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1727 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1733 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1739 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1748 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1766 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()