Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e6c8adca
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e6c8adca
编写于
7月 03, 2017
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
anntotate the places where ->poll() return values go
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
a3f8683b
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
15 addition
and
14 deletion
+15
-14
drivers/media/platform/soc_camera/soc_camera.c
drivers/media/platform/soc_camera/soc_camera.c
+1
-1
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-dev.c
+1
-1
drivers/staging/comedi/drivers/serial2002.c
drivers/staging/comedi/drivers/serial2002.c
+1
-1
drivers/tty/tty_io.c
drivers/tty/tty_io.c
+1
-1
drivers/vfio/virqfd.c
drivers/vfio/virqfd.c
+1
-1
drivers/vhost/vhost.c
drivers/vhost/vhost.c
+2
-2
fs/debugfs/file.c
fs/debugfs/file.c
+1
-1
fs/proc/inode.c
fs/proc/inode.c
+1
-1
fs/select.c
fs/select.c
+3
-2
net/smc/af_smc.c
net/smc/af_smc.c
+1
-1
net/socket.c
net/socket.c
+1
-1
virt/kvm/eventfd.c
virt/kvm/eventfd.c
+1
-1
未找到文件。
drivers/media/platform/soc_camera/soc_camera.c
浏览文件 @
e6c8adca
...
...
@@ -809,7 +809,7 @@ static unsigned int soc_camera_poll(struct file *file, poll_table *pt)
{
struct
soc_camera_device
*
icd
=
file
->
private_data
;
struct
soc_camera_host
*
ici
=
to_soc_camera_host
(
icd
->
parent
);
unsigned
res
=
POLLERR
;
__poll_t
res
=
POLLERR
;
if
(
icd
->
streamer
!=
file
)
return
POLLERR
;
...
...
drivers/media/v4l2-core/v4l2-dev.c
浏览文件 @
e6c8adca
...
...
@@ -334,7 +334,7 @@ static ssize_t v4l2_write(struct file *filp, const char __user *buf,
static
unsigned
int
v4l2_poll
(
struct
file
*
filp
,
struct
poll_table_struct
*
poll
)
{
struct
video_device
*
vdev
=
video_devdata
(
filp
);
unsigned
in
t
res
=
POLLERR
|
POLLHUP
;
__poll_
t
res
=
POLLERR
|
POLLHUP
;
if
(
!
vdev
->
fops
->
poll
)
return
DEFAULT_POLLMASK
;
...
...
drivers/staging/comedi/drivers/serial2002.c
浏览文件 @
e6c8adca
...
...
@@ -119,7 +119,7 @@ static void serial2002_tty_read_poll_wait(struct file *f, int timeout)
poll_initwait
(
&
table
);
while
(
1
)
{
long
elapsed
;
in
t
mask
;
__poll_
t
mask
;
mask
=
f
->
f_op
->
poll
(
f
,
&
table
.
pt
);
if
(
mask
&
(
POLLRDNORM
|
POLLRDBAND
|
POLLIN
|
...
...
drivers/tty/tty_io.c
浏览文件 @
e6c8adca
...
...
@@ -2059,7 +2059,7 @@ static unsigned int tty_poll(struct file *filp, poll_table *wait)
{
struct
tty_struct
*
tty
=
file_tty
(
filp
);
struct
tty_ldisc
*
ld
;
in
t
ret
=
0
;
__poll_
t
ret
=
0
;
if
(
tty_paranoia_check
(
tty
,
file_inode
(
filp
),
"tty_poll"
))
return
0
;
...
...
drivers/vfio/virqfd.c
浏览文件 @
e6c8adca
...
...
@@ -113,7 +113,7 @@ int vfio_virqfd_enable(void *opaque,
struct
eventfd_ctx
*
ctx
;
struct
virqfd
*
virqfd
;
int
ret
=
0
;
unsigned
in
t
events
;
__poll_
t
events
;
virqfd
=
kzalloc
(
sizeof
(
*
virqfd
),
GFP_KERNEL
);
if
(
!
virqfd
)
...
...
drivers/vhost/vhost.c
浏览文件 @
e6c8adca
...
...
@@ -203,7 +203,7 @@ EXPORT_SYMBOL_GPL(vhost_poll_init);
* keep a reference to a file until after vhost_poll_stop is called. */
int
vhost_poll_start
(
struct
vhost_poll
*
poll
,
struct
file
*
file
)
{
unsigned
long
mask
;
__poll_t
mask
;
int
ret
=
0
;
if
(
poll
->
wqh
)
...
...
@@ -211,7 +211,7 @@ int vhost_poll_start(struct vhost_poll *poll, struct file *file)
mask
=
file
->
f_op
->
poll
(
file
,
&
poll
->
table
);
if
(
mask
)
vhost_poll_wakeup
(
&
poll
->
wait
,
0
,
0
,
(
void
*
)
mask
);
vhost_poll_wakeup
(
&
poll
->
wait
,
0
,
0
,
(
void
*
)
(
uintptr_t
)
mask
);
if
(
mask
&
POLLERR
)
{
if
(
poll
->
wqh
)
remove_wait_queue
(
poll
->
wqh
,
&
poll
->
wait
);
...
...
fs/debugfs/file.c
浏览文件 @
e6c8adca
...
...
@@ -210,7 +210,7 @@ static unsigned int full_proxy_poll(struct file *filp,
struct
poll_table_struct
*
wait
)
{
struct
dentry
*
dentry
=
F_DENTRY
(
filp
);
unsigned
in
t
r
=
0
;
__poll_
t
r
=
0
;
const
struct
file_operations
*
real_fops
;
if
(
debugfs_file_get
(
dentry
))
...
...
fs/proc/inode.c
浏览文件 @
e6c8adca
...
...
@@ -237,7 +237,7 @@ static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t
static
unsigned
int
proc_reg_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
pts
)
{
struct
proc_dir_entry
*
pde
=
PDE
(
file_inode
(
file
));
unsigned
in
t
rv
=
DEFAULT_POLLMASK
;
__poll_
t
rv
=
DEFAULT_POLLMASK
;
__poll_t
(
*
poll
)(
struct
file
*
,
struct
poll_table_struct
*
);
if
(
use_pde
(
pde
))
{
poll
=
pde
->
proc_fops
->
poll
;
...
...
fs/select.c
浏览文件 @
e6c8adca
...
...
@@ -484,8 +484,9 @@ static int do_select(int n, fd_set_bits *fds, struct timespec64 *end_time)
rinp
=
fds
->
res_in
;
routp
=
fds
->
res_out
;
rexp
=
fds
->
res_ex
;
for
(
i
=
0
;
i
<
n
;
++
rinp
,
++
routp
,
++
rexp
)
{
unsigned
long
in
,
out
,
ex
,
all_bits
,
bit
=
1
,
mask
,
j
;
unsigned
long
in
,
out
,
ex
,
all_bits
,
bit
=
1
,
j
;
unsigned
long
res_in
=
0
,
res_out
=
0
,
res_ex
=
0
;
__poll_t
mask
;
in
=
*
inp
++
;
out
=
*
outp
++
;
ex
=
*
exp
++
;
all_bits
=
in
|
out
|
ex
;
...
...
@@ -806,7 +807,7 @@ static inline unsigned int do_pollfd(struct pollfd *pollfd, poll_table *pwait,
bool
*
can_busy_poll
,
unsigned
int
busy_flag
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
int
fd
;
mask
=
0
;
...
...
net/smc/af_smc.c
浏览文件 @
e6c8adca
...
...
@@ -1130,7 +1130,7 @@ static unsigned int smc_poll(struct file *file, struct socket *sock,
poll_table
*
wait
)
{
struct
sock
*
sk
=
sock
->
sk
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
struct
smc_sock
*
smc
;
int
rc
;
...
...
net/socket.c
浏览文件 @
e6c8adca
...
...
@@ -1093,7 +1093,7 @@ EXPORT_SYMBOL(sock_create_lite);
/* No kernel lock held - perfect */
static
unsigned
int
sock_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
busy_flag
=
0
;
__poll_
t
busy_flag
=
0
;
struct
socket
*
sock
;
/*
...
...
virt/kvm/eventfd.c
浏览文件 @
e6c8adca
...
...
@@ -287,7 +287,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args)
struct
fd
f
;
struct
eventfd_ctx
*
eventfd
=
NULL
,
*
resamplefd
=
NULL
;
int
ret
;
unsigned
in
t
events
;
__poll_
t
events
;
int
idx
;
if
(
!
kvm_arch_intc_initialized
(
kvm
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录