summaryrefslogtreecommitdiffstats
path: root/include/linux/selection.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2010-10-05 14:22:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 10:20:05 -0700
commit47725ac76f51328d467b1430dfd027aba8706a11 (patch)
tree88a335ba4a1525fab44d774b7897690b848f0fbd /include/linux/selection.h
parentf4a3e0bceb57466c31757f25e4e0ed108d1299ec (diff)
downloadlinux-47725ac76f51328d467b1430dfd027aba8706a11.tar.gz
linux-47725ac76f51328d467b1430dfd027aba8706a11.tar.bz2
linux-47725ac76f51328d467b1430dfd027aba8706a11.zip
vcs: add poll/fasync support
The /dev/vcs* devices are used, amongst other things, by accessibility applications such as BRLTTY to display the screen content onto refreshable braille displays. Currently this is performed by constantly reading from /dev/vcsa0 whether or not the screen content has changed. Given the default braille refresh rate of 25 times per second, this easily qualifies as the biggest source of wake-up events preventing laptops from entering deeper power saving states. To avoid this periodic polling, let's add support for select()/poll() and SIGIO with the /dev/vcs* devices. The implemented semantic is to report data availability whenever the corresponding vt has seen some update after the last read() operation. The application still has to lseek() back as usual in order to read() the new data. Not to create unwanted overhead, the needed data structure is allocated and the vt notification callback is registered only when the poll or fasync method is invoked for the first time per file instance. Signed-off-by: Nicolas Pitre <nicolas.pitre@canonical.com> Cc: Andrew Morton <akpm@linux-foundation.org> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/selection.h')
0 files changed, 0 insertions, 0 deletions