cmsghdr 85 include/linux/socket.h #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) cmsghdr 86 include/linux/socket.h #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) cmsghdr 87 include/linux/socket.h #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) cmsghdr 89 include/linux/socket.h #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ cmsghdr 90 include/linux/socket.h (struct cmsghdr *)(ctl) : \ cmsghdr 91 include/linux/socket.h (struct cmsghdr *)NULL) cmsghdr 93 include/linux/socket.h #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ cmsghdr 111 include/linux/socket.h static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, cmsghdr 112 include/linux/socket.h struct cmsghdr *__cmsg) cmsghdr 114 include/linux/socket.h struct cmsghdr * __ptr; cmsghdr 116 include/linux/socket.h __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); cmsghdr 118 include/linux/socket.h return (struct cmsghdr *)0; cmsghdr 123 include/linux/socket.h static inline struct cmsghdr * cmsg_nxthdr (struct msghdr *__msg, struct cmsghdr *__cmsg)