mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-01 10:13:58 +08:00
e8be7e97e6
instead of declaring the uAPI structs using usual refs, e. g.: .. _foo-struct: Use the C domain way: .. c:type:: foo_struct This way, the kAPI documentation can use cross-references to point to the uAPI symbols. That solves about ~100 undefined warnings like: WARNING: c:type reference target not found: foo_struct Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
32 lines
560 B
ReStructuredText
32 lines
560 B
ReStructuredText
.. -*- 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
|