Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
680ef72a
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,发现更多精彩内容 >>
提交
680ef72a
编写于
7月 02, 2017
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sound: annotate ->poll() instances
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
0d9b87f3
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
49 addition
and
49 deletion
+49
-49
sound/core/compress_offload.c
sound/core/compress_offload.c
+3
-3
sound/core/control.c
sound/core/control.c
+2
-2
sound/core/hwdep.c
sound/core/hwdep.c
+1
-1
sound/core/info.c
sound/core/info.c
+2
-2
sound/core/init.c
sound/core/init.c
+1
-1
sound/core/oss/pcm_oss.c
sound/core/oss/pcm_oss.c
+2
-2
sound/core/pcm_native.c
sound/core/pcm_native.c
+4
-4
sound/core/rawmidi.c
sound/core/rawmidi.c
+2
-2
sound/core/seq/oss/seq_oss.c
sound/core/seq/oss/seq_oss.c
+2
-2
sound/core/seq/oss/seq_oss_device.h
sound/core/seq/oss/seq_oss_device.h
+1
-1
sound/core/seq/oss/seq_oss_rw.c
sound/core/seq/oss/seq_oss_rw.c
+2
-2
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_clientmgr.c
+2
-2
sound/core/timer.c
sound/core/timer.c
+2
-2
sound/firewire/bebob/bebob_hwdep.c
sound/firewire/bebob/bebob_hwdep.c
+2
-2
sound/firewire/dice/dice-hwdep.c
sound/firewire/dice/dice-hwdep.c
+2
-2
sound/firewire/digi00x/digi00x-hwdep.c
sound/firewire/digi00x/digi00x-hwdep.c
+2
-2
sound/firewire/fireface/ff-hwdep.c
sound/firewire/fireface/ff-hwdep.c
+2
-2
sound/firewire/fireworks/fireworks_hwdep.c
sound/firewire/fireworks/fireworks_hwdep.c
+2
-2
sound/firewire/motu/motu-hwdep.c
sound/firewire/motu/motu-hwdep.c
+2
-2
sound/firewire/oxfw/oxfw-hwdep.c
sound/firewire/oxfw/oxfw-hwdep.c
+2
-2
sound/firewire/tascam/tascam-hwdep.c
sound/firewire/tascam/tascam-hwdep.c
+2
-2
sound/oss/dmasound/dmasound_core.c
sound/oss/dmasound/dmasound_core.c
+2
-2
sound/usb/mixer_quirks.c
sound/usb/mixer_quirks.c
+1
-1
sound/usb/usx2y/us122l.c
sound/usb/usx2y/us122l.c
+2
-2
sound/usb/usx2y/usX2Yhwdep.c
sound/usb/usx2y/usX2Yhwdep.c
+2
-2
未找到文件。
sound/core/compress_offload.c
浏览文件 @
680ef72a
...
...
@@ -396,7 +396,7 @@ static int snd_compr_mmap(struct file *f, struct vm_area_struct *vma)
return
-
ENXIO
;
}
static
inline
in
t
snd_compr_get_poll
(
struct
snd_compr_stream
*
stream
)
static
__poll_
t
snd_compr_get_poll
(
struct
snd_compr_stream
*
stream
)
{
if
(
stream
->
direction
==
SND_COMPRESS_PLAYBACK
)
return
POLLOUT
|
POLLWRNORM
;
...
...
@@ -404,12 +404,12 @@ static inline int snd_compr_get_poll(struct snd_compr_stream *stream)
return
POLLIN
|
POLLRDNORM
;
}
static
unsigned
in
t
snd_compr_poll
(
struct
file
*
f
,
poll_table
*
wait
)
static
__poll_
t
snd_compr_poll
(
struct
file
*
f
,
poll_table
*
wait
)
{
struct
snd_compr_file
*
data
=
f
->
private_data
;
struct
snd_compr_stream
*
stream
;
size_t
avail
;
in
t
retval
=
0
;
__poll_
t
retval
=
0
;
if
(
snd_BUG_ON
(
!
data
))
return
POLLERR
;
...
...
sound/core/control.c
浏览文件 @
680ef72a
...
...
@@ -1666,9 +1666,9 @@ static ssize_t snd_ctl_read(struct file *file, char __user *buffer,
return
result
>
0
?
result
:
err
;
}
static
unsigned
in
t
snd_ctl_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_ctl_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
snd_ctl_file
*
ctl
;
ctl
=
file
->
private_data
;
...
...
sound/core/hwdep.c
浏览文件 @
680ef72a
...
...
@@ -177,7 +177,7 @@ static int snd_hwdep_release(struct inode *inode, struct file * file)
return
err
;
}
static
unsigned
in
t
snd_hwdep_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_hwdep_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_hwdep
*
hw
=
file
->
private_data
;
if
(
hw
->
ops
.
poll
)
...
...
sound/core/info.c
浏览文件 @
680ef72a
...
...
@@ -203,11 +203,11 @@ static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer
return
size
;
}
static
unsigned
in
t
snd_info_entry_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_info_entry_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_info_private_data
*
data
=
file
->
private_data
;
struct
snd_info_entry
*
entry
=
data
->
entry
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
if
(
entry
->
c
.
ops
->
poll
)
return
entry
->
c
.
ops
->
poll
(
entry
,
...
...
sound/core/init.c
浏览文件 @
680ef72a
...
...
@@ -344,7 +344,7 @@ static int snd_disconnect_release(struct inode *inode, struct file *file)
panic
(
"%s(%p, %p) failed!"
,
__func__
,
inode
,
file
);
}
static
unsigned
in
t
snd_disconnect_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_disconnect_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
return
POLLERR
|
POLLNVAL
;
}
...
...
sound/core/oss/pcm_oss.c
浏览文件 @
680ef72a
...
...
@@ -2673,10 +2673,10 @@ static int snd_pcm_oss_capture_ready(struct snd_pcm_substream *substream)
runtime
->
oss
.
period_frames
;
}
static
unsigned
in
t
snd_pcm_oss_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_pcm_oss_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_pcm_oss_file
*
pcm_oss_file
;
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
snd_pcm_substream
*
psubstream
=
NULL
,
*
csubstream
=
NULL
;
pcm_oss_file
=
file
->
private_data
;
...
...
sound/core/pcm_native.c
浏览文件 @
680ef72a
...
...
@@ -3130,12 +3130,12 @@ static ssize_t snd_pcm_writev(struct kiocb *iocb, struct iov_iter *from)
return
result
;
}
static
unsigned
in
t
snd_pcm_playback_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_pcm_playback_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_pcm_file
*
pcm_file
;
struct
snd_pcm_substream
*
substream
;
struct
snd_pcm_runtime
*
runtime
;
unsigned
in
t
mask
;
__poll_
t
mask
;
snd_pcm_uframes_t
avail
;
pcm_file
=
file
->
private_data
;
...
...
@@ -3169,12 +3169,12 @@ static unsigned int snd_pcm_playback_poll(struct file *file, poll_table * wait)
return
mask
;
}
static
unsigned
in
t
snd_pcm_capture_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_pcm_capture_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_pcm_file
*
pcm_file
;
struct
snd_pcm_substream
*
substream
;
struct
snd_pcm_runtime
*
runtime
;
unsigned
in
t
mask
;
__poll_
t
mask
;
snd_pcm_uframes_t
avail
;
pcm_file
=
file
->
private_data
;
...
...
sound/core/rawmidi.c
浏览文件 @
680ef72a
...
...
@@ -1357,11 +1357,11 @@ static ssize_t snd_rawmidi_write(struct file *file, const char __user *buf,
return
result
;
}
static
unsigned
in
t
snd_rawmidi_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_rawmidi_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_rawmidi_file
*
rfile
;
struct
snd_rawmidi_runtime
*
runtime
;
unsigned
in
t
mask
;
__poll_
t
mask
;
rfile
=
file
->
private_data
;
if
(
rfile
->
input
!=
NULL
)
{
...
...
sound/core/seq/oss/seq_oss.c
浏览文件 @
680ef72a
...
...
@@ -59,7 +59,7 @@ static int odev_release(struct inode *inode, struct file *file);
static
ssize_t
odev_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
offset
);
static
ssize_t
odev_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
offset
);
static
long
odev_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
unsigned
in
t
odev_poll
(
struct
file
*
file
,
poll_table
*
wait
);
static
__poll_
t
odev_poll
(
struct
file
*
file
,
poll_table
*
wait
);
/*
...
...
@@ -197,7 +197,7 @@ static long odev_ioctl_compat(struct file *file, unsigned int cmd,
#define odev_ioctl_compat NULL
#endif
static
unsigned
in
t
static
__poll_
t
odev_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
seq_oss_devinfo
*
dp
;
...
...
sound/core/seq/oss/seq_oss_device.h
浏览文件 @
680ef72a
...
...
@@ -124,7 +124,7 @@ void snd_seq_oss_release(struct seq_oss_devinfo *dp);
int
snd_seq_oss_ioctl
(
struct
seq_oss_devinfo
*
dp
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
snd_seq_oss_read
(
struct
seq_oss_devinfo
*
dev
,
char
__user
*
buf
,
int
count
);
int
snd_seq_oss_write
(
struct
seq_oss_devinfo
*
dp
,
const
char
__user
*
buf
,
int
count
,
struct
file
*
opt
);
unsigned
in
t
snd_seq_oss_poll
(
struct
seq_oss_devinfo
*
dp
,
struct
file
*
file
,
poll_table
*
wait
);
__poll_
t
snd_seq_oss_poll
(
struct
seq_oss_devinfo
*
dp
,
struct
file
*
file
,
poll_table
*
wait
);
void
snd_seq_oss_reset
(
struct
seq_oss_devinfo
*
dp
);
...
...
sound/core/seq/oss/seq_oss_rw.c
浏览文件 @
680ef72a
...
...
@@ -196,10 +196,10 @@ insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt)
* select / poll
*/
unsigned
in
t
__poll_
t
snd_seq_oss_poll
(
struct
seq_oss_devinfo
*
dp
,
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
/* input */
if
(
dp
->
readq
&&
is_read_mode
(
dp
->
file_mode
))
{
...
...
sound/core/seq/seq_clientmgr.c
浏览文件 @
680ef72a
...
...
@@ -1086,10 +1086,10 @@ static ssize_t snd_seq_write(struct file *file, const char __user *buf,
/*
* handle polling
*/
static
unsigned
in
t
snd_seq_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_seq_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_seq_client
*
client
=
file
->
private_data
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
/* check client structures are in place */
if
(
snd_BUG_ON
(
!
client
))
...
...
sound/core/timer.c
浏览文件 @
680ef72a
...
...
@@ -2072,9 +2072,9 @@ static ssize_t snd_timer_user_read(struct file *file, char __user *buffer,
return
result
>
0
?
result
:
err
;
}
static
unsigned
in
t
snd_timer_user_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_timer_user_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
mask
;
__poll_
t
mask
;
struct
snd_timer_user
*
tu
;
tu
=
file
->
private_data
;
...
...
sound/firewire/bebob/bebob_hwdep.c
浏览文件 @
680ef72a
...
...
@@ -53,11 +53,11 @@ hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
return
count
;
}
static
unsigned
in
t
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_bebob
*
bebob
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
bebob
->
hwdep_wait
,
wait
);
...
...
sound/firewire/dice/dice-hwdep.c
浏览文件 @
680ef72a
...
...
@@ -52,11 +52,11 @@ static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf,
return
count
;
}
static
unsigned
in
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_dice
*
dice
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
dice
->
hwdep_wait
,
wait
);
...
...
sound/firewire/digi00x/digi00x-hwdep.c
浏览文件 @
680ef72a
...
...
@@ -60,11 +60,11 @@ static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
return
count
;
}
static
unsigned
in
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_dg00x
*
dg00x
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
dg00x
->
hwdep_wait
,
wait
);
...
...
sound/firewire/fireface/ff-hwdep.c
浏览文件 @
680ef72a
...
...
@@ -52,11 +52,11 @@ static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
return
count
;
}
static
unsigned
in
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_ff
*
ff
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
ff
->
hwdep_wait
,
wait
);
...
...
sound/firewire/fireworks/fireworks_hwdep.c
浏览文件 @
680ef72a
...
...
@@ -184,11 +184,11 @@ hwdep_write(struct snd_hwdep *hwdep, const char __user *data, long count,
return
count
;
}
static
unsigned
in
t
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_efw
*
efw
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
efw
->
hwdep_wait
,
wait
);
...
...
sound/firewire/motu/motu-hwdep.c
浏览文件 @
680ef72a
...
...
@@ -59,11 +59,11 @@ static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
return
count
;
}
static
unsigned
in
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_motu
*
motu
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
motu
->
hwdep_wait
,
wait
);
...
...
sound/firewire/oxfw/oxfw-hwdep.c
浏览文件 @
680ef72a
...
...
@@ -52,11 +52,11 @@ static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
return
count
;
}
static
unsigned
in
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_oxfw
*
oxfw
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
oxfw
->
hwdep_wait
,
wait
);
...
...
sound/firewire/tascam/tascam-hwdep.c
浏览文件 @
680ef72a
...
...
@@ -50,11 +50,11 @@ static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
return
count
;
}
static
unsigned
in
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
static
__poll_
t
hwdep_poll
(
struct
snd_hwdep
*
hwdep
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
snd_tscm
*
tscm
=
hwdep
->
private_data
;
unsigned
in
t
events
;
__poll_
t
events
;
poll_wait
(
file
,
&
tscm
->
hwdep_wait
,
wait
);
...
...
sound/oss/dmasound/dmasound_core.c
浏览文件 @
680ef72a
...
...
@@ -670,9 +670,9 @@ static ssize_t sq_write(struct file *file, const char __user *src, size_t uLeft,
return
uUsed
<
0
?
uUsed
:
uWritten
;
}
static
unsigned
in
t
sq_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
wait
)
static
__poll_
t
sq_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
wait
)
{
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
int
retVal
;
if
(
write_sq
.
locked
==
0
)
{
...
...
sound/usb/mixer_quirks.c
浏览文件 @
680ef72a
...
...
@@ -239,7 +239,7 @@ static long snd_usb_sbrc_hwdep_read(struct snd_hwdep *hw, char __user *buf,
return
err
<
0
?
err
:
count
;
}
static
unsigned
in
t
snd_usb_sbrc_hwdep_poll
(
struct
snd_hwdep
*
hw
,
struct
file
*
file
,
static
__poll_
t
snd_usb_sbrc_hwdep_poll
(
struct
snd_hwdep
*
hw
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
usb_mixer_interface
*
mixer
=
hw
->
private_data
;
...
...
sound/usb/usx2y/us122l.c
浏览文件 @
680ef72a
...
...
@@ -271,12 +271,12 @@ static int usb_stream_hwdep_mmap(struct snd_hwdep *hw,
return
err
;
}
static
unsigned
in
t
usb_stream_hwdep_poll
(
struct
snd_hwdep
*
hw
,
static
__poll_
t
usb_stream_hwdep_poll
(
struct
snd_hwdep
*
hw
,
struct
file
*
file
,
poll_table
*
wait
)
{
struct
us122l
*
us122l
=
hw
->
private_data
;
unsigned
*
polled
;
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
&
us122l
->
sk
.
sleep
,
wait
);
...
...
sound/usb/usx2y/usX2Yhwdep.c
浏览文件 @
680ef72a
...
...
@@ -86,9 +86,9 @@ static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct v
return
0
;
}
static
unsigned
in
t
snd_us428ctls_poll
(
struct
snd_hwdep
*
hw
,
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
snd_us428ctls_poll
(
struct
snd_hwdep
*
hw
,
struct
file
*
file
,
poll_table
*
wait
)
{
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
struct
usX2Ydev
*
us428
=
hw
->
private_data
;
struct
us428ctls_sharedmem
*
shm
=
us428
->
us428ctls_sharedmem
;
if
(
us428
->
chip_status
&
USX2Y_STAT_CHIP_HUP
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录