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.c510 struct cmsghdr *cmsg; in os_rcv_fd() local
529 cmsg = CMSG_FIRSTHDR(&msg); in os_rcv_fd()
530 if (cmsg == NULL) { in os_rcv_fd()
535 if ((cmsg->cmsg_level != SOL_SOCKET) || in os_rcv_fd()
536 (cmsg->cmsg_type != SCM_RIGHTS)) { in os_rcv_fd()
541 new = ((int *) CMSG_DATA(cmsg))[0]; in os_rcv_fd()
655 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in os_sendmsg_fds() local
661 cmsg->cmsg_level = SOL_SOCKET; in os_sendmsg_fds()
662 cmsg->cmsg_type = SCM_RIGHTS; in os_sendmsg_fds()
663 cmsg->cmsg_len = CMSG_LEN(fds_size); in os_sendmsg_fds()
[all …]