[PATCH/RFC] dmxdev: Add support for the FIONREAD ioctl

2016-04-25 Thread Dominic Chen
This is a standard ioctl supported by file descriptors, sockets (as SIOCINQ), and ttys (as TIOCOUTQ) to get the size of the available read buffer. It provides userspace with a feedback mechanism to avoid overflow of the kernel ringbuffer, and is used by e.g. libevent. Signed-off-by: Dominic Chen

[PATCH/RFC] dvb-core: drop stubs for llseek()

2016-04-21 Thread Dominic Chen
Since the default behavior in vfs_llseek() is now no_llseek(), and filp->f_pos / ppos are not actually used anywhere in dvb, drop the inconsistent llseek() stubs. Signed-off-by: Dominic Chen --- drivers/media/dvb-core/dmxdev.c | 2 -- drivers/media/dvb-core/dvb_ca_en50221.c