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
Kirill Smelkov
linux
Commits
5001c2dc
Commit
5001c2dc
authored
Dec 31, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/rxrpc: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
f87be894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
net/rxrpc/af_rxrpc.c
net/rxrpc/af_rxrpc.c
+3
-7
No files found.
net/rxrpc/af_rxrpc.c
View file @
5001c2dc
...
@@ -734,15 +734,11 @@ static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
...
@@ -734,15 +734,11 @@ static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
/*
/*
* permit an RxRPC socket to be polled
* permit an RxRPC socket to be polled
*/
*/
static
__poll_t
rxrpc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
static
__poll_t
rxrpc_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
poll_table
*
wait
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
struct
rxrpc_sock
*
rx
=
rxrpc_sk
(
sk
);
struct
rxrpc_sock
*
rx
=
rxrpc_sk
(
sk
);
__poll_t
mask
;
__poll_t
mask
=
0
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
/* the socket is readable if there are any messages waiting on the Rx
/* the socket is readable if there are any messages waiting on the Rx
* queue */
* queue */
...
@@ -949,7 +945,7 @@ static const struct proto_ops rxrpc_rpc_ops = {
...
@@ -949,7 +945,7 @@ static const struct proto_ops rxrpc_rpc_ops = {
.
socketpair
=
sock_no_socketpair
,
.
socketpair
=
sock_no_socketpair
,
.
accept
=
sock_no_accept
,
.
accept
=
sock_no_accept
,
.
getname
=
sock_no_getname
,
.
getname
=
sock_no_getname
,
.
poll
=
rxrpc_poll
,
.
poll
_mask
=
rxrpc_poll_mask
,
.
ioctl
=
sock_no_ioctl
,
.
ioctl
=
sock_no_ioctl
,
.
listen
=
rxrpc_listen
,
.
listen
=
rxrpc_listen
,
.
shutdown
=
rxrpc_shutdown
,
.
shutdown
=
rxrpc_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