Lines Matching refs:cmsghdr
92 struct cmsghdr { struct
109 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument
111 ((void __user *)(cmsg) + sizeof(struct cmsghdr))
112 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))
113 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len))
115 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \
116 (struct cmsghdr *)(ctl) : \
117 (struct cmsghdr *)NULL)
119 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \
141 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr()
142 struct cmsghdr *__cmsg) in __cmsg_nxthdr()
144 struct cmsghdr * __ptr; in __cmsg_nxthdr()
146 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
148 return (struct cmsghdr *)0; in __cmsg_nxthdr()
153 static inline struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr *__cmsg) in cmsg_nxthdr()