Home
last modified time | relevance | path

Searched refs:cmsghdr (Results 1 – 21 of 21) sorted by relevance

/linux-4.1.27/include/linux/
Dsocket.h79 struct cmsghdr { struct
95 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument
96 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
97 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
99 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \
100 (struct cmsghdr *)(ctl) : \
101 (struct cmsghdr *)NULL)
103 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \
125 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr()
126 struct cmsghdr *__cmsg) in __cmsg_nxthdr()
[all …]
/linux-4.1.27/net/core/
Dscm.c67 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) in scm_fp_copy()
74 num = (cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)))/sizeof(int); in scm_fp_copy()
135 struct cmsghdr *cmsg; in __scm_send()
217 struct cmsghdr __user *cm in put_cmsg()
218 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg()
219 struct cmsghdr cmhdr; in put_cmsg()
241 if (copy_to_user(CMSG_DATA(cm), data, cmlen - sizeof(struct cmsghdr))) in put_cmsg()
256 struct cmsghdr __user *cm in scm_detach_fds()
257 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds()
270 if (msg->msg_controllen > sizeof(struct cmsghdr)) in scm_detach_fds()
[all …]
/linux-4.1.27/net/rds/
Drds.h735 struct cmsghdr *cmsg);
737 struct cmsghdr *cmsg);
739 struct cmsghdr *cmsg);
741 struct cmsghdr *cmsg);
747 struct cmsghdr *cmsg);
Drdma.c547 struct cmsghdr *cmsg) in rds_cmsg_rdma_args()
713 struct cmsghdr *cmsg) in rds_cmsg_rdma_dest()
755 struct cmsghdr *cmsg) in rds_cmsg_rdma_map()
768 struct cmsghdr *cmsg) in rds_cmsg_atomic()
Dsend.c853 struct cmsghdr *cmsg; in rds_rm_size()
907 struct cmsghdr *cmsg; in rds_cmsg_send()
/linux-4.1.27/net/
Dcompat.c128 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern()
134 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()
145 CMSG_ALIGN(sizeof(struct cmsghdr))); in cmsghdr_from_user_compat_to_kern()
172 CMSG_ALIGN(sizeof(struct cmsghdr))); in cmsghdr_from_user_compat_to_kern()
185 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern()
197 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
Dsocket.c1892 unsigned char ctl[sizeof(struct cmsghdr) + 20] in ___sys_sendmsg()
/linux-4.1.27/net/sunrpc/
Dsvcsock.c141 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data()
240 struct cmsghdr hdr; in svc_sendto()
243 struct cmsghdr *cmh = &buffer.hdr; in svc_sendto()
483 struct cmsghdr *cmh) in svc_udp_get_dest_address4()
500 struct cmsghdr *cmh) in svc_udp_get_dest_address6()
522 struct cmsghdr *cmh) in svc_udp_get_dest_address()
544 struct cmsghdr hdr; in svc_udp_recvfrom()
547 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom()
/linux-4.1.27/Documentation/networking/timestamping/
Dtimestamping.c159 struct cmsghdr *cmsg; in printpacket()
286 struct cmsghdr cm; in recvpacket()
Dtxtimestamp.c183 struct cmsghdr *cm; in __recv_errmsg_cmsg()
/linux-4.1.27/arch/um/os-Linux/drivers/
Dtuntap_user.c71 struct cmsghdr *cmsg; in tuntap_open_tramp()
/linux-4.1.27/net/rxrpc/
Dar-output.c39 struct cmsghdr *cmsg; in rxrpc_sendmsg_cmsg()
51 len = cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)); in rxrpc_sendmsg_cmsg()
/linux-4.1.27/arch/um/os-Linux/
Dfile.c484 struct cmsghdr *cmsg; in os_rcv_fd()
/linux-4.1.27/crypto/
Daf_alg.c440 struct cmsghdr *cmsg; in af_alg_cmsg_send()
/linux-4.1.27/net/ipv4/
Dip_sockglue.c226 struct cmsghdr *cmsg; in ip_cmsg_send()
251 err = cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)); in ip_cmsg_send()
/linux-4.1.27/fs/dlm/
Dlowcomms.c543 struct cmsghdr *cmsg; in sctp_send_shutdown()
1070 struct cmsghdr *cmsg; in sctp_init_assoc()
/linux-4.1.27/Documentation/sysctl/
Dnet.txt189 of struct cmsghdr structures with appended data.
/linux-4.1.27/net/dccp/
Dproto.c706 struct cmsghdr *cmsg; in dccp_msghdr_parse()
/linux-4.1.27/net/ipv6/
Ddatagram.c691 struct cmsghdr *cmsg; in ip6_datagram_send_ctl()
/linux-4.1.27/net/iucv/
Daf_iucv.c1039 struct cmsghdr *cmsg; in iucv_sock_sendmsg()
/linux-4.1.27/net/sctp/
Dsocket.c6609 struct cmsghdr *cmsg; in sctp_msghdr_parse()