Lines Matching refs:poll

66 	struct vcs_poll_data *poll =  in vcs_notifier()  local
68 int currcons = poll->cons_num; in vcs_notifier()
80 poll->seen_last_update = false; in vcs_notifier()
81 wake_up_interruptible(&poll->waitq); in vcs_notifier()
82 kill_fasync(&poll->fasync, SIGIO, POLL_IN); in vcs_notifier()
87 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
89 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
90 kfree(poll); in vcs_poll_data_free()
96 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local
98 if (poll) in vcs_poll_data_get()
99 return poll; in vcs_poll_data_get()
101 poll = kzalloc(sizeof(*poll), GFP_KERNEL); in vcs_poll_data_get()
102 if (!poll) in vcs_poll_data_get()
104 poll->cons_num = iminor(file_inode(file)) & 127; in vcs_poll_data_get()
105 init_waitqueue_head(&poll->waitq); in vcs_poll_data_get()
106 poll->notifier.notifier_call = vcs_notifier; in vcs_poll_data_get()
107 if (register_vt_notifier(&poll->notifier) != 0) { in vcs_poll_data_get()
108 kfree(poll); in vcs_poll_data_get()
122 file->private_data = poll; in vcs_poll_data_get()
125 kill = poll; in vcs_poll_data_get()
126 poll = file->private_data; in vcs_poll_data_get()
132 return poll; in vcs_poll_data_get()
201 struct vcs_poll_data *poll; in vcs_read() local
229 poll = file->private_data; in vcs_read()
230 if (count && poll) in vcs_read()
231 poll->seen_last_update = true; in vcs_read()
564 struct vcs_poll_data *poll = vcs_poll_data_get(file); in vcs_poll() local
567 if (poll) { in vcs_poll()
568 poll_wait(file, &poll->waitq, wait); in vcs_poll()
569 if (poll->seen_last_update) in vcs_poll()
578 struct vcs_poll_data *poll = file->private_data; in vcs_fasync() local
580 if (!poll) { in vcs_fasync()
584 poll = vcs_poll_data_get(file); in vcs_fasync()
585 if (!poll) in vcs_fasync()
589 return fasync_helper(fd, file, on, &poll->fasync); in vcs_fasync()
607 struct vcs_poll_data *poll = file->private_data; in vcs_release() local
609 if (poll) in vcs_release()
610 vcs_poll_data_free(poll); in vcs_release()
618 .poll = vcs_poll,