mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
![Stefano Stabellini](/assets/img/avatar_default.png)
Send PVCALLS_RELEASE to the backend and wait for a reply. Take both in_mutex and out_mutex to avoid concurrent accesses. Then, free the socket. For passive sockets, check whether we have already pre-allocated an active socket for the purpose of being accepted. If so, free that as well. 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>
28 lines
830 B
C
28 lines
830 B
C
#ifndef __PVCALLS_FRONT_H__
|
|
#define __PVCALLS_FRONT_H__
|
|
|
|
#include <linux/net.h>
|
|
|
|
int pvcalls_front_socket(struct socket *sock);
|
|
int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
|
|
int addr_len, int flags);
|
|
int pvcalls_front_bind(struct socket *sock,
|
|
struct sockaddr *addr,
|
|
int addr_len);
|
|
int pvcalls_front_listen(struct socket *sock, int backlog);
|
|
int pvcalls_front_accept(struct socket *sock,
|
|
struct socket *newsock,
|
|
int flags);
|
|
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);
|
|
unsigned int pvcalls_front_poll(struct file *file,
|
|
struct socket *sock,
|
|
poll_table *wait);
|
|
int pvcalls_front_release(struct socket *sock);
|
|
|
|
#endif
|