Home
last modified time | relevance | path

Searched refs:lenp (Results 1 – 24 of 24) sorted by relevance

/net/sunrpc/
Dsysctl.c63 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
69 *lenp = 0; in proc_do_xprt()
73 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
76 *lenp = 0; in proc_do_xprt()
79 *lenp = len; in proc_do_xprt()
84 proc_dodebug(struct ctl_table *table, int write, void *buffer, size_t *lenp, in proc_dodebug() argument
92 if ((*ppos && !write) || !*lenp) { in proc_dodebug()
93 *lenp = 0; in proc_dodebug()
97 left = *lenp; in proc_dodebug()
140 *lenp -= left; in proc_dodebug()
[all …]
Dxdr.c107 unsigned int *lenp, unsigned int maxlen) in xdr_decode_string_inplace() argument
114 *lenp = len; in xdr_decode_string_inplace()
/net/core/
Dsysctl_net_core.c50 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
68 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
119 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument
160 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl()
161 *lenp = 0; in flow_limit_cpu_sysctl()
174 len = min(sizeof(kbuf) - 1, *lenp); in flow_limit_cpu_sysctl()
177 *lenp = 0; in flow_limit_cpu_sysctl()
180 if (len < *lenp) in flow_limit_cpu_sysctl()
183 *lenp = len; in flow_limit_cpu_sysctl()
193 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_table_len_sysctl() argument
[all …]
Dneighbour.c3532 void *buffer, size_t *lenp, loff_t *ppos) in proc_unres_qlen() argument
3542 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_unres_qlen()
3584 void *buffer, size_t *lenp, in neigh_proc_dointvec_zero_intmax() argument
3593 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in neigh_proc_dointvec_zero_intmax()
3599 void *buffer, size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_ms_jiffies_positive() argument
3609 ret = proc_dointvec_ms_jiffies_minmax(&tmp, write, buffer, lenp, ppos); in neigh_proc_dointvec_ms_jiffies_positive()
3615 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec() argument
3617 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec()
3625 size_t *lenp, loff_t *ppos) in neigh_proc_dointvec_jiffies() argument
3627 int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_jiffies()
[all …]
/net/sctp/
Dsysctl.c47 void *buffer, size_t *lenp, loff_t *ppos);
49 void *buffer, size_t *lenp, loff_t *ppos);
51 size_t *lenp, loff_t *ppos);
53 size_t *lenp, loff_t *ppos);
55 void *buffer, size_t *lenp, loff_t *ppos);
57 void *buffer, size_t *lenp, loff_t *ppos);
59 void *buffer, size_t *lenp, loff_t *ppos);
381 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
400 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
426 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/net/ipv4/
Dsysctl_net_ipv4.c65 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_local_port_range() argument
81 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
100 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument
117 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports()
161 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_ping_group_range() argument
178 ret = proc_doulongvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
196 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_fwd_update_priority() argument
203 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
212 void *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
225 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
[all …]
Ddevinet.c2391 void *buffer, size_t *lenp, loff_t *ppos) in devinet_conf_proc() argument
2394 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc()
2443 void *buffer, size_t *lenp, loff_t *ppos) in devinet_sysctl_forward() argument
2454 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward()
2490 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_doint_and_flush() argument
2494 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv4_doint_and_flush()
Desp4.c379 __be16 *lenp = (void *)esp->esph; in esp_output_tcp_encap() local
395 *lenp = htons(len); in esp_output_tcp_encap()
396 esph = (struct ip_esp_hdr *)(lenp + 1); in esp_output_tcp_encap()
Droute.c3464 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_sysctl_rtcache_flush() argument
/net/sunrpc/xprtrdma/
Dsvc_rdma.c78 void *buffer, size_t *lenp, loff_t *ppos) in svcrdma_counter_handler() argument
95 *lenp = 0; in svcrdma_counter_handler()
99 if (len > *lenp) in svcrdma_counter_handler()
100 len = *lenp; in svcrdma_counter_handler()
103 *lenp = len; in svcrdma_counter_handler()
/net/ceph/
Dauth.c124 void *p = monhdr + 1, *end = buf + len, *lenp; in ceph_auth_build_hello() local
136 lenp = p; in ceph_auth_build_hello()
153 ceph_encode_32(&lenp, p - lenp - sizeof(u32)); in ceph_auth_build_hello()
431 void *lenp; in ceph_auth_get_request() local
454 lenp = p; in ceph_auth_get_request()
463 ceph_encode_32(&lenp, p - lenp - 4); in ceph_auth_get_request()
/net/netfilter/
Dnf_hooks_lwtunnel.c29 void *buffer, size_t *lenp, loff_t *ppos) in nf_hooks_lwtunnel_sysctl_handler() argument
45 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in nf_hooks_lwtunnel_sysctl_handler()
Dnf_log.c408 void *buffer, size_t *lenp, loff_t *ppos) in nf_log_proc_dostring() argument
424 r = proc_dostring(&tmp, write, buffer, lenp, ppos); in nf_log_proc_dostring()
451 r = proc_dostring(&tmp, write, buffer, lenp, ppos); in nf_log_proc_dostring()
Dnf_conntrack_standalone.c535 void *buffer, size_t *lenp, loff_t *ppos) in nf_conntrack_hash_sysctl() argument
542 ret = proc_dointvec(table, write, buffer, lenp, ppos); in nf_conntrack_hash_sysctl()
/net/ipv6/
Dsysctl_net_ipv6.c34 void *buffer, size_t *lenp, loff_t *ppos) in proc_rt6_multipath_hash_policy() argument
41 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in proc_rt6_multipath_hash_policy()
50 size_t *lenp, loff_t *ppos) in proc_rt6_multipath_hash_fields() argument
57 ret = proc_douintvec_minmax(table, write, buffer, lenp, ppos); in proc_rt6_multipath_hash_fields()
Daddrconf.c6251 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_forward() argument
6266 ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_forward()
6276 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_mtu() argument
6286 return proc_dointvec_minmax(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_mtu()
6347 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_disable() argument
6362 ret = proc_dointvec(&lctl, write, buffer, lenp, ppos); in addrconf_sysctl_disable()
6372 void *buffer, size_t *lenp, loff_t *ppos) in addrconf_sysctl_proxy_ndp() argument
6379 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in addrconf_sysctl_proxy_ndp()
6413 void *buffer, size_t *lenp, in addrconf_sysctl_addr_gen_mode() argument
6431 ret = proc_douintvec(&tmp, write, buffer, lenp, ppos); in addrconf_sysctl_addr_gen_mode()
[all …]
Desp6.c415 __be16 *lenp = (void *)esp->esph; in esp6_output_tcp_encap() local
431 *lenp = htons(len); in esp6_output_tcp_encap()
432 esph = (struct ip_esp_hdr *)(lenp + 1); in esp6_output_tcp_encap()
Dndisc.c1943 size_t *lenp, loff_t *ppos) in ndisc_ifinfo_sysctl_change() argument
1954 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1958 buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1963 buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
Droute.c6312 void *buffer, size_t *lenp, loff_t *ppos) in ipv6_sysctl_rtcache_flush() argument
6322 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
/net/phonet/
Dsysctl.c52 void *buffer, size_t *lenp, loff_t *ppos) in proc_local_port_range() argument
64 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_local_port_range()
/net/rds/
Dtcp.c65 void *buffer, size_t *lenp, loff_t *fpos);
683 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument
688 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
/net/bridge/
Dbr_netfilter_hooks.c1082 void *buffer, size_t *lenp, loff_t *ppos) in brnf_sysctl_call_tables() argument
1086 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables()
/net/mpls/
Daf_mpls.c1366 void *buffer, size_t *lenp, loff_t *ppos) in mpls_conf_proc() argument
1369 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in mpls_conf_proc()
2617 void *buffer, size_t *lenp, loff_t *ppos) in mpls_platform_labels() argument
2631 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in mpls_platform_labels()
/net/netfilter/ipvs/
Dip_vs_ctl.c1772 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_defense_mode() argument
1785 rc = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_do_defense_mode()
1799 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_threshold() argument
1813 rc = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_do_sync_threshold()
1827 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_sync_ports() argument
1839 rc = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_do_sync_ports()