File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 25
25
26
26
struct poll_table_struct ;
27
27
28
- /*
28
+ /*
29
29
* structures and helpers for f_op->poll implementations
30
30
*/
31
31
typedef void (* poll_queue_proc )(struct file * , wait_queue_head_t * , struct poll_table_struct * );
32
32
33
33
/*
34
- * Do not touch the structure directly, use the access functions
35
- * poll_does_not_wait() and poll_requested_events() instead.
34
+ * Do not touch the structure directly, use the access function
35
+ * poll_requested_events() instead.
36
36
*/
37
37
typedef struct poll_table_struct {
38
38
poll_queue_proc _qproc ;
@@ -53,16 +53,6 @@ static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_addres
53
53
}
54
54
}
55
55
56
- /*
57
- * Return true if it is guaranteed that poll will not wait. This is the case
58
- * if the poll() of another file descriptor in the set got an event, so there
59
- * is no need for waiting.
60
- */
61
- static inline bool poll_does_not_wait (const poll_table * p )
62
- {
63
- return p == NULL || p -> _qproc == NULL ;
64
- }
65
-
66
56
/*
67
57
* Return the set of events that the application wants to poll for.
68
58
* This is useful for drivers that need to know whether a DMA transfer has
You can’t perform that action at this time.
0 commit comments