Home
last modified time | relevance | path

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

/net/
Dcompat.c36 int __get_compat_msghdr(struct msghdr *kmsg, in __get_compat_msghdr() argument
47 kmsg->msg_flags = msg.msg_flags; in __get_compat_msghdr()
48 kmsg->msg_namelen = msg.msg_namelen; in __get_compat_msghdr()
51 kmsg->msg_namelen = 0; in __get_compat_msghdr()
53 if (kmsg->msg_namelen < 0) in __get_compat_msghdr()
56 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __get_compat_msghdr()
57 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __get_compat_msghdr()
59 kmsg->msg_control_is_user = true; in __get_compat_msghdr()
60 kmsg->msg_control_user = compat_ptr(msg.msg_control); in __get_compat_msghdr()
61 kmsg->msg_controllen = msg.msg_controllen; in __get_compat_msghdr()
[all …]
Dsocket.c2305 int __copy_msghdr_from_user(struct msghdr *kmsg, in __copy_msghdr_from_user() argument
2316 kmsg->msg_control_is_user = true; in __copy_msghdr_from_user()
2317 kmsg->msg_control_user = msg.msg_control; in __copy_msghdr_from_user()
2318 kmsg->msg_controllen = msg.msg_controllen; in __copy_msghdr_from_user()
2319 kmsg->msg_flags = msg.msg_flags; in __copy_msghdr_from_user()
2321 kmsg->msg_namelen = msg.msg_namelen; in __copy_msghdr_from_user()
2323 kmsg->msg_namelen = 0; in __copy_msghdr_from_user()
2325 if (kmsg->msg_namelen < 0) in __copy_msghdr_from_user()
2328 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr_from_user()
2329 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __copy_msghdr_from_user()
[all …]