1 .. -*- coding: utf-8; mode: rst -*-
14 .. attention:: This ioctl is deprecated.
19 .. c:function:: int ioctl(int fd, FE_READ_SNR, int16_t *snr)
27 File descriptor returned by :c:func:`open() <dvb-fe-open>`.
30 The signal-to-noise ratio is stored into \*snr.
36 This ioctl call returns the signal-to-noise ratio for the signal
37 currently received by the front-end. For this command, read-only access
38 to the device is sufficient.
44 On success 0 is returned, on error -1 and the ``errno`` variable is set
45 appropriately. The generic error codes are described at the
46 :ref:`Generic Error Codes <gen-errors>` chapter.