Home
last modified time | relevance | path

Searched refs:msghdr (Results 1 – 25 of 220) sorted by relevance

123456789

/Linux-v5.4/include/net/
Dping.h30 int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len,
33 struct msghdr *msg,
36 struct msghdr *msg,
58 struct msghdr *msg;
74 int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock,
76 int ping_common_sendmsg(int family, struct msghdr *msg, size_t len,
Dscm.h40 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm);
41 void scm_detach_fds_compat(struct msghdr *msg, struct scm_cookie *scm);
42 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
78 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, in scm_send()
93 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec()
109 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec()
113 static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg, in scm_recv()
Dcompat.h37 #define compat_msghdr msghdr
41 int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *,
44 int put_cmsg_compat(struct msghdr*, int, int, int, void *);
46 int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *,
Dtransp_v6.h37 void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
39 void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
41 void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg,
44 int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg,
Dinet_common.h14 struct msghdr;
29 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
32 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
46 int inet_recv_error(struct sock *sk, struct msghdr *msg, int len,
Daf_vsock.h105 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
108 struct msghdr *, size_t len);
113 ssize_t (*stream_dequeue)(struct vsock_sock *, struct msghdr *,
115 ssize_t (*stream_enqueue)(struct vsock_sock *, struct msghdr *,
/Linux-v5.4/include/linux/
Dnet.h129 struct msghdr;
174 int (*sendmsg) (struct socket *sock, struct msghdr *m,
184 int (*recvmsg) (struct socket *sock, struct msghdr *m,
202 int (*sendmsg_locked)(struct sock *sk, struct msghdr *msg,
238 int sock_sendmsg(struct socket *sock, struct msghdr *msg);
239 int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
291 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
293 int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg,
295 int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
Dvmw_vmci_api.h19 struct msghdr;
69 struct msghdr *msg, size_t iov_size, int mode);
71 struct msghdr *msg, size_t iov_size, int mode);
72 ssize_t vmci_qpair_peekv(struct vmci_qp *qpair, struct msghdr *msg, size_t iov_size,
Dvirtio_vsock.h64 struct msghdr *msg;
82 struct msghdr *msg,
87 struct msghdr *msg,
143 struct msghdr *msg,
148 struct msghdr *msg,
Dsocket.h49 struct msghdr { struct
139 static inline struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr *__cmsg) in cmsg_nxthdr()
144 static inline size_t msg_data_left(struct msghdr *msg) in msg_data_left()
354 extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
364 extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss);
365 extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss);
/Linux-v5.4/drivers/net/ethernet/brocade/bna/
Dbna_enet.c77 struct bfi_msgq_mhdr *msghdr) in bna_bfi_ethport_enable_aen() argument
87 struct bfi_msgq_mhdr *msghdr) in bna_bfi_ethport_disable_aen() argument
99 struct bfi_msgq_mhdr *msghdr) in bna_bfi_ethport_admin_rsp() argument
104 container_of(msghdr, struct bfi_enet_rsp, mh); in bna_bfi_ethport_admin_rsp()
126 struct bfi_msgq_mhdr *msghdr) in bna_bfi_ethport_lpbk_rsp() argument
131 container_of(msghdr, struct bfi_enet_rsp, mh); in bna_bfi_ethport_lpbk_rsp()
150 bna_bfi_pause_set_rsp(struct bna_enet *enet, struct bfi_msgq_mhdr *msghdr) in bna_bfi_pause_set_rsp() argument
157 struct bfi_msgq_mhdr *msghdr) in bna_bfi_attr_get_rsp() argument
160 container_of(msghdr, struct bfi_enet_attr_rsp, mh); in bna_bfi_attr_get_rsp()
179 bna_bfi_stats_get_rsp(struct bna *bna, struct bfi_msgq_mhdr *msghdr) in bna_bfi_stats_get_rsp() argument
[all …]
Dbna.h255 void bna_bfi_stats_clr_rsp(struct bna *bna, struct bfi_msgq_mhdr *msghdr);
290 struct bfi_msgq_mhdr *msghdr);
292 struct bfi_msgq_mhdr *msghdr);
323 struct bfi_msgq_mhdr *msghdr);
325 struct bfi_msgq_mhdr *msghdr);
326 void bna_bfi_rxf_cfg_rsp(struct bna_rxf *rxf, struct bfi_msgq_mhdr *msghdr);
328 struct bfi_msgq_mhdr *msghdr);
330 struct bfi_msgq_mhdr *msghdr);
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c200 struct mbox_msghdr *msghdr = NULL; in otx2_mbox_alloc_msg_rsp() local
215 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp()
218 memset(msghdr, 0, sizeof(*msghdr) + size); in otx2_mbox_alloc_msg_rsp()
220 msghdr->ver = OTX2_MBOX_VERSION; in otx2_mbox_alloc_msg_rsp()
223 msghdr->next_msgoff = mdev->msg_size + msgs_offset; in otx2_mbox_alloc_msg_rsp()
227 return msghdr; in otx2_mbox_alloc_msg_rsp()
/Linux-v5.4/net/rds/
Drecv.c450 int rds_notify_queue_get(struct rds_sock *rs, struct msghdr *msghdr) in rds_notify_queue_get() argument
467 if (msghdr) { in rds_notify_queue_get()
468 max_messages = msghdr->msg_controllen / CMSG_SPACE(sizeof(cmsg)); in rds_notify_queue_get()
488 if (msghdr) { in rds_notify_queue_get()
492 err = put_cmsg(msghdr, SOL_RDS, RDS_CMSG_RDMA_STATUS, in rds_notify_queue_get()
517 static int rds_notify_cong(struct rds_sock *rs, struct msghdr *msghdr) in rds_notify_cong() argument
523 err = put_cmsg(msghdr, SOL_RDS, RDS_CMSG_CONG_UPDATE, in rds_notify_cong()
538 static int rds_cmsg_recv(struct rds_incoming *inc, struct msghdr *msg, in rds_cmsg_recv()
597 static bool rds_recvmsg_zcookie(struct rds_sock *rs, struct msghdr *msg) in rds_recvmsg_zcookie()
632 int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, in rds_recvmsg()
/Linux-v5.4/net/sctp/
Dulpevent.c930 struct msghdr *msghdr) in sctp_ulpevent_read_sndrcvinfo() argument
950 put_cmsg(msghdr, IPPROTO_SCTP, SCTP_SNDRCV, in sctp_ulpevent_read_sndrcvinfo()
958 struct msghdr *msghdr) in sctp_ulpevent_read_rcvinfo() argument
975 put_cmsg(msghdr, IPPROTO_SCTP, SCTP_RCVINFO, in sctp_ulpevent_read_rcvinfo()
983 struct msghdr *msghdr, in __sctp_ulpevent_read_nxtinfo() argument
997 put_cmsg(msghdr, IPPROTO_SCTP, SCTP_NXTINFO, in __sctp_ulpevent_read_nxtinfo()
1002 struct msghdr *msghdr, in sctp_ulpevent_read_nxtinfo() argument
1011 msghdr, skb); in sctp_ulpevent_read_nxtinfo()
/Linux-v5.4/drivers/xen/
Dpvcalls-front.h17 struct msghdr *msg,
20 struct msghdr *msg,
/Linux-v5.4/net/ipv6/
Dudp_impl.h28 int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
29 int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock,
/Linux-v5.4/net/atm/
Dcommon.h17 int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
19 int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len);
/Linux-v5.4/include/net/sctp/
Dulpevent.h144 struct msghdr *);
146 struct msghdr *);
148 struct msghdr *, struct sock *sk);
/Linux-v5.4/net/core/
Dscm.c131 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p) in __scm_send()
213 int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data) in put_cmsg()
252 void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss_internal) in put_cmsg_scm_timestamping64()
266 void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss_internal) in put_cmsg_scm_timestamping()
278 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds()
/Linux-v5.4/crypto/
Dalgif_skcipher.c37 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg()
50 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in _skcipher_recvmsg()
153 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg()
246 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg_nokey()
270 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_nokey()
/Linux-v5.4/drivers/soc/qcom/
Dqmi_interface.c168 struct msghdr msg = { }; in qmi_send_new_lookup()
231 struct msghdr msg = { }; in qmi_send_new_server()
527 struct msghdr msg = { .msg_name = &sq, .msg_namelen = sizeof(sq) }; in qmi_data_ready_work()
737 struct msghdr msghdr = {}; in qmi_send_message() local
753 msghdr.msg_name = sq; in qmi_send_message()
754 msghdr.msg_namelen = sizeof(*sq); in qmi_send_message()
759 ret = kernel_sendmsg(qmi->sock, &msghdr, &iv, 1, len); in qmi_send_message()
/Linux-v5.4/net/
Dsocket.c631 INDIRECT_CALLABLE_DECLARE(int inet_sendmsg(struct socket *, struct msghdr *,
633 INDIRECT_CALLABLE_DECLARE(int inet6_sendmsg(struct socket *, struct msghdr *,
635 static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) in sock_sendmsg_nosec()
652 int sock_sendmsg(struct socket *sock, struct msghdr *msg) in sock_sendmsg()
673 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, in kernel_sendmsg()
694 int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg, in kernel_sendmsg_locked()
731 static void put_ts_pktinfo(struct msghdr *msg, struct sk_buff *skb) in put_ts_pktinfo()
755 void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, in __sock_recv_timestamp()
832 void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk, in __sock_recv_wifi_status()
848 static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk, in sock_recv_drops()
[all …]
/Linux-v5.4/net/ipv4/
Dip_sockglue.c56 static void ip_cmsg_recv_pktinfo(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_pktinfo()
65 static void ip_cmsg_recv_ttl(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_ttl()
71 static void ip_cmsg_recv_tos(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_tos()
76 static void ip_cmsg_recv_opts(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_opts()
86 static void ip_cmsg_recv_retopts(struct net *net, struct msghdr *msg, in ip_cmsg_recv_retopts()
104 static void ip_cmsg_recv_fragsize(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_fragsize()
115 static void ip_cmsg_recv_checksum(struct msghdr *msg, struct sk_buff *skb, in ip_cmsg_recv_checksum()
131 static void ip_cmsg_recv_security(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_security()
149 static void ip_cmsg_recv_dstaddr(struct msghdr *msg, struct sk_buff *skb) in ip_cmsg_recv_dstaddr()
171 void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk, in ip_cmsg_recv_offset()
[all …]
/Linux-v5.4/tools/testing/selftests/net/
Dtls.c254 struct msghdr msg; in TEST_F()
263 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
276 struct msghdr msg; in TEST_F()
280 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
300 struct msghdr msg; in TEST_F()
307 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
340 struct msghdr msg; in TEST_F()
344 memset(&msg, 0, sizeof(struct msghdr)); in TEST_F()
438 struct msghdr hdr; in TEST_F()
457 struct msghdr hdr; in TEST_F()
[all …]

123456789