aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/media/uapi/dvb/dtv-property.rst
blob: 3ddc3474b00ee3a19ef405b7a801c945c957a131 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.. -*- coding: utf-8; mode: rst -*-

.. c:type:: dtv_property

*******************
struct dtv_property
*******************


.. code-block:: c

    /* Reserved fields should be set to 0 */

    struct dtv_property {
	__u32 cmd;
	__u32 reserved[3];
	union {
	    __u32 data;
	    struct dtv_fe_stats st;
	    struct {
		__u8 data[32];
		__u32 len;
		__u32 reserved1[3];
		void *reserved2;
	    } buffer;
	} u;
	int result;
    } __attribute__ ((packed));

    /* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */
    #define DTV_IOCTL_MAX_MSGS 64