Home
last modified time | relevance | path

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

/arch/um/os-Linux/drivers/
Dtuntap_user.c71 struct cmsghdr *cmsg; in tuntap_open_tramp() local
111 cmsg = CMSG_FIRSTHDR(&msg); in tuntap_open_tramp()
112 if (cmsg == NULL) { in tuntap_open_tramp()
117 if ((cmsg->cmsg_level != SOL_SOCKET) || in tuntap_open_tramp()
118 (cmsg->cmsg_type != SCM_RIGHTS)) { in tuntap_open_tramp()
123 *fd_out = ((int *) CMSG_DATA(cmsg))[0]; in tuntap_open_tramp()
/arch/um/os-Linux/
Dfile.c484 struct cmsghdr *cmsg; in os_rcv_fd() local
503 cmsg = CMSG_FIRSTHDR(&msg); in os_rcv_fd()
504 if (cmsg == NULL) { in os_rcv_fd()
509 if ((cmsg->cmsg_level != SOL_SOCKET) || in os_rcv_fd()
510 (cmsg->cmsg_type != SCM_RIGHTS)) { in os_rcv_fd()
515 new = ((int *) CMSG_DATA(cmsg))[0]; in os_rcv_fd()