Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
e76cd24d
K
Kernel
项目概览
openeuler
/
Kernel
大约 2 年 前同步成功
通知
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看板
提交
e76cd24d
编写于
4月 09, 2018
作者:
C
Christoph Hellwig
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
net/unix: convert to ->poll_mask
Signed-off-by:
N
Christoph Hellwig
<
hch@lst.de
>
上级
2c7d3dac
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
19 deletion
+11
-19
net/unix/af_unix.c
net/unix/af_unix.c
+11
-19
未找到文件。
net/unix/af_unix.c
浏览文件 @
e76cd24d
...
...
@@ -638,9 +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
);
static
__poll_t
unix_poll
(
struct
file
*
,
struct
socket
*
,
poll_table
*
);
static
__poll_t
unix_dgram_poll
(
struct
file
*
,
struct
socket
*
,
poll_table
*
);
static
__poll_t
unix_poll_mask
(
struct
socket
*
,
__poll_t
);
static
__poll_t
unix_dgram_poll_mask
(
struct
socket
*
,
__poll_t
);
static
int
unix_ioctl
(
struct
socket
*
,
unsigned
int
,
unsigned
long
);
static
int
unix_shutdown
(
struct
socket
*
,
int
);
static
int
unix_stream_sendmsg
(
struct
socket
*
,
struct
msghdr
*
,
size_t
);
...
...
@@ -681,7 +680,7 @@ static const struct proto_ops unix_stream_ops = {
.
socketpair
=
unix_socketpair
,
.
accept
=
unix_accept
,
.
getname
=
unix_getname
,
.
poll
=
unix_poll
,
.
poll
_mask
=
unix_poll_mask
,
.
ioctl
=
unix_ioctl
,
.
listen
=
unix_listen
,
.
shutdown
=
unix_shutdown
,
...
...
@@ -704,7 +703,7 @@ static const struct proto_ops unix_dgram_ops = {
.
socketpair
=
unix_socketpair
,
.
accept
=
sock_no_accept
,
.
getname
=
unix_getname
,
.
poll
=
unix_dgram_poll
,
.
poll
_mask
=
unix_dgram_poll_mask
,
.
ioctl
=
unix_ioctl
,
.
listen
=
sock_no_listen
,
.
shutdown
=
unix_shutdown
,
...
...
@@ -726,7 +725,7 @@ static const struct proto_ops unix_seqpacket_ops = {
.
socketpair
=
unix_socketpair
,
.
accept
=
unix_accept
,
.
getname
=
unix_getname
,
.
poll
=
unix_dgram_poll
,
.
poll
_mask
=
unix_dgram_poll_mask
,
.
ioctl
=
unix_ioctl
,
.
listen
=
unix_listen
,
.
shutdown
=
unix_shutdown
,
...
...
@@ -2630,13 +2629,10 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
return
err
;
}
static
__poll_t
unix_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_t
unix_poll
_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
;
__poll_t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
__poll_t
mask
=
0
;
/* exceptional events? */
if
(
sk
->
sk_err
)
...
...
@@ -2665,15 +2661,11 @@ static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wa
return
mask
;
}
static
__poll_t
unix_dgram_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_t
unix_dgram_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
,
*
other
;
unsigned
int
writable
;
__poll_t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
int
writable
;
__poll_t
mask
=
0
;
/* exceptional events? */
if
(
sk
->
sk_err
||
!
skb_queue_empty
(
&
sk
->
sk_error_queue
))
...
...
@@ -2699,7 +2691,7 @@ static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,
}
/* No write status requested, avoid expensive OUT tests. */
if
(
!
(
poll_requested_events
(
wait
)
&
(
EPOLLWRBAND
|
EPOLLWRNORM
|
EPOLLOUT
)))
if
(
!
(
events
&
(
EPOLLWRBAND
|
EPOLLWRNORM
|
EPOLLOUT
)))
return
mask
;
writable
=
unix_writable
(
sk
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录