Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ade994f4
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 2 年 前同步成功
通知
173
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ade994f4
编写于
7月 03, 2017
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
net: annotate ->poll() instances
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
e6c5a7d9
变更
40
显示空白变更内容
内联
并排
Showing
40 changed file
with
77 addition
and
76 deletion
+77
-76
drivers/staging/irda/net/af_irda.c
drivers/staging/irda/net/af_irda.c
+2
-2
drivers/staging/irda/net/irnet/irnet_ppp.c
drivers/staging/irda/net/irnet/irnet_ppp.c
+4
-4
drivers/staging/irda/net/irnet/irnet_ppp.h
drivers/staging/irda/net/irnet/irnet_ppp.h
+1
-1
include/linux/skbuff.h
include/linux/skbuff.h
+1
-1
include/net/bluetooth/bluetooth.h
include/net/bluetooth/bluetooth.h
+1
-1
include/net/inet_connection_sock.h
include/net/inet_connection_sock.h
+1
-1
include/net/iucv/af_iucv.h
include/net/iucv/af_iucv.h
+1
-1
include/net/sctp/sctp.h
include/net/sctp/sctp.h
+1
-1
include/net/sock.h
include/net/sock.h
+1
-1
include/net/tcp.h
include/net/tcp.h
+1
-1
include/net/udp.h
include/net/udp.h
+1
-1
net/atm/common.c
net/atm/common.c
+2
-2
net/atm/common.h
net/atm/common.h
+1
-1
net/batman-adv/icmp_socket.c
net/batman-adv/icmp_socket.c
+1
-1
net/batman-adv/log.c
net/batman-adv/log.c
+1
-1
net/bluetooth/af_bluetooth.c
net/bluetooth/af_bluetooth.c
+3
-3
net/caif/caif_socket.c
net/caif/caif_socket.c
+2
-2
net/core/datagram.c
net/core/datagram.c
+2
-2
net/core/sock.c
net/core/sock.c
+1
-1
net/dccp/dccp.h
net/dccp/dccp.h
+1
-1
net/dccp/proto.c
net/dccp/proto.c
+2
-2
net/decnet/af_decnet.c
net/decnet/af_decnet.c
+2
-2
net/ipv4/tcp.c
net/ipv4/tcp.c
+2
-2
net/ipv4/udp.c
net/ipv4/udp.c
+2
-2
net/iucv/af_iucv.c
net/iucv/af_iucv.c
+3
-3
net/nfc/llcp_sock.c
net/nfc/llcp_sock.c
+3
-3
net/nfc/nci/uart.c
net/nfc/nci/uart.c
+1
-1
net/packet/af_packet.c
net/packet/af_packet.c
+2
-2
net/phonet/socket.c
net/phonet/socket.c
+2
-2
net/rds/af_rds.c
net/rds/af_rds.c
+2
-2
net/rfkill/core.c
net/rfkill/core.c
+2
-2
net/rxrpc/af_rxrpc.c
net/rxrpc/af_rxrpc.c
+2
-2
net/sctp/socket.c
net/sctp/socket.c
+2
-2
net/smc/af_smc.c
net/smc/af_smc.c
+2
-2
net/socket.c
net/socket.c
+2
-2
net/sunrpc/cache.c
net/sunrpc/cache.c
+4
-4
net/sunrpc/rpc_pipe.c
net/sunrpc/rpc_pipe.c
+2
-2
net/tipc/socket.c
net/tipc/socket.c
+2
-2
net/unix/af_unix.c
net/unix/af_unix.c
+7
-6
net/vmw_vsock/af_vsock.c
net/vmw_vsock/af_vsock.c
+2
-2
未找到文件。
drivers/staging/irda/net/af_irda.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
ade994f4
...
...
@@ -648,11 +648,11 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size)
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
浏览文件 @
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
浏览文件 @
ade994f4
...
...
@@ -292,7 +292,7 @@ static ssize_t batadv_socket_write(struct file *file, const char __user *buff,
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
浏览文件 @
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
浏览文件 @
ade994f4
...
...
@@ -421,7 +421,7 @@ int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
}
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
);
...
...
net/dccp/proto.c
浏览文件 @
ade994f4
...
...
@@ -313,10 +313,10 @@ EXPORT_SYMBOL_GPL(dccp_disconnect);
* take care of normal races (between the test and the event) and we don't
* go look at any of the socket buffers directly.
*/
unsigned
in
t
dccp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_
t
dccp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
sock
*
sk
=
sock
->
sk
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/decnet/af_decnet.c
浏览文件 @
ade994f4
...
...
@@ -1209,11 +1209,11 @@ static int dn_getname(struct socket *sock, struct sockaddr *uaddr,int *uaddr_len
}
static
unsigned
in
t
dn_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_
t
dn_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
in
t
mask
=
datagram_poll
(
file
,
sock
,
wait
);
__poll_
t
mask
=
datagram_poll
(
file
,
sock
,
wait
);
if
(
!
skb_queue_empty
(
&
scp
->
other_receive_queue
))
mask
|=
POLLRDBAND
;
...
...
net/ipv4/tcp.c
浏览文件 @
ade994f4
...
...
@@ -493,9 +493,9 @@ static void tcp_tx_timestamp(struct sock *sk, u16 tsflags)
* take care of normal races (between the test and the event) and we don't
* go look at any of the socket buffers directly.
*/
unsigned
in
t
tcp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
__poll_
t
tcp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
sock
*
sk
=
sock
->
sk
;
const
struct
tcp_sock
*
tp
=
tcp_sk
(
sk
);
int
state
;
...
...
net/ipv4/udp.c
浏览文件 @
ade994f4
...
...
@@ -2502,9 +2502,9 @@ int compat_udp_getsockopt(struct sock *sk, int level, int optname,
* but then block when reading it. Add special case code
* to work around these arguably broken applications.
*/
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
)
{
unsigned
in
t
mask
=
datagram_poll
(
file
,
sock
,
wait
);
__poll_
t
mask
=
datagram_poll
(
file
,
sock
,
wait
);
struct
sock
*
sk
=
sock
->
sk
;
if
(
!
skb_queue_empty
(
&
udp_sk
(
sk
)
->
reader_queue
))
...
...
net/iucv/af_iucv.c
浏览文件 @
ade994f4
...
...
@@ -1474,7 +1474,7 @@ static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,
return
copied
;
}
static
inline
unsigned
in
t
iucv_accept_poll
(
struct
sock
*
parent
)
static
inline
__poll_
t
iucv_accept_poll
(
struct
sock
*
parent
)
{
struct
iucv_sock
*
isk
,
*
n
;
struct
sock
*
sk
;
...
...
@@ -1489,11 +1489,11 @@ static inline unsigned int iucv_accept_poll(struct sock *parent)
return
0
;
}
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
)
{
struct
sock
*
sk
=
sock
->
sk
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/nfc/llcp_sock.c
浏览文件 @
ade994f4
...
...
@@ -531,7 +531,7 @@ static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr,
return
0
;
}
static
inline
unsigned
in
t
llcp_accept_poll
(
struct
sock
*
parent
)
static
inline
__poll_
t
llcp_accept_poll
(
struct
sock
*
parent
)
{
struct
nfc_llcp_sock
*
llcp_sock
,
*
parent_sock
;
struct
sock
*
sk
;
...
...
@@ -549,11 +549,11 @@ static inline unsigned int llcp_accept_poll(struct sock *parent)
return
0
;
}
static
unsigned
in
t
llcp_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
llcp_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
;
pr_debug
(
"%p
\n
"
,
sk
);
...
...
net/nfc/nci/uart.c
浏览文件 @
ade994f4
...
...
@@ -305,7 +305,7 @@ static ssize_t nci_uart_tty_write(struct tty_struct *tty, struct file *file,
return
0
;
}
static
unsigned
in
t
nci_uart_tty_poll
(
struct
tty_struct
*
tty
,
static
__poll_
t
nci_uart_tty_poll
(
struct
tty_struct
*
tty
,
struct
file
*
filp
,
poll_table
*
wait
)
{
return
0
;
...
...
net/packet/af_packet.c
浏览文件 @
ade994f4
...
...
@@ -4080,12 +4080,12 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
return
0
;
}
static
unsigned
in
t
packet_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
packet_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
packet_sock
*
po
=
pkt_sk
(
sk
);
unsigned
in
t
mask
=
datagram_poll
(
file
,
sock
,
wait
);
__poll_
t
mask
=
datagram_poll
(
file
,
sock
,
wait
);
spin_lock_bh
(
&
sk
->
sk_receive_queue
.
lock
);
if
(
po
->
rx_ring
.
pg_vec
)
{
...
...
net/phonet/socket.c
浏览文件 @
ade994f4
...
...
@@ -341,12 +341,12 @@ static int pn_socket_getname(struct socket *sock, struct sockaddr *addr,
return
0
;
}
static
unsigned
in
t
pn_socket_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
pn_socket_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
pep_sock
*
pn
=
pep_sk
(
sk
);
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/rds/af_rds.c
浏览文件 @
ade994f4
...
...
@@ -152,12 +152,12 @@ static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
* to send to a congested destination, the system call may still fail (and
* return ENOBUFS).
*/
static
unsigned
in
t
rds_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
rds_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
rds_sock
*
rs
=
rds_sk_to_rs
(
sk
);
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
unsigned
long
flags
;
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/rfkill/core.c
浏览文件 @
ade994f4
...
...
@@ -1139,10 +1139,10 @@ static int rfkill_fop_open(struct inode *inode, struct file *file)
return
-
ENOMEM
;
}
static
unsigned
in
t
rfkill_fop_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
rfkill_fop_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
rfkill_data
*
data
=
file
->
private_data
;
unsigned
in
t
res
=
POLLOUT
|
POLLWRNORM
;
__poll_
t
res
=
POLLOUT
|
POLLWRNORM
;
poll_wait
(
file
,
&
data
->
read_wait
,
wait
);
...
...
net/rxrpc/af_rxrpc.c
浏览文件 @
ade994f4
...
...
@@ -725,12 +725,12 @@ static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
/*
* permit an RxRPC socket to be polled
*/
static
unsigned
in
t
rxrpc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
rxrpc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
rxrpc_sock
*
rx
=
rxrpc_sk
(
sk
);
unsigned
in
t
mask
;
__poll_
t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
...
...
net/sctp/socket.c
浏览文件 @
ade994f4
...
...
@@ -7497,11 +7497,11 @@ int sctp_inet_listen(struct socket *sock, int backlog)
* here, again, by modeling the current TCP/UDP code. We don't have
* a good way to test with it yet.
*/
unsigned
in
t
sctp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
__poll_
t
sctp_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sctp_sock
*
sp
=
sctp_sk
(
sk
);
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/smc/af_smc.c
浏览文件 @
ade994f4
...
...
@@ -1107,7 +1107,7 @@ static int smc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
return
rc
;
}
static
unsigned
in
t
smc_accept_poll
(
struct
sock
*
parent
)
static
__poll_
t
smc_accept_poll
(
struct
sock
*
parent
)
{
struct
smc_sock
*
isk
;
struct
sock
*
sk
;
...
...
@@ -1126,7 +1126,7 @@ static unsigned int smc_accept_poll(struct sock *parent)
return
0
;
}
static
unsigned
in
t
smc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
smc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
...
...
net/socket.c
浏览文件 @
ade994f4
...
...
@@ -118,7 +118,7 @@ static ssize_t sock_write_iter(struct kiocb *iocb, struct iov_iter *from);
static
int
sock_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
);
static
int
sock_close
(
struct
inode
*
inode
,
struct
file
*
file
);
static
unsigned
in
t
sock_poll
(
struct
file
*
file
,
static
__poll_
t
sock_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
wait
);
static
long
sock_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
);
#ifdef CONFIG_COMPAT
...
...
@@ -1091,7 +1091,7 @@ int sock_create_lite(int family, int type, int protocol, struct socket **res)
EXPORT_SYMBOL
(
sock_create_lite
);
/* No kernel lock held - perfect */
static
unsigned
in
t
sock_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
sock_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
__poll_t
busy_flag
=
0
;
struct
socket
*
sock
;
...
...
net/sunrpc/cache.c
浏览文件 @
ade994f4
...
...
@@ -930,10 +930,10 @@ static ssize_t cache_write(struct file *filp, const char __user *buf,
static
DECLARE_WAIT_QUEUE_HEAD
(
queue_wait
);
static
unsigned
in
t
cache_poll
(
struct
file
*
filp
,
poll_table
*
wait
,
static
__poll_
t
cache_poll
(
struct
file
*
filp
,
poll_table
*
wait
,
struct
cache_detail
*
cd
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
cache_reader
*
rp
=
filp
->
private_data
;
struct
cache_queue
*
cq
;
...
...
@@ -1501,7 +1501,7 @@ static ssize_t cache_write_procfs(struct file *filp, const char __user *buf,
return
cache_write
(
filp
,
buf
,
count
,
ppos
,
cd
);
}
static
unsigned
in
t
cache_poll_procfs
(
struct
file
*
filp
,
poll_table
*
wait
)
static
__poll_
t
cache_poll_procfs
(
struct
file
*
filp
,
poll_table
*
wait
)
{
struct
cache_detail
*
cd
=
PDE_DATA
(
file_inode
(
filp
));
...
...
@@ -1720,7 +1720,7 @@ static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf,
return
cache_write
(
filp
,
buf
,
count
,
ppos
,
cd
);
}
static
unsigned
in
t
cache_poll_pipefs
(
struct
file
*
filp
,
poll_table
*
wait
)
static
__poll_
t
cache_poll_pipefs
(
struct
file
*
filp
,
poll_table
*
wait
)
{
struct
cache_detail
*
cd
=
RPC_I
(
file_inode
(
filp
))
->
private
;
...
...
net/sunrpc/rpc_pipe.c
浏览文件 @
ade994f4
...
...
@@ -340,12 +340,12 @@ rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *of
return
res
;
}
static
unsigned
in
t
static
__poll_
t
rpc_pipe_poll
(
struct
file
*
filp
,
struct
poll_table_struct
*
wait
)
{
struct
inode
*
inode
=
file_inode
(
filp
);
struct
rpc_inode
*
rpci
=
RPC_I
(
inode
);
unsigned
in
t
mask
=
POLLOUT
|
POLLWRNORM
;
__poll_
t
mask
=
POLLOUT
|
POLLWRNORM
;
poll_wait
(
filp
,
&
rpci
->
waitq
,
wait
);
...
...
net/tipc/socket.c
浏览文件 @
ade994f4
...
...
@@ -710,13 +710,13 @@ static int tipc_getname(struct socket *sock, struct sockaddr *uaddr,
* imply that the operation will succeed, merely that it should be performed
* and will not block.
*/
static
unsigned
in
t
tipc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
tipc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
tipc_sock
*
tsk
=
tipc_sk
(
sk
);
struct
tipc_group
*
grp
=
tsk
->
group
;
u32
revents
=
0
;
__poll_t
revents
=
0
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
...
...
net/unix/af_unix.c
浏览文件 @
ade994f4
...
...
@@ -638,8 +638,8 @@ static int unix_stream_connect(struct socket *, struct sockaddr *,
static
int
unix_socketpair
(
struct
socket
*
,
struct
socket
*
);
static
int
unix_accept
(
struct
socket
*
,
struct
socket
*
,
int
,
bool
);
static
int
unix_getname
(
struct
socket
*
,
struct
sockaddr
*
,
int
*
,
int
);
static
unsigned
in
t
unix_poll
(
struct
file
*
,
struct
socket
*
,
poll_table
*
);
static
unsigned
in
t
unix_dgram_poll
(
struct
file
*
,
struct
socket
*
,
static
__poll_
t
unix_poll
(
struct
file
*
,
struct
socket
*
,
poll_table
*
);
static
__poll_
t
unix_dgram_poll
(
struct
file
*
,
struct
socket
*
,
poll_table
*
);
static
int
unix_ioctl
(
struct
socket
*
,
unsigned
int
,
unsigned
long
);
static
int
unix_shutdown
(
struct
socket
*
,
int
);
...
...
@@ -2640,10 +2640,10 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
return
err
;
}
static
unsigned
in
t
unix_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_
t
unix_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
;
...
...
@@ -2675,11 +2675,12 @@ static unsigned int unix_poll(struct file *file, struct socket *sock, poll_table
return
mask
;
}
static
unsigned
in
t
unix_dgram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
unix_dgram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
,
*
other
;
unsigned
int
mask
,
writable
;
unsigned
int
writable
;
__poll_t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
...
...
net/vmw_vsock/af_vsock.c
浏览文件 @
ade994f4
...
...
@@ -850,11 +850,11 @@ static int vsock_shutdown(struct socket *sock, int mode)
return
err
;
}
static
unsigned
in
t
vsock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_
t
vsock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
{
struct
sock
*
sk
;
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
vsock_sock
*
vsk
;
sk
=
sock
->
sk
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录