^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) #ifndef __PVCALLS_FRONT_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #define __PVCALLS_FRONT_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #include <linux/net.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) int pvcalls_front_socket(struct socket *sock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) int addr_len, int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) int pvcalls_front_bind(struct socket *sock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) struct sockaddr *addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) int addr_len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) int pvcalls_front_listen(struct socket *sock, int backlog);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int pvcalls_front_accept(struct socket *sock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct socket *newsock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) int pvcalls_front_sendmsg(struct socket *sock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct msghdr *msg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) size_t len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int pvcalls_front_recvmsg(struct socket *sock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct msghdr *msg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) size_t len,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) __poll_t pvcalls_front_poll(struct file *file,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct socket *sock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) poll_table *wait);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) int pvcalls_front_release(struct socket *sock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif