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
e7a98d47
Commit
e7a98d47
authored
Dec 31, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/phonet: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
4bac2bcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
net/phonet/socket.c
net/phonet/socket.c
+2
-5
No files found.
net/phonet/socket.c
View file @
e7a98d47
...
...
@@ -340,15 +340,12 @@ static int pn_socket_getname(struct socket *sock, struct sockaddr *addr,
return
sizeof
(
struct
sockaddr_pn
);
}
static
__poll_t
pn_socket_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_t
pn_socket_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
pep_sock
*
pn
=
pep_sk
(
sk
);
__poll_t
mask
=
0
;
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
if
(
sk
->
sk_state
==
TCP_CLOSE
)
return
EPOLLERR
;
if
(
!
skb_queue_empty
(
&
sk
->
sk_receive_queue
))
...
...
@@ -473,7 +470,7 @@ const struct proto_ops phonet_stream_ops = {
.
socketpair
=
sock_no_socketpair
,
.
accept
=
pn_socket_accept
,
.
getname
=
pn_socket_getname
,
.
poll
=
pn_socket_poll
,
.
poll
_mask
=
pn_socket_poll_mask
,
.
ioctl
=
pn_socket_ioctl
,
.
listen
=
pn_socket_listen
,
.
shutdown
=
sock_no_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