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 = compat_ptr(msg.msg_control); in get_compat_msghdr()
60 kmsg->msg_controllen = msg.msg_controllen; in get_compat_msghdr()
65 if (msg.msg_name && kmsg->msg_namelen) { in get_compat_msghdr()
[all …]
Dsocket.c2184 static int copy_msghdr_from_user(struct msghdr *kmsg, in copy_msghdr_from_user() argument
2195 kmsg->msg_control = (void __force *)msg.msg_control; in copy_msghdr_from_user()
2196 kmsg->msg_controllen = msg.msg_controllen; in copy_msghdr_from_user()
2197 kmsg->msg_flags = msg.msg_flags; in copy_msghdr_from_user()
2199 kmsg->msg_namelen = msg.msg_namelen; in copy_msghdr_from_user()
2201 kmsg->msg_namelen = 0; in copy_msghdr_from_user()
2203 if (kmsg->msg_namelen < 0) in copy_msghdr_from_user()
2206 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in copy_msghdr_from_user()
2207 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in copy_msghdr_from_user()
2212 if (msg.msg_name && kmsg->msg_namelen) { in copy_msghdr_from_user()
[all …]