/kernel/linux/linux-5.10/net/kcm/ |
H A D | kcmsock.c | 26 #include <net/kcm.h> 29 #include <uapi/linux/kcm.h> 121 static void kcm_rcv_ready(struct kcm_sock *kcm) in kcm_rcv_ready() argument 123 struct kcm_mux *mux = kcm->mux; in kcm_rcv_ready() 127 if (unlikely(kcm->rx_wait || kcm->rx_psock || kcm->rx_disabled)) in kcm_rcv_ready() 131 if (kcm_queue_rcv_skb(&kcm->sk, skb)) { in kcm_rcv_ready() 134 WARN_ON(!sk_rmem_alloc_get(&kcm->sk)); in kcm_rcv_ready() 143 if (kcm_queue_rcv_skb(&kcm in kcm_rcv_ready() 171 struct kcm_sock *kcm = kcm_sk(sk); kcm_rfree() local 222 struct kcm_sock *kcm; requeue_rx_msgs() local 256 struct kcm_sock *kcm; reserve_rx_kcm() local 307 struct kcm_sock *kcm = psock->rx_kcm; unreserve_rx_kcm() local 364 struct kcm_sock *kcm; kcm_rcv_strparser() local 415 struct kcm_sock *kcm; psock_write_space() local 439 reserve_psock(struct kcm_sock *kcm) reserve_psock() argument 495 struct kcm_sock *kcm; psock_now_avail() local 520 unreserve_psock(struct kcm_sock *kcm) unreserve_psock() argument 566 kcm_report_tx_retry(struct kcm_sock *kcm) kcm_report_tx_retry() argument 578 kcm_write_msgs(struct kcm_sock *kcm) kcm_write_msgs() argument 726 struct kcm_sock *kcm = container_of(w, struct kcm_sock, tx_work); kcm_tx_work() local 754 kcm_push(struct kcm_sock *kcm) kcm_push() argument 765 struct kcm_sock *kcm = kcm_sk(sk); kcm_sendpage() local 906 struct kcm_sock *kcm = kcm_sk(sk); kcm_sendmsg() local 1095 struct kcm_sock *kcm = kcm_sk(sk); kcm_recvmsg() local 1146 struct kcm_sock *kcm = kcm_sk(sk); kcm_splice_read() local 1191 kcm_recv_disable(struct kcm_sock *kcm) kcm_recv_disable() argument 1217 kcm_recv_enable(struct kcm_sock *kcm) kcm_recv_enable() argument 1235 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_setsockopt() local 1269 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_getsockopt() local 1297 init_kcm_sock(struct kcm_sock *kcm, struct kcm_mux *mux) init_kcm_sock() argument 1337 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_attach() local 1565 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_unattach_ioctl() local 1742 kcm_done(struct kcm_sock *kcm) kcm_done() argument 1796 struct kcm_sock *kcm; kcm_release() local [all...] |
H A D | kcmproc.c | 12 #include <net/kcm.h> 109 static void kcm_format_sock(struct kcm_sock *kcm, struct seq_file *seq, in kcm_format_sock() argument 113 " kcm-%-7u %-10llu %-16llu %-10llu %-16llu %-8d %-8d %-8d %-8s ", in kcm_format_sock() 114 kcm->index, in kcm_format_sock() 115 kcm->stats.rx_msgs, in kcm_format_sock() 116 kcm->stats.rx_bytes, in kcm_format_sock() 117 kcm->stats.tx_msgs, in kcm_format_sock() 118 kcm->stats.tx_bytes, in kcm_format_sock() 119 kcm->sk.sk_receive_queue.qlen, in kcm_format_sock() 120 sk_rmem_alloc_get(&kcm in kcm_format_sock() 189 struct kcm_sock *kcm; kcm_format_mux() local [all...] |
H A D | Makefile | 2 obj-$(CONFIG_AF_KCM) += kcm.o 4 kcm-y := kcmsock.o kcmproc.o
|
/kernel/linux/linux-6.6/net/kcm/ |
H A D | kcmsock.c | 27 #include <net/kcm.h> 30 #include <uapi/linux/kcm.h> 123 static void kcm_rcv_ready(struct kcm_sock *kcm) in kcm_rcv_ready() argument 125 struct kcm_mux *mux = kcm->mux; in kcm_rcv_ready() 129 if (unlikely(kcm->rx_wait || kcm->rx_psock || kcm->rx_disabled)) in kcm_rcv_ready() 133 if (kcm_queue_rcv_skb(&kcm->sk, skb)) { in kcm_rcv_ready() 136 WARN_ON(!sk_rmem_alloc_get(&kcm->sk)); in kcm_rcv_ready() 145 if (kcm_queue_rcv_skb(&kcm in kcm_rcv_ready() 173 struct kcm_sock *kcm = kcm_sk(sk); kcm_rfree() local 224 struct kcm_sock *kcm; requeue_rx_msgs() local 258 struct kcm_sock *kcm; reserve_rx_kcm() local 309 struct kcm_sock *kcm = psock->rx_kcm; unreserve_rx_kcm() local 368 struct kcm_sock *kcm; kcm_rcv_strparser() local 419 struct kcm_sock *kcm; psock_write_space() local 443 reserve_psock(struct kcm_sock *kcm) reserve_psock() argument 499 struct kcm_sock *kcm; psock_now_avail() local 524 unreserve_psock(struct kcm_sock *kcm) unreserve_psock() argument 570 kcm_report_tx_retry(struct kcm_sock *kcm) kcm_report_tx_retry() argument 582 kcm_write_msgs(struct kcm_sock *kcm) kcm_write_msgs() argument 712 struct kcm_sock *kcm = container_of(w, struct kcm_sock, tx_work); kcm_tx_work() local 740 kcm_push(struct kcm_sock *kcm) kcm_push() argument 749 struct kcm_sock *kcm = kcm_sk(sk); kcm_sendmsg() local 959 struct kcm_sock *kcm = kcm_sk(sk); kcm_splice_eof() local 973 struct kcm_sock *kcm = kcm_sk(sk); kcm_recvmsg() local 1023 struct kcm_sock *kcm = kcm_sk(sk); kcm_splice_read() local 1068 kcm_recv_disable(struct kcm_sock *kcm) kcm_recv_disable() argument 1094 kcm_recv_enable(struct kcm_sock *kcm) kcm_recv_enable() argument 1112 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_setsockopt() local 1146 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_getsockopt() local 1175 init_kcm_sock(struct kcm_sock *kcm, struct kcm_mux *mux) init_kcm_sock() argument 1215 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_attach() local 1443 struct kcm_sock *kcm = kcm_sk(sock->sk); kcm_unattach_ioctl() local 1620 kcm_done(struct kcm_sock *kcm) kcm_done() argument 1674 struct kcm_sock *kcm; kcm_release() local [all...] |
H A D | kcmproc.c | 12 #include <net/kcm.h> 109 static void kcm_format_sock(struct kcm_sock *kcm, struct seq_file *seq, in kcm_format_sock() argument 113 " kcm-%-7u %-10llu %-16llu %-10llu %-16llu %-8d %-8d %-8d %-8s ", in kcm_format_sock() 114 kcm->index, in kcm_format_sock() 115 kcm->stats.rx_msgs, in kcm_format_sock() 116 kcm->stats.rx_bytes, in kcm_format_sock() 117 kcm->stats.tx_msgs, in kcm_format_sock() 118 kcm->stats.tx_bytes, in kcm_format_sock() 119 kcm->sk.sk_receive_queue.qlen, in kcm_format_sock() 120 sk_rmem_alloc_get(&kcm in kcm_format_sock() 189 struct kcm_sock *kcm; kcm_format_mux() local [all...] |
H A D | Makefile | 2 obj-$(CONFIG_AF_KCM) += kcm.o 4 kcm-y := kcmsock.o kcmproc.o
|
/kernel/linux/linux-5.10/include/net/ |
H A D | kcm.h | 14 #include <uapi/linux/kcm.h>
|
/kernel/linux/linux-6.6/include/net/ |
H A D | kcm.h | 14 #include <uapi/linux/kcm.h>
|
/kernel/linux/linux-6.6/net/ |
H A D | Makefile | 38 obj-$(CONFIG_AF_KCM) += kcm/
|