doc-rst: linux_tv: simplify references
[deliverable/linux.git] / Documentation / linux_tv / media / dvb / FE_READ_SNR.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_READ_SNR:
4
5***********
6FE_READ_SNR
7***********
8
9DESCRIPTION
10
11This ioctl call returns the signal-to-noise ratio for the signal
12currently received by the front-end. For this command, read-only access
13to the device is sufficient.
14
15SYNOPSIS
16
7347081e 17int ioctl(int fd, int request = :ref:`FE_READ_SNR`,
5377d91f
MH
18uint16_t *snr);
19
20PARAMETERS
21
22
23
24.. flat-table::
25 :header-rows: 0
26 :stub-columns: 0
27
28
29 - .. row 1
30
31 - int fd
32
33 - File descriptor returned by a previous call to open().
34
35 - .. row 2
36
37 - int request
38
7347081e 39 - Equals :ref:`FE_READ_SNR` for this command.
5377d91f
MH
40
41 - .. row 3
42
43 - uint16_t *snr
44
45 - The signal-to-noise ratio is stored into *snr.
46
47
48RETURN VALUE
49
50On success 0 is returned, on error -1 and the ``errno`` variable is set
51appropriately. The generic error codes are described at the
52:ref:`Generic Error Codes <gen-errors>` chapter.
53
54
55.. ------------------------------------------------------------------------------
56.. This file was automatically converted from DocBook-XML with the dbxml
57.. library (https://github.com/return42/sphkerneldoc). The origin XML comes
58.. from the linux kernel, refer to:
59..
60.. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
61.. ------------------------------------------------------------------------------
This page took 0.026453 seconds and 5 git commands to generate.