Lines Matching refs:write
146 static int _proc_do_string(char *data, int maxlen, int write, in _proc_do_string() argument
157 if (write) { in _proc_do_string()
259 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument
262 if (write) in proc_dostring()
265 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
429 int write, void *data) in do_proc_dointvec_conv() argument
431 if (write) { in do_proc_dointvec_conv()
456 int write, void *data) in do_proc_douintvec_conv() argument
458 if (write) { in do_proc_douintvec_conv()
472 int write, void *buffer, in __do_proc_dointvec() argument
475 int write, void *data), in __do_proc_dointvec()
482 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
494 if (write) { in __do_proc_dointvec()
507 if (write) { in __do_proc_dointvec()
532 if (!write && !first && left && !err) in __do_proc_dointvec()
534 if (write && !err && left) in __do_proc_dointvec()
536 if (write && first) in __do_proc_dointvec()
544 static int do_proc_dointvec(struct ctl_table *table, int write, in do_proc_dointvec() argument
547 int write, void *data), in do_proc_dointvec()
550 return __do_proc_dointvec(table->data, table, write, in do_proc_dointvec()
560 int write, void *data), in do_proc_douintvec_w() argument
615 int write, void *data), in do_proc_douintvec_r() argument
643 int write, void *buffer, in __do_proc_douintvec() argument
647 int write, void *data), in __do_proc_douintvec()
652 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
672 if (write) in __do_proc_douintvec()
678 int do_proc_douintvec(struct ctl_table *table, int write, in do_proc_douintvec() argument
682 int write, void *data), in do_proc_douintvec()
685 return __do_proc_douintvec(table->data, table, write, in do_proc_douintvec()
705 int proc_dobool(struct ctl_table *table, int write, void *buffer, in proc_dobool() argument
721 res = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_dobool()
724 if (write) in proc_dobool()
742 int proc_dointvec(struct ctl_table *table, int write, void *buffer, in proc_dointvec() argument
745 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
761 int proc_douintvec(struct ctl_table *table, int write, void *buffer, in proc_douintvec() argument
764 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
772 static int proc_taint(struct ctl_table *table, int write, in proc_taint() argument
779 if (write && !capable(CAP_SYS_ADMIN)) in proc_taint()
784 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
788 if (write) { in proc_taint()
827 int write, void *data) in do_proc_dointvec_minmax_conv() argument
835 int *ip = write ? &tmp : valp; in do_proc_dointvec_minmax_conv()
837 ret = do_proc_dointvec_conv(negp, lvalp, ip, write, data); in do_proc_dointvec_minmax_conv()
841 if (write) { in do_proc_dointvec_minmax_conv()
867 int proc_dointvec_minmax(struct ctl_table *table, int write, in proc_dointvec_minmax() argument
874 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
894 int write, void *data) in do_proc_douintvec_minmax_conv() argument
900 unsigned int *up = write ? &tmp : valp; in do_proc_douintvec_minmax_conv()
902 ret = do_proc_douintvec_conv(lvalp, up, write, data); in do_proc_douintvec_minmax_conv()
906 if (write) { in do_proc_douintvec_minmax_conv()
936 int proc_douintvec_minmax(struct ctl_table *table, int write, in proc_douintvec_minmax() argument
943 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
964 int proc_dou8vec_minmax(struct ctl_table *table, int write, in proc_dou8vec_minmax() argument
996 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
1000 if (write) in proc_dou8vec_minmax()
1007 static int sysrq_sysctl_handler(struct ctl_table *table, int write, in sysrq_sysctl_handler() argument
1014 ret = __do_proc_dointvec(&tmp, table, write, buffer, in sysrq_sysctl_handler()
1016 if (ret || !write) in sysrq_sysctl_handler()
1019 if (write) in sysrq_sysctl_handler()
1027 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1035 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1046 if (write) { in __do_proc_doulongvec_minmax()
1058 if (write) { in __do_proc_doulongvec_minmax()
1087 if (!write && !first && left && !err) in __do_proc_doulongvec_minmax()
1089 if (write && !err) in __do_proc_doulongvec_minmax()
1091 if (write && first) in __do_proc_doulongvec_minmax()
1099 static int do_proc_doulongvec_minmax(struct ctl_table *table, int write, in do_proc_doulongvec_minmax() argument
1103 return __do_proc_doulongvec_minmax(table->data, table, write, in do_proc_doulongvec_minmax()
1123 int proc_doulongvec_minmax(struct ctl_table *table, int write, in proc_doulongvec_minmax() argument
1126 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1146 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_doulongvec_ms_jiffies_minmax() argument
1149 return do_proc_doulongvec_minmax(table, write, buffer, in proc_doulongvec_ms_jiffies_minmax()
1156 int write, void *data) in do_proc_dointvec_jiffies_conv() argument
1158 if (write) { in do_proc_dointvec_jiffies_conv()
1182 int write, void *data) in do_proc_dointvec_userhz_jiffies_conv() argument
1184 if (write) { in do_proc_dointvec_userhz_jiffies_conv()
1205 int write, void *data) in do_proc_dointvec_ms_jiffies_conv() argument
1207 if (write) { in do_proc_dointvec_ms_jiffies_conv()
1229 int *valp, int write, void *data) in do_proc_dointvec_ms_jiffies_minmax_conv() argument
1237 int *ip = write ? &tmp : valp; in do_proc_dointvec_ms_jiffies_minmax_conv()
1239 ret = do_proc_dointvec_ms_jiffies_conv(negp, lvalp, ip, write, data); in do_proc_dointvec_ms_jiffies_minmax_conv()
1243 if (write) { in do_proc_dointvec_ms_jiffies_minmax_conv()
1267 int proc_dointvec_jiffies(struct ctl_table *table, int write, in proc_dointvec_jiffies() argument
1270 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1274 int proc_dointvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_dointvec_ms_jiffies_minmax() argument
1281 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax()
1300 int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, in proc_dointvec_userhz_jiffies() argument
1303 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
1323 int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, void *buffer, in proc_dointvec_ms_jiffies() argument
1326 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1330 static int proc_do_cad_pid(struct ctl_table *table, int write, void *buffer, in proc_do_cad_pid() argument
1339 r = __do_proc_dointvec(&tmp, table, write, buffer, in proc_do_cad_pid()
1341 if (r || !write) in proc_do_cad_pid()
1369 int proc_do_large_bitmap(struct ctl_table *table, int write, in proc_do_large_bitmap() argument
1379 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
1384 if (write) { in proc_do_large_bitmap()
1485 if (write) { in proc_do_large_bitmap()
1501 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument
1507 int proc_dobool(struct ctl_table *table, int write, in proc_dobool() argument
1513 int proc_dointvec(struct ctl_table *table, int write, in proc_dointvec() argument
1519 int proc_douintvec(struct ctl_table *table, int write, in proc_douintvec() argument
1525 int proc_dointvec_minmax(struct ctl_table *table, int write, in proc_dointvec_minmax() argument
1531 int proc_douintvec_minmax(struct ctl_table *table, int write, in proc_douintvec_minmax() argument
1537 int proc_dou8vec_minmax(struct ctl_table *table, int write, in proc_dou8vec_minmax() argument
1543 int proc_dointvec_jiffies(struct ctl_table *table, int write, in proc_dointvec_jiffies() argument
1549 int proc_dointvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_dointvec_ms_jiffies_minmax() argument
1555 int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, in proc_dointvec_userhz_jiffies() argument
1561 int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, in proc_dointvec_ms_jiffies() argument
1567 int proc_doulongvec_minmax(struct ctl_table *table, int write, in proc_doulongvec_minmax() argument
1573 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write, in proc_doulongvec_ms_jiffies_minmax() argument
1579 int proc_do_large_bitmap(struct ctl_table *table, int write, in proc_do_large_bitmap() argument
1588 int proc_do_static_key(struct ctl_table *table, int write, in proc_do_static_key() argument
1602 if (write && !capable(CAP_SYS_ADMIN)) in proc_do_static_key()
1607 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()
1608 if (write && !ret) { in proc_do_static_key()