.. flat-table:: struct media_v2_topology
:header-rows: 0
:stub-columns: 0
+ :widths: 1 2 8
- .. row 1
- ``topology_version``
- -
- -
- Version of the media graph topology. When the graph is created,
this field starts with zero. Every time a graph element is added
or removed, this field is incremented.
- ``num_entities``
- -
- -
- Number of entities in the graph
- .. row 3
- ``ptr_entities``
- -
- -
- A pointer to a memory area where the entities array will be
stored, converted to a 64-bits integer. It can be zero. if zero,
the ioctl won't store the entities. It will just update
- ``num_interfaces``
- -
- -
- Number of interfaces in the graph
- .. row 5
- ``ptr_interfaces``
- -
- -
- A pointer to a memory area where the interfaces array will be
stored, converted to a 64-bits integer. It can be zero. if zero,
the ioctl won't store the interfaces. It will just update
- ``num_pads``
- -
- -
- Total number of pads in the graph
- .. row 7
- ``ptr_pads``
- -
- -
- A pointer to a memory area where the pads array will be stored,
converted to a 64-bits integer. It can be zero. if zero, the ioctl
won't store the pads. It will just update ``num_pads``
- ``num_links``
- -
- -
- Total number of data and interface links in the graph
- .. row 9
- ``ptr_links``
- -
- -
- A pointer to a memory area where the links array will be stored,
converted to a 64-bits integer. It can be zero. if zero, the ioctl
won't store the links. It will just update ``num_links``
.. flat-table:: struct media_v2_entity
:header-rows: 0
:stub-columns: 0
+ :widths: 1 2 8
- .. row 1
- ``id``
- -
- -
- Unique ID for the entity.
- .. row 2
- ``name``\ [64]
- -
- -
- Entity name as an UTF-8 NULL-terminated string.
- .. row 3
- ``function``
- -
- -
- Entity main function, see :ref:`media-entity-type` for details.
- .. row 4
.. flat-table:: struct media_v2_interface
:header-rows: 0
:stub-columns: 0
-
+ :widths: 1 2 8
- .. row 1
- ``id``
- -
- -
- Unique ID for the interface.
- .. row 2
- ``intf_type``
- -
- -
- Interface type, see :ref:`media-intf-type` for details.
- .. row 3
- ``flags``
- -
- -
- Interface flags. Currently unused.
- .. row 4
- ``reserved``\ [9]
- -
- -
- Reserved for future extensions. Drivers and applications must set
this array to zero.
- ``devnode``
- -
- -
- Used only for device node interfaces. See
:ref:`media-v2-intf-devnode` for details..
.. flat-table:: struct media_v2_interface
:header-rows: 0
:stub-columns: 0
+ :widths: 1 2 8
- .. row 1
- ``major``
- -
- -
- Device node major number.
- .. row 2
- ``minor``
- -
- -
- Device node minor number.
.. flat-table:: struct media_v2_pad
:header-rows: 0
:stub-columns: 0
+ :widths: 1 2 8
- .. row 1
- ``id``
- -
- -
- Unique ID for the pad.
- .. row 2
- ``entity_id``
- -
- -
- Unique ID for the entity where this pad belongs.
- .. row 3
- ``flags``
- -
- -
- Pad flags, see :ref:`media-pad-flag` for more details.
- .. row 4
- ``reserved``\ [9]
- -
- -
- Reserved for future extensions. Drivers and applications must set
this array to zero.
.. flat-table:: struct media_v2_pad
:header-rows: 0
:stub-columns: 0
+ :widths: 1 2 8
- .. row 1
- ``id``
- -
- -
- Unique ID for the pad.
- .. row 2
- ``source_id``
- -
- -
- On pad to pad links: unique ID for the source pad.
On interface to entity links: unique ID for the interface.
- ``sink_id``
- -
- -
- On pad to pad links: unique ID for the sink pad.
On interface to entity links: unique ID for the entity.
- ``flags``
- -
- -
- Link flags, see :ref:`media-link-flag` for more details.
- .. row 5
- ``reserved``\ [5]
- -
- -
- Reserved for future extensions. Drivers and applications must set
this array to zero.