Stefano Stabellini | 2195046 | 2017-10-30 15:40:54 -0700 | [diff] [blame] | 1 | #ifndef __PVCALLS_FRONT_H__ |
| 2 | #define __PVCALLS_FRONT_H__ |
| 3 | |
| 4 | #include <linux/net.h> |
| 5 | |
| 6 | int pvcalls_front_socket(struct socket *sock); |
Stefano Stabellini | cb1c7d9 | 2017-10-30 15:40:55 -0700 | [diff] [blame] | 7 | int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, |
| 8 | int addr_len, int flags); |
Stefano Stabellini | 67ea989 | 2017-10-30 15:40:56 -0700 | [diff] [blame] | 9 | int pvcalls_front_bind(struct socket *sock, |
| 10 | struct sockaddr *addr, |
| 11 | int addr_len); |
Stefano Stabellini | 1853f11 | 2017-10-30 15:40:57 -0700 | [diff] [blame] | 12 | int pvcalls_front_listen(struct socket *sock, int backlog); |
Stefano Stabellini | 9774c6c | 2017-10-30 15:40:58 -0700 | [diff] [blame] | 13 | int pvcalls_front_accept(struct socket *sock, |
| 14 | struct socket *newsock, |
| 15 | int flags); |
Stefano Stabellini | 45ddce2 | 2017-10-30 15:40:59 -0700 | [diff] [blame] | 16 | int pvcalls_front_sendmsg(struct socket *sock, |
| 17 | struct msghdr *msg, |
| 18 | size_t len); |
Stefano Stabellini | ae0d040 | 2017-10-30 15:41:00 -0700 | [diff] [blame] | 19 | int pvcalls_front_recvmsg(struct socket *sock, |
| 20 | struct msghdr *msg, |
| 21 | size_t len, |
| 22 | int flags); |
Al Viro | 0148a63 | 2018-02-01 10:07:32 -0500 | [diff] [blame] | 23 | __poll_t pvcalls_front_poll(struct file *file, |
Stefano Stabellini | 5842c83 | 2017-10-30 15:41:01 -0700 | [diff] [blame] | 24 | struct socket *sock, |
| 25 | poll_table *wait); |
Stefano Stabellini | 235a71c | 2017-10-30 15:41:02 -0700 | [diff] [blame] | 26 | int pvcalls_front_release(struct socket *sock); |
Stefano Stabellini | 2195046 | 2017-10-30 15:40:54 -0700 | [diff] [blame] | 27 | |
| 28 | #endif |