Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
31f50b55
Commit
31f50b55
authored
Dec 31, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/vmw_vsock: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
9f728af3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
net/vmw_vsock/af_vsock.c
net/vmw_vsock/af_vsock.c
+6
-13
No files found.
net/vmw_vsock/af_vsock.c
View file @
31f50b55
...
...
@@ -850,18 +850,11 @@ static int vsock_shutdown(struct socket *sock, int mode)
return
err
;
}
static
__poll_t
vsock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_t
vsock_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
;
__poll_t
mask
;
struct
vsock_sock
*
vsk
;
sk
=
sock
->
sk
;
vsk
=
vsock_sk
(
sk
);
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
struct
sock
*
sk
=
sock
->
sk
;
struct
vsock_sock
*
vsk
=
vsock_sk
(
sk
);
__poll_t
mask
=
0
;
if
(
sk
->
sk_err
)
/* Signify that there has been an error on this socket. */
...
...
@@ -1091,7 +1084,7 @@ static const struct proto_ops vsock_dgram_ops = {
.
socketpair
=
sock_no_socketpair
,
.
accept
=
sock_no_accept
,
.
getname
=
vsock_getname
,
.
poll
=
vsock_poll
,
.
poll
_mask
=
vsock_poll_mask
,
.
ioctl
=
sock_no_ioctl
,
.
listen
=
sock_no_listen
,
.
shutdown
=
vsock_shutdown
,
...
...
@@ -1849,7 +1842,7 @@ static const struct proto_ops vsock_stream_ops = {
.
socketpair
=
sock_no_socketpair
,
.
accept
=
vsock_accept
,
.
getname
=
vsock_getname
,
.
poll
=
vsock_poll
,
.
poll
_mask
=
vsock_poll_mask
,
.
ioctl
=
sock_no_ioctl
,
.
listen
=
vsock_listen
,
.
shutdown
=
vsock_shutdown
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment