@@ -341,6 +341,7 @@ int pvcalls_front_socket(struct socket *sock)
341
341
pvcalls_exit ();
342
342
return ret ;
343
343
}
344
+ EXPORT_SYMBOL_GPL (pvcalls_front_socket );
344
345
345
346
static void free_active_ring (struct sock_mapping * map )
346
347
{
@@ -486,6 +487,7 @@ int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
486
487
pvcalls_exit_sock (sock );
487
488
return ret ;
488
489
}
490
+ EXPORT_SYMBOL_GPL (pvcalls_front_connect );
489
491
490
492
static int __write_ring (struct pvcalls_data_intf * intf ,
491
493
struct pvcalls_data * data ,
@@ -581,6 +583,7 @@ int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg,
581
583
pvcalls_exit_sock (sock );
582
584
return tot_sent ;
583
585
}
586
+ EXPORT_SYMBOL_GPL (pvcalls_front_sendmsg );
584
587
585
588
static int __read_ring (struct pvcalls_data_intf * intf ,
586
589
struct pvcalls_data * data ,
@@ -666,6 +669,7 @@ int pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
666
669
pvcalls_exit_sock (sock );
667
670
return ret ;
668
671
}
672
+ EXPORT_SYMBOL_GPL (pvcalls_front_recvmsg );
669
673
670
674
int pvcalls_front_bind (struct socket * sock , struct sockaddr * addr , int addr_len )
671
675
{
@@ -719,6 +723,7 @@ int pvcalls_front_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
719
723
pvcalls_exit_sock (sock );
720
724
return 0 ;
721
725
}
726
+ EXPORT_SYMBOL_GPL (pvcalls_front_bind );
722
727
723
728
int pvcalls_front_listen (struct socket * sock , int backlog )
724
729
{
@@ -768,8 +773,10 @@ int pvcalls_front_listen(struct socket *sock, int backlog)
768
773
pvcalls_exit_sock (sock );
769
774
return ret ;
770
775
}
776
+ EXPORT_SYMBOL_GPL (pvcalls_front_listen );
771
777
772
- int pvcalls_front_accept (struct socket * sock , struct socket * newsock , int flags )
778
+ int pvcalls_front_accept (struct socket * sock , struct socket * newsock ,
779
+ struct proto_accept_arg * arg )
773
780
{
774
781
struct pvcalls_bedata * bedata ;
775
782
struct sock_mapping * map ;
@@ -788,7 +795,7 @@ int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags)
788
795
return - EINVAL ;
789
796
}
790
797
791
- nonblock = flags & SOCK_NONBLOCK ;
798
+ nonblock = arg -> flags & SOCK_NONBLOCK ;
792
799
/*
793
800
* Backend only supports 1 inflight accept request, will return
794
801
* errors for the others
@@ -904,6 +911,7 @@ int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags)
904
911
pvcalls_exit_sock (sock );
905
912
return ret ;
906
913
}
914
+ EXPORT_SYMBOL_GPL (pvcalls_front_accept );
907
915
908
916
static __poll_t pvcalls_front_poll_passive (struct file * file ,
909
917
struct pvcalls_bedata * bedata ,
@@ -1004,6 +1012,7 @@ __poll_t pvcalls_front_poll(struct file *file, struct socket *sock,
1004
1012
pvcalls_exit_sock (sock );
1005
1013
return ret ;
1006
1014
}
1015
+ EXPORT_SYMBOL_GPL (pvcalls_front_poll );
1007
1016
1008
1017
int pvcalls_front_release (struct socket * sock )
1009
1018
{
@@ -1087,6 +1096,7 @@ int pvcalls_front_release(struct socket *sock)
1087
1096
pvcalls_exit ();
1088
1097
return 0 ;
1089
1098
}
1099
+ EXPORT_SYMBOL_GPL (pvcalls_front_release );
1090
1100
1091
1101
static const struct xenbus_device_id pvcalls_front_ids [] = {
1092
1102
{ "pvcalls" },
0 commit comments