Source
16
16
#include "proc/internal.h" /* only for get_proc_task() in ->open() */
17
17
18
18
#include "pnode.h"
19
19
#include "internal.h"
20
20
21
21
static __poll_t mounts_poll(struct file *file, poll_table *wait)
22
22
{
23
23
struct seq_file *m = file->private_data;
24
24
struct proc_mounts *p = m->private;
25
25
struct mnt_namespace *ns = p->ns;
26
-
__poll_t res = POLLIN | POLLRDNORM;
26
+
__poll_t res = EPOLLIN | EPOLLRDNORM;
27
27
int event;
28
28
29
29
poll_wait(file, &p->ns->poll, wait);
30
30
31
31
event = READ_ONCE(ns->event);
32
32
if (m->poll_event != event) {
33
33
m->poll_event = event;
34
-
res |= POLLERR | POLLPRI;
34
+
res |= EPOLLERR | EPOLLPRI;
35
35
}
36
36
37
37
return res;
38
38
}
39
39
40
40
struct proc_fs_info {
41
41
int flag;
42
42
const char *str;
43
43
};
44
44