Lines Matching refs:lenp
207 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument
225 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler()
245 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
250 if (!data || !maxlen || !*lenp) { in _proc_do_string()
251 *lenp = 0; in _proc_do_string()
270 *ppos += *lenp; in _proc_do_string()
272 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
285 *lenp = 0; in _proc_do_string()
292 if (len > *lenp) in _proc_do_string()
293 len = *lenp; in _proc_do_string()
296 if (len < *lenp) { in _proc_do_string()
300 *lenp = len; in _proc_do_string()
358 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
363 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
571 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
580 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
581 *lenp = 0; in __do_proc_dointvec()
587 left = *lenp; in __do_proc_dointvec()
636 *lenp -= left; in __do_proc_dointvec()
638 *ppos += *lenp; in __do_proc_dointvec()
643 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
649 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
655 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
667 left = *lenp; in do_proc_douintvec_w()
705 *ppos += *lenp; in do_proc_douintvec_w()
710 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
720 left = *lenp; in do_proc_douintvec_r()
734 *lenp -= left; in do_proc_douintvec_r()
735 *ppos += *lenp; in do_proc_douintvec_r()
742 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
750 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
751 *lenp = 0; in __do_proc_douintvec()
763 *lenp = 0; in __do_proc_douintvec()
771 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
773 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
777 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
784 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
801 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
803 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
808 int write, void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_warn_RT_change() argument
813 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
816 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
841 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
843 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
852 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
863 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
892 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument
897 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
958 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
964 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
1027 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1033 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
1058 void *buffer, size_t *lenp, loff_t *ppos) in proc_dopipe_max_size() argument
1060 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_dopipe_max_size()
1079 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_coredump() argument
1081 int error = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_coredump()
1089 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring_coredump() argument
1091 int error = proc_dostring(table, write, buffer, lenp, ppos); in proc_dostring_coredump()
1100 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
1107 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1119 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1127 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1128 *lenp = 0; in __do_proc_doulongvec_minmax()
1136 left = *lenp; in __do_proc_doulongvec_minmax()
1184 *lenp -= left; in __do_proc_doulongvec_minmax()
1186 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1191 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1195 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1215 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1217 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1238 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1241 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1332 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1334 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1354 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1356 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_userhz_jiffies()
1377 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1379 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1384 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1393 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1423 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1427 size_t left = *lenp; in proc_do_large_bitmap()
1434 *lenp = 0; in proc_do_large_bitmap()
1445 skipped = *lenp - left; in proc_do_large_bitmap()
1545 *lenp -= left; in proc_do_large_bitmap()
1546 *ppos += *lenp; in proc_do_large_bitmap()
1556 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1562 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1568 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1574 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1580 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1586 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1592 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1598 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1604 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1610 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1616 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1625 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1643 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()