Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
linux-arm
linux-de
Commits
ade994f4
Commit
ade994f4
authored
Jul 03, 2017
by
Al Viro
Browse files
net: annotate ->poll() instances
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e6c5a7d9
Changes
40
Hide whitespace changes
Inline
Side-by-side
drivers/staging/irda/net/af_irda.c
View file @
ade994f4
...
...
@@ -1737,12 +1737,12 @@ static int irda_shutdown(struct socket *sock, int how)
/*
* Function irda_poll (file, sock, wait)
*/
static
unsigned
in
t
irda_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
irda_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
irda_sock
*
self
=
irda_sk
(
sk
);
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
...
...
drivers/staging/irda/net/irnet/irnet_ppp.c
View file @
ade994f4
...
...
@@ -419,12 +419,12 @@ irnet_ctrl_read(irnet_socket * ap,
* Poll : called when someone do a select on /dev/irnet.
* Just check if there are new events...
*/
static
inline
unsigned
in
t
static
inline
__poll_
t
irnet_ctrl_poll
(
irnet_socket
*
ap
,
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
DENTER
(
CTRL_TRACE
,
"(ap=0x%p)
\n
"
,
ap
);
...
...
@@ -608,12 +608,12 @@ dev_irnet_read(struct file * file,
/*
* Poll : called when someone do a select on /dev/irnet
*/
static
unsigned
in
t
static
__poll_
t
dev_irnet_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
irnet_socket
*
ap
=
file
->
private_data
;
unsigned
in
t
mask
;
__poll_
t
mask
;
DENTER
(
FS_TRACE
,
"(file=0x%p, ap=0x%p)
\n
"
,
file
,
ap
);
...
...
drivers/staging/irda/net/irnet/irnet_ppp.h
View file @
ade994f4
...
...
@@ -70,7 +70,7 @@ static ssize_t
char
__user
*
,
size_t
,
loff_t
*
);
static
unsigned
in
t
static
__poll_
t
dev_irnet_poll
(
struct
file
*
,
poll_table
*
);
static
long
...
...
include/linux/skbuff.h
View file @
ade994f4
...
...
@@ -3242,7 +3242,7 @@ struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,
int
*
peeked
,
int
*
off
,
int
*
err
);
struct
sk_buff
*
skb_recv_datagram
(
struct
sock
*
sk
,
unsigned
flags
,
int
noblock
,
int
*
err
);
unsigned
in
t
datagram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
datagram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
struct
poll_table_struct
*
wait
);
int
skb_copy_datagram_iter
(
const
struct
sk_buff
*
from
,
int
offset
,
struct
iov_iter
*
to
,
int
size
);
...
...
include/net/bluetooth/bluetooth.h
View file @
ade994f4
...
...
@@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
int
flags
);
int
bt_sock_stream_recvmsg
(
struct
socket
*
sock
,
struct
msghdr
*
msg
,
size_t
len
,
int
flags
);
uin
t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
__poll_
t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
int
bt_sock_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
bt_sock_wait_state
(
struct
sock
*
sk
,
int
state
,
unsigned
long
timeo
);
int
bt_sock_wait_ready
(
struct
sock
*
sk
,
unsigned
long
flags
);
...
...
include/net/inet_connection_sock.h
View file @
ade994f4
...
...
@@ -305,7 +305,7 @@ void inet_csk_prepare_forced_close(struct sock *sk);
/*
* LISTEN is a special case for poll..
*/
static
inline
unsigned
in
t
inet_csk_listen_poll
(
const
struct
sock
*
sk
)
static
inline
__poll_
t
inet_csk_listen_poll
(
const
struct
sock
*
sk
)
{
return
!
reqsk_queue_empty
(
&
inet_csk
(
sk
)
->
icsk_accept_queue
)
?
(
POLLIN
|
POLLRDNORM
)
:
0
;
...
...
include/net/iucv/af_iucv.h
View file @
ade994f4
...
...
@@ -153,7 +153,7 @@ struct iucv_sock_list {
atomic_t
autobind_name
;
};
unsigned
in
t
iucv_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
iucv_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
void
iucv_sock_link
(
struct
iucv_sock_list
*
l
,
struct
sock
*
s
);
void
iucv_sock_unlink
(
struct
iucv_sock_list
*
l
,
struct
sock
*
s
);
...
...
include/net/sctp/sctp.h
View file @
ade994f4
...
...
@@ -107,7 +107,7 @@ int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
int
sctp_inet_listen
(
struct
socket
*
sock
,
int
backlog
);
void
sctp_write_space
(
struct
sock
*
sk
);
void
sctp_data_ready
(
struct
sock
*
sk
);
unsigned
in
t
sctp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
sctp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
void
sctp_sock_rfree
(
struct
sk_buff
*
skb
);
void
sctp_copy_sock
(
struct
sock
*
newsk
,
struct
sock
*
sk
,
...
...
include/net/sock.h
View file @
ade994f4
...
...
@@ -1582,7 +1582,7 @@ int sock_no_connect(struct socket *, struct sockaddr *, int, int);
int
sock_no_socketpair
(
struct
socket
*
,
struct
socket
*
);
int
sock_no_accept
(
struct
socket
*
,
struct
socket
*
,
int
,
bool
);
int
sock_no_getname
(
struct
socket
*
,
struct
sockaddr
*
,
int
*
,
int
);
unsigned
in
t
sock_no_poll
(
struct
file
*
,
struct
socket
*
,
__poll_
t
sock_no_poll
(
struct
file
*
,
struct
socket
*
,
struct
poll_table_struct
*
);
int
sock_no_ioctl
(
struct
socket
*
,
unsigned
int
,
unsigned
long
);
int
sock_no_listen
(
struct
socket
*
,
int
);
...
...
include/net/tcp.h
View file @
ade994f4
...
...
@@ -387,7 +387,7 @@ bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst);
void
tcp_close
(
struct
sock
*
sk
,
long
timeout
);
void
tcp_init_sock
(
struct
sock
*
sk
);
void
tcp_init_transfer
(
struct
sock
*
sk
,
int
bpf_op
);
unsigned
in
t
tcp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
tcp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
struct
poll_table_struct
*
wait
);
int
tcp_getsockopt
(
struct
sock
*
sk
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
*
optlen
);
...
...
include/net/udp.h
View file @
ade994f4
...
...
@@ -275,7 +275,7 @@ int udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
int
udp_init_sock
(
struct
sock
*
sk
);
int
__udp_disconnect
(
struct
sock
*
sk
,
int
flags
);
int
udp_disconnect
(
struct
sock
*
sk
,
int
flags
);
unsigned
in
t
udp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
__poll_
t
udp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
struct
sk_buff
*
skb_udp_tunnel_segment
(
struct
sk_buff
*
skb
,
netdev_features_t
features
,
bool
is_ipv6
);
...
...
net/atm/common.c
View file @
ade994f4
...
...
@@ -648,11 +648,11 @@ out:
return
error
;
}
unsigned
in
t
vcc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
__poll_
t
vcc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
atm_vcc
*
vcc
;
unsigned
in
t
mask
;
__poll_
t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
...
...
net/atm/common.h
View file @
ade994f4
...
...
@@ -17,7 +17,7 @@ int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
int
vcc_recvmsg
(
struct
socket
*
sock
,
struct
msghdr
*
msg
,
size_t
size
,
int
flags
);
int
vcc_sendmsg
(
struct
socket
*
sock
,
struct
msghdr
*
m
,
size_t
total_len
);
unsigned
in
t
vcc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
__poll_
t
vcc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
int
vcc_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
vcc_compat_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
vcc_setsockopt
(
struct
socket
*
sock
,
int
level
,
int
optname
,
...
...
net/batman-adv/icmp_socket.c
View file @
ade994f4
...
...
@@ -292,7 +292,7 @@ out:
return
len
;
}
static
unsigned
in
t
batadv_socket_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
batadv_socket_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
batadv_socket_client
*
socket_client
=
file
->
private_data
;
...
...
net/batman-adv/log.c
View file @
ade994f4
...
...
@@ -176,7 +176,7 @@ static ssize_t batadv_log_read(struct file *file, char __user *buf,
return
error
;
}
static
unsigned
in
t
batadv_log_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
batadv_log_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
batadv_priv
*
bat_priv
=
file
->
private_data
;
struct
batadv_priv_debug_log
*
debug_log
=
bat_priv
->
debug_log
;
...
...
net/bluetooth/af_bluetooth.c
View file @
ade994f4
...
...
@@ -421,7 +421,7 @@ out:
}
EXPORT_SYMBOL
(
bt_sock_stream_recvmsg
);
static
inline
unsigned
in
t
bt_accept_poll
(
struct
sock
*
parent
)
static
inline
__poll_
t
bt_accept_poll
(
struct
sock
*
parent
)
{
struct
bt_sock
*
s
,
*
n
;
struct
sock
*
sk
;
...
...
@@ -437,11 +437,11 @@ static inline unsigned int bt_accept_poll(struct sock *parent)
return
0
;
}
unsigned
in
t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
BT_DBG
(
"sock %p, sk %p"
,
sock
,
sk
);
...
...
net/caif/caif_socket.c
View file @
ade994f4
...
...
@@ -934,11 +934,11 @@ static int caif_release(struct socket *sock)
}
/* Copied from af_unix.c:unix_poll(), added CAIF tx_flow handling */
static
unsigned
in
t
caif_poll
(
struct
file
*
file
,
static
__poll_
t
caif_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
caifsock
*
cf_sk
=
container_of
(
sk
,
struct
caifsock
,
sk
);
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/core/datagram.c
View file @
ade994f4
...
...
@@ -831,11 +831,11 @@ EXPORT_SYMBOL(skb_copy_and_csum_datagram_msg);
* and you use a different write policy from sock_writeable()
* then please supply your own write_space callback.
*/
unsigned
in
t
datagram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
datagram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
unsigned
in
t
mask
;
__poll_
t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
...
...
net/core/sock.c
View file @
ade994f4
...
...
@@ -2496,7 +2496,7 @@ int sock_no_getname(struct socket *sock, struct sockaddr *saddr,
}
EXPORT_SYMBOL
(
sock_no_getname
);
unsigned
in
t
sock_no_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
pt
)
__poll_
t
sock_no_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
pt
)
{
return
0
;
}
...
...
net/dccp/dccp.h
View file @
ade994f4
...
...
@@ -316,7 +316,7 @@ int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
int
flags
,
int
*
addr_len
);
void
dccp_shutdown
(
struct
sock
*
sk
,
int
how
);
int
inet_dccp_listen
(
struct
socket
*
sock
,
int
backlog
);
unsigned
in
t
dccp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
dccp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
int
dccp_v4_connect
(
struct
sock
*
sk
,
struct
sockaddr
*
uaddr
,
int
addr_len
);
void
dccp_req_err
(
struct
sock
*
sk
,
u64
seq
);
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment