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 2525
2626struct poll_table_struct ;
2727
28- /*
28+ /*
2929 * structures and helpers for f_op->poll implementations
3030 */
3131typedef void (* poll_queue_proc )(struct file * , wait_queue_head_t * , struct poll_table_struct * );
3232
3333/*
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.
3636 */
3737typedef struct poll_table_struct {
3838 poll_queue_proc _qproc ;
@@ -53,16 +53,6 @@ static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_addres
5353 }
5454}
5555
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-
6656/*
6757 * Return the set of events that the application wants to poll for.
6858 * 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