Searched refs:CMSG_ALIGN (Results 1 – 5 of 5) sorted by relevance
95 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) macro98 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))132 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
1028 *p += CMSG_ALIGN(ipv6_optlen(*dest)); in ipv6_renew_option()1062 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()1064 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()1066 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()1068 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()1072 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options()
381 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()404 if (copy_from_user(fl->opt+1, optval+CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
148 tmp = CMSG_ALIGN(tmp); in cmsghdr_from_user_compat_to_kern()174 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern()177 tmp = CMSG_ALIGN(tmp); in cmsghdr_from_user_compat_to_kern()
2276 CMSG_ALIGN(sizeof(struct cmsghdr))); in ___sys_sendmsg()