aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorSergey Ryazanov <ryazanov.s.a@gmail.com>2021-06-08 07:02:39 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-08 14:33:43 -0700
commite263c5b2e8912149b49d757511d85a16c5fb432f (patch)
treebb5b63cdea2dd0058ad099aa546eded786e90c19 /net/lapb/lapb_iface.c
parent72eedfc4bbc7480ea8fb38d5aebb57eafc03c8d5 (diff)
downloadlinux-e263c5b2e8912149b49d757511d85a16c5fb432f.tar.gz
linux-e263c5b2e8912149b49d757511d85a16c5fb432f.tar.bz2
linux-e263c5b2e8912149b49d757511d85a16c5fb432f.zip
net: wwan: core: implement TIOCINQ ioctl
It is quite common for a userpace program to fetch the buffered amount of data in the rx queue to avoid the read block. Implement the TIOCINQ ioctl to make the migration to the WWAN port usage smooth. Despite the fact that the read call will return no more data than the size of a first skb in the queue, TIOCINQ returns the entire amount of buffered data (sum of all queued skbs). This is done to prevent the breaking of programs that optimize reading, avoiding it if the buffered amount of data is too small. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> Reviewed-by: Loic Poulain <loic.poulain@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions