#ifndef _LINUX_POLL_H
#define _LINUX_POLL_H
#include <linux/compiler.h>
#include <linux/ktime.h>
#include <linux/wait.h>
#include <linux/string.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <uapi/linux/poll.h>
#include <uapi/linux/eventpoll.h>
#define MAX_STACK_ALLOC …
#define FRONTEND_STACK_ALLOC …
#define SELECT_STACK_ALLOC …
#define POLL_STACK_ALLOC …
#define WQUEUES_STACK_ALLOC …
#define N_INLINE_POLL_ENTRIES …
#define DEFAULT_POLLMASK …
struct poll_table_struct;
poll_queue_proc;
poll_table;
static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_address, poll_table *p)
{ … }
static inline bool poll_does_not_wait(const poll_table *p)
{ … }
static inline __poll_t poll_requested_events(const poll_table *p)
{ … }
static inline void init_poll_funcptr(poll_table *pt, poll_queue_proc qproc)
{ … }
static inline bool file_can_poll(struct file *file)
{ … }
static inline __poll_t vfs_poll(struct file *file, struct poll_table_struct *pt)
{ … }
struct poll_table_entry { … };
struct poll_wqueues { … };
extern void poll_initwait(struct poll_wqueues *pwq);
extern void poll_freewait(struct poll_wqueues *pwq);
extern u64 select_estimate_accuracy(struct timespec64 *tv);
#define MAX_INT64_SECONDS …
extern int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,
fd_set __user *exp, struct timespec64 *end_time);
extern int poll_select_set_timeout(struct timespec64 *to, time64_t sec,
long nsec);
#define __MAP(v, from, to) …
static inline __u16 mangle_poll(__poll_t val)
{ … }
static inline __poll_t demangle_poll(u16 val)
{ … }
#undef __MAP
#endif