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
c18fb139
Commit
c18fb139
authored
Jul 15, 2010
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: evdev - signal that device is writable in evdev_poll()
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
4d4bf995
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/input/evdev.c
drivers/input/evdev.c
+7
-2
No files found.
drivers/input/evdev.c
View file @
c18fb139
...
...
@@ -403,10 +403,15 @@ static unsigned int evdev_poll(struct file *file, poll_table *wait)
{
struct
evdev_client
*
client
=
file
->
private_data
;
struct
evdev
*
evdev
=
client
->
evdev
;
unsigned
int
mask
;
poll_wait
(
file
,
&
evdev
->
wait
,
wait
);
return
((
client
->
head
==
client
->
tail
)
?
0
:
(
POLLIN
|
POLLRDNORM
))
|
(
evdev
->
exist
?
0
:
(
POLLHUP
|
POLLERR
));
mask
=
evdev
->
exist
?
POLLOUT
|
POLLWRNORM
:
POLLHUP
|
POLLERR
;
if
(
client
->
head
!=
client
->
tail
)
mask
|=
POLLIN
|
POLLRDNORM
;
return
mask
;
}
#ifdef CONFIG_COMPAT
...
...
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