|
@@ -314,20 +314,11 @@ int dccp_disconnect(struct sock *sk, int flags)
|
|
|
|
|
|
EXPORT_SYMBOL_GPL(dccp_disconnect);
|
|
EXPORT_SYMBOL_GPL(dccp_disconnect);
|
|
|
|
|
|
-/*
|
|
|
|
- * Wait for a DCCP event.
|
|
|
|
- *
|
|
|
|
- * Note that we don't need to lock the socket, as the upper poll layers
|
|
|
|
- * take care of normal races (between the test and the event) and we don't
|
|
|
|
- * go look at any of the socket buffers directly.
|
|
|
|
- */
|
|
|
|
-__poll_t dccp_poll(struct file *file, struct socket *sock,
|
|
|
|
- poll_table *wait)
|
|
|
|
|
|
+__poll_t dccp_poll_mask(struct socket *sock, __poll_t events)
|
|
{
|
|
{
|
|
__poll_t mask;
|
|
__poll_t mask;
|
|
struct sock *sk = sock->sk;
|
|
struct sock *sk = sock->sk;
|
|
|
|
|
|
- sock_poll_wait(file, sk_sleep(sk), wait);
|
|
|
|
if (sk->sk_state == DCCP_LISTEN)
|
|
if (sk->sk_state == DCCP_LISTEN)
|
|
return inet_csk_listen_poll(sk);
|
|
return inet_csk_listen_poll(sk);
|
|
|
|
|
|
@@ -369,7 +360,7 @@ __poll_t dccp_poll(struct file *file, struct socket *sock,
|
|
return mask;
|
|
return mask;
|
|
}
|
|
}
|
|
|
|
|
|
-EXPORT_SYMBOL_GPL(dccp_poll);
|
|
|
|
|
|
+EXPORT_SYMBOL_GPL(dccp_poll_mask);
|
|
|
|
|
|
int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
|
int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
|
{
|
|
{
|