rpmsg: glink: initialize ret to zero to ensure error status check is correct
[sfrench/cifs-2.6.git] / Documentation / media / uapi / dvb / dmx-set-source.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _DMX_SET_SOURCE:
4
5 ==============
6 DMX_SET_SOURCE
7 ==============
8
9 Name
10 ----
11
12 DMX_SET_SOURCE
13
14
15 Synopsis
16 --------
17
18 .. c:function:: int ioctl(fd, DMX_SET_SOURCE, struct dmx_source *src)
19     :name: DMX_SET_SOURCE
20
21
22 Arguments
23 ---------
24
25
26 ``fd``
27     File descriptor returned by :c:func:`open() <dvb-dmx-open>`.
28
29 ``src``
30    Undocumented.
31
32
33 Description
34 -----------
35
36 .. note:: This ioctl is undocumented. Documentation is welcome.
37
38
39 Return Value
40 ------------
41
42 On success 0 is returned, on error -1 and the ``errno`` variable is set
43 appropriately. The generic error codes are described at the
44 :ref:`Generic Error Codes <gen-errors>` chapter.