xen/pvcalls: implement recvmsg
Implement recvmsg by copying data from the "in" ring. If not enough data is available and the recvmsg call is blocking, then wait on the inflight_conn_req waitqueue. Take the active socket in_mutex so that only one function can access the ring at any given time. Signed-off-by: Stefano Stabellini <stefano@aporeto.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> CC: boris.ostrovsky@oracle.com CC: jgross@suse.com Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
此提交包含在:
@@ -16,5 +16,9 @@ int pvcalls_front_accept(struct socket *sock,
|
||||
int pvcalls_front_sendmsg(struct socket *sock,
|
||||
struct msghdr *msg,
|
||||
size_t len);
|
||||
int pvcalls_front_recvmsg(struct socket *sock,
|
||||
struct msghdr *msg,
|
||||
size_t len,
|
||||
int flags);
|
||||
|
||||
#endif
|
||||
|
新增問題並參考
封鎖使用者