Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
17112d80
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
17112d80
编写于
12月 31, 2017
作者:
C
Christoph Hellwig
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
net/bluetooth: convert to ->poll_mask
Signed-off-by:
N
Christoph Hellwig
<
hch@lst.de
>
上级
568ea88e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
9 deletion
+6
-9
include/net/bluetooth/bluetooth.h
include/net/bluetooth/bluetooth.h
+1
-1
net/bluetooth/af_bluetooth.c
net/bluetooth/af_bluetooth.c
+2
-5
net/bluetooth/l2cap_sock.c
net/bluetooth/l2cap_sock.c
+1
-1
net/bluetooth/rfcomm/sock.c
net/bluetooth/rfcomm/sock.c
+1
-1
net/bluetooth/sco.c
net/bluetooth/sco.c
+1
-1
未找到文件。
include/net/bluetooth/bluetooth.h
浏览文件 @
17112d80
...
...
@@ -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
);
__poll_t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
__poll_t
bt_sock_poll
_mask
(
struct
socket
*
sock
,
__poll_t
events
);
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
);
...
...
net/bluetooth/af_bluetooth.c
浏览文件 @
17112d80
...
...
@@ -437,16 +437,13 @@ static inline __poll_t bt_accept_poll(struct sock *parent)
return
0
;
}
__poll_t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
__poll_t
bt_sock_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
;
__poll_t
mask
=
0
;
BT_DBG
(
"sock %p, sk %p"
,
sock
,
sk
);
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
if
(
sk
->
sk_state
==
BT_LISTEN
)
return
bt_accept_poll
(
sk
);
...
...
@@ -478,7 +475,7 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock,
return
mask
;
}
EXPORT_SYMBOL
(
bt_sock_poll
);
EXPORT_SYMBOL
(
bt_sock_poll
_mask
);
int
bt_sock_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
...
...
net/bluetooth/l2cap_sock.c
浏览文件 @
17112d80
...
...
@@ -1653,7 +1653,7 @@ static const struct proto_ops l2cap_sock_ops = {
.
getname
=
l2cap_sock_getname
,
.
sendmsg
=
l2cap_sock_sendmsg
,
.
recvmsg
=
l2cap_sock_recvmsg
,
.
poll
=
bt_sock_poll
,
.
poll
_mask
=
bt_sock_poll_mask
,
.
ioctl
=
bt_sock_ioctl
,
.
mmap
=
sock_no_mmap
,
.
socketpair
=
sock_no_socketpair
,
...
...
net/bluetooth/rfcomm/sock.c
浏览文件 @
17112d80
...
...
@@ -1049,7 +1049,7 @@ static const struct proto_ops rfcomm_sock_ops = {
.
setsockopt
=
rfcomm_sock_setsockopt
,
.
getsockopt
=
rfcomm_sock_getsockopt
,
.
ioctl
=
rfcomm_sock_ioctl
,
.
poll
=
bt_sock_poll
,
.
poll
_mask
=
bt_sock_poll_mask
,
.
socketpair
=
sock_no_socketpair
,
.
mmap
=
sock_no_mmap
};
...
...
net/bluetooth/sco.c
浏览文件 @
17112d80
...
...
@@ -1197,7 +1197,7 @@ static const struct proto_ops sco_sock_ops = {
.
getname
=
sco_sock_getname
,
.
sendmsg
=
sco_sock_sendmsg
,
.
recvmsg
=
sco_sock_recvmsg
,
.
poll
=
bt_sock_poll
,
.
poll
_mask
=
bt_sock_poll_mask
,
.
ioctl
=
bt_sock_ioctl
,
.
mmap
=
sock_no_mmap
,
.
socketpair
=
sock_no_socketpair
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录