Home
last modified time | relevance | path

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

/openbmc/linux/net/
H A Dcompat.c143 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() local
152 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()
176 kcmsg_base = kcmsg = sock_kmalloc(sk, kcmlen, GFP_KERNEL); in cmsghdr_from_user_compat_to_kern()
177 if (kcmsg == NULL) in cmsghdr_from_user_compat_to_kern()
181 memset(kcmsg, 0, kcmlen); in cmsghdr_from_user_compat_to_kern()
192 kcmsg->cmsg_len = tmp; in cmsghdr_from_user_compat_to_kern()
193 kcmsg->cmsg_level = cmsg.cmsg_level; in cmsghdr_from_user_compat_to_kern()
194 kcmsg->cmsg_type = cmsg.cmsg_type; in cmsghdr_from_user_compat_to_kern()
196 if (copy_from_user(CMSG_DATA(kcmsg), in cmsghdr_from_user_compat_to_kern()
202 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern()
[all …]