Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/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,
Dcompat.h55 #define compat_msghdr msghdr
59 int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg,
62 int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *,
64 int put_cmsg_compat(struct msghdr*, int, int, int, void *);
66 int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *,
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()
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,
52 int inet_recv_error(struct sock *sk, struct msghdr *msg, int len,
Daf_vsock.h120 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
123 struct msghdr *, size_t len);
128 ssize_t (*stream_dequeue)(struct vsock_sock *, struct msghdr *,
130 ssize_t (*stream_enqueue)(struct vsock_sock *, struct msghdr *,
/kernel/linux/linux-5.10/include/linux/
Dsocket.h50 struct msghdr { struct
153 static inline struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr *__cmsg) in cmsg_nxthdr()
158 static inline size_t msg_data_left(struct msghdr *msg) in msg_data_left()
369 extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
379 extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss);
380 extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss);
396 extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
398 extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
402 extern int sendmsg_copy_msghdr(struct msghdr *msg,
405 extern int recvmsg_copy_msghdr(struct msghdr *msg,
[all …]
Dnet.h133 struct msghdr;
175 int (*sendmsg) (struct socket *sock, struct msghdr *m,
185 int (*recvmsg) (struct socket *sock, struct msghdr *m,
203 int (*sendmsg_locked)(struct sock *sk, struct msghdr *msg,
239 int sock_sendmsg(struct socket *sock, struct msghdr *msg);
240 int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
308 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
310 int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg,
312 int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
Dvirtio_vsock.h57 struct msghdr *msg;
75 struct msghdr *msg,
80 struct msghdr *msg,
131 struct msghdr *msg,
136 struct msghdr *msg,
Dvmw_vmci_api.h19 struct msghdr;
71 struct msghdr *msg, size_t iov_size, int mode);
73 struct msghdr *msg, size_t iov_size, int mode);
74 ssize_t vmci_qpair_peekv(struct vmci_qp *qpair, struct msghdr *msg, size_t iov_size,
/kernel/linux/linux-5.10/tools/perf/trace/beauty/include/linux/
Dsocket.h50 struct msghdr { struct
153 static inline struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr *__cmsg) in cmsg_nxthdr()
158 static inline size_t msg_data_left(struct msghdr *msg) in msg_data_left()
368 extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
378 extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss);
379 extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss);
395 extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg,
397 extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,
401 extern int sendmsg_copy_msghdr(struct msghdr *msg,
404 extern int recvmsg_copy_msghdr(struct msghdr *msg,
[all …]
/kernel/linux/linux-5.10/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);
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_007.cpp43 struct msghdr msg = { 0 }; in TcpTest()
128 ret = sendmsg(lsfd, reinterpret_cast<struct msghdr *>(INVALID_USER_ADDR), 0); in TcpTest()
131 ret = sendmsg(lsfd, reinterpret_cast<struct msghdr *>(INVALID_KERNEL_ADDR), 0); in TcpTest()
138 ret = recvmsg(lsfd, static_cast<struct msghdr *>(&msg), 0); in TcpTest()
141 ret = recvmsg(lsfd, static_cast<struct msghdr *>(&msg), 0); in TcpTest()
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dsocket.h45 struct msghdr { struct
87 struct msghdr msg_hdr; argument
251 ssize_t sendmsg(int, const struct msghdr *, int);
252 ssize_t recvmsg(int, struct msghdr *, int);
/kernel/linux/linux-5.10/net/rds/
Drecv.c450 int rds_notify_queue_get(struct rds_sock *rs, struct msghdr *msghdr) in rds_notify_queue_get() argument
468 if (msghdr) { in rds_notify_queue_get()
469 max_messages = msghdr->msg_controllen / CMSG_SPACE(sizeof(cmsg)); in rds_notify_queue_get()
489 if (msghdr) { in rds_notify_queue_get()
493 err = put_cmsg(msghdr, SOL_RDS, RDS_CMSG_RDMA_STATUS, in rds_notify_queue_get()
518 static int rds_notify_cong(struct rds_sock *rs, struct msghdr *msghdr) in rds_notify_cong() argument
524 err = put_cmsg(msghdr, SOL_RDS, RDS_CMSG_CONG_UPDATE, in rds_notify_cong()
539 static int rds_cmsg_recv(struct rds_incoming *inc, struct msghdr *msg, in rds_cmsg_recv()
598 static bool rds_recvmsg_zcookie(struct rds_sock *rs, struct msghdr *msg) in rds_recvmsg_zcookie()
633 int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, in rds_recvmsg()
/kernel/linux/linux-5.10/drivers/xen/
Dpvcalls-front.h17 struct msghdr *msg,
20 struct msghdr *msg,
/kernel/linux/linux-5.10/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()
255 void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss_internal) in put_cmsg_scm_timestamping64()
269 void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss_internal) in put_cmsg_scm_timestamping()
283 static int scm_max_fds(struct msghdr *msg) in scm_max_fds()
290 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds()
/kernel/linux/linux-5.10/net/ipv6/
Dudp_impl.h22 int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len);
23 int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock,
/kernel/linux/linux-5.10/net/sctp/
Dulpevent.c988 struct msghdr *msghdr) in sctp_ulpevent_read_sndrcvinfo() argument
1008 put_cmsg(msghdr, IPPROTO_SCTP, SCTP_SNDRCV, in sctp_ulpevent_read_sndrcvinfo()
1016 struct msghdr *msghdr) in sctp_ulpevent_read_rcvinfo() argument
1033 put_cmsg(msghdr, IPPROTO_SCTP, SCTP_RCVINFO, in sctp_ulpevent_read_rcvinfo()
1041 struct msghdr *msghdr, in __sctp_ulpevent_read_nxtinfo() argument
1055 put_cmsg(msghdr, IPPROTO_SCTP, SCTP_NXTINFO, in __sctp_ulpevent_read_nxtinfo()
1060 struct msghdr *msghdr, in sctp_ulpevent_read_nxtinfo() argument
1069 msghdr, skb); in sctp_ulpevent_read_nxtinfo()
/kernel/linux/linux-5.10/net/sunrpc/
Dsocklib.c205 static inline int xprt_sendmsg(struct socket *sock, struct msghdr *msg, in xprt_sendmsg()
213 static int xprt_send_kvec(struct socket *sock, struct msghdr *msg, in xprt_send_kvec()
220 static int xprt_send_pagedata(struct socket *sock, struct msghdr *msg, in xprt_send_pagedata()
239 static int xprt_send_rm_and_kvec(struct socket *sock, struct msghdr *msg, in xprt_send_rm_and_kvec()
269 int xprt_sock_sendmsg(struct socket *sock, struct msghdr *msg, in xprt_sock_sendmsg()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c228 struct mbox_msghdr *msghdr = NULL; in otx2_mbox_alloc_msg_rsp() local
243 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp()
246 memset(msghdr, 0, size); in otx2_mbox_alloc_msg_rsp()
248 msghdr->ver = OTX2_MBOX_VERSION; in otx2_mbox_alloc_msg_rsp()
251 msghdr->next_msgoff = mdev->msg_size + msgs_offset; in otx2_mbox_alloc_msg_rsp()
255 return msghdr; in otx2_mbox_alloc_msg_rsp()
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/include/net/sctp/
Dulpevent.h146 struct msghdr *);
148 struct msghdr *);
150 struct msghdr *, struct sock *sk);
/kernel/linux/linux-5.10/net/
Dsocket.c645 INDIRECT_CALLABLE_DECLARE(int inet_sendmsg(struct socket *, struct msghdr *,
647 INDIRECT_CALLABLE_DECLARE(int inet6_sendmsg(struct socket *, struct msghdr *,
649 static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) in sock_sendmsg_nosec()
666 int sock_sendmsg(struct socket *sock, struct msghdr *msg) in sock_sendmsg()
687 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, in kernel_sendmsg()
708 int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg, in kernel_sendmsg_locked()
745 static void put_ts_pktinfo(struct msghdr *msg, struct sk_buff *skb) in put_ts_pktinfo()
769 void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, in __sock_recv_timestamp()
846 void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk, in __sock_recv_wifi_status()
862 static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk, in sock_recv_drops()
[all …]

12345678910