blob: f694ad77379fc45441820fd730297e13111dcc35 [file] [log] [blame]
Stefano Stabellini21950462017-10-30 15:40:54 -07001#ifndef __PVCALLS_FRONT_H__
2#define __PVCALLS_FRONT_H__
3
4#include <linux/net.h>
5
6int pvcalls_front_socket(struct socket *sock);
Stefano Stabellinicb1c7d92017-10-30 15:40:55 -07007int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
8 int addr_len, int flags);
Stefano Stabellini67ea9892017-10-30 15:40:56 -07009int pvcalls_front_bind(struct socket *sock,
10 struct sockaddr *addr,
11 int addr_len);
Stefano Stabellini1853f112017-10-30 15:40:57 -070012int pvcalls_front_listen(struct socket *sock, int backlog);
Stefano Stabellini9774c6c2017-10-30 15:40:58 -070013int pvcalls_front_accept(struct socket *sock,
14 struct socket *newsock,
15 int flags);
Stefano Stabellini45ddce22017-10-30 15:40:59 -070016int pvcalls_front_sendmsg(struct socket *sock,
17 struct msghdr *msg,
18 size_t len);
Stefano Stabelliniae0d0402017-10-30 15:41:00 -070019int pvcalls_front_recvmsg(struct socket *sock,
20 struct msghdr *msg,
21 size_t len,
22 int flags);
Al Viro0148a632018-02-01 10:07:32 -050023__poll_t pvcalls_front_poll(struct file *file,
Stefano Stabellini5842c832017-10-30 15:41:01 -070024 struct socket *sock,
25 poll_table *wait);
Stefano Stabellini235a71c2017-10-30 15:41:02 -070026int pvcalls_front_release(struct socket *sock);
Stefano Stabellini21950462017-10-30 15:40:54 -070027
28#endif