Home:ALL Converter>How to query the available data size in Linux DVB kernel demux buffers?

How to query the available data size in Linux DVB kernel demux buffers?

Ask Time:2015-12-12T07:28:45         Author:abdus_salam

Json Formatter

I am using a Linux-DVB frontend/demux driver pair to get a program stream remuxed from live broadcast TS into user land. I am using the poll/read combination, however, to keep the context switching and kernel to user space copying penalties at minimum, I only want to read data if it is bigger than a certain size.

I couldn't find any way to query the available data size in the demux buffers nor any option to specify the poll notify size.

Is anybody aware of any such functionality? If not, is it unreasonable to have such a feature request on the DVB api?

Regards,

Author:abdus_salam,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/34234239/how-to-query-the-available-data-size-in-linux-dvb-kernel-demux-buffers
yy