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
4df7338f
Commit
4df7338f
authored
Dec 31, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/tipc: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
31f50b55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
net/tipc/socket.c
net/tipc/socket.c
+5
-9
No files found.
net/tipc/socket.c
View file @
4df7338f
...
...
@@ -692,10 +692,9 @@ static int tipc_getname(struct socket *sock, struct sockaddr *uaddr,
}
/**
* tipc_poll - read
and possibly block on
pollmask
* tipc_poll - read pollmask
* @file: file structure associated with the socket
* @sock: socket for which to calculate the poll bits
* @wait: ???
*
* Returns pollmask value
*
...
...
@@ -709,15 +708,12 @@ static int tipc_getname(struct socket *sock, struct sockaddr *uaddr,
* imply that the operation will succeed, merely that it should be performed
* and will not block.
*/
static
__poll_t
tipc_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_t
tipc_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
tipc_sock
*
tsk
=
tipc_sk
(
sk
);
__poll_t
revents
=
0
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
if
(
sk
->
sk_shutdown
&
RCV_SHUTDOWN
)
revents
|=
EPOLLRDHUP
|
EPOLLIN
|
EPOLLRDNORM
;
if
(
sk
->
sk_shutdown
==
SHUTDOWN_MASK
)
...
...
@@ -3027,7 +3023,7 @@ static const struct proto_ops msg_ops = {
.
socketpair
=
tipc_socketpair
,
.
accept
=
sock_no_accept
,
.
getname
=
tipc_getname
,
.
poll
=
tipc_poll
,
.
poll
_mask
=
tipc_poll_mask
,
.
ioctl
=
tipc_ioctl
,
.
listen
=
sock_no_listen
,
.
shutdown
=
tipc_shutdown
,
...
...
@@ -3048,7 +3044,7 @@ static const struct proto_ops packet_ops = {
.
socketpair
=
tipc_socketpair
,
.
accept
=
tipc_accept
,
.
getname
=
tipc_getname
,
.
poll
=
tipc_poll
,
.
poll
_mask
=
tipc_poll_mask
,
.
ioctl
=
tipc_ioctl
,
.
listen
=
tipc_listen
,
.
shutdown
=
tipc_shutdown
,
...
...
@@ -3069,7 +3065,7 @@ static const struct proto_ops stream_ops = {
.
socketpair
=
tipc_socketpair
,
.
accept
=
tipc_accept
,
.
getname
=
tipc_getname
,
.
poll
=
tipc_poll
,
.
poll
_mask
=
tipc_poll_mask
,
.
ioctl
=
tipc_ioctl
,
.
listen
=
tipc_listen
,
.
shutdown
=
tipc_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