Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) .. c:namespace:: DTV.net
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) .. _NET_GET_IF:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) ****************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) ioctl NET_GET_IF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) ****************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) ====
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) NET_GET_IF - Read the configuration data of an interface created via - :ref:`NET_ADD_IF <net>`.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Synopsis
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) ========
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) .. c:macro:: NET_GET_IF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) ``int ioctl(int fd, NET_GET_IF, struct dvb_net_if *net_if)``
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Arguments
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) =========
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) ``fd``
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)     File descriptor returned by :c:func:`open()`.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) ``net_if``
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)     pointer to struct :c:type:`dvb_net_if`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) ===========
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) The NET_GET_IF ioctl uses the interface number given by the struct
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) :c:type:`dvb_net_if`::ifnum field and fills the content of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct :c:type:`dvb_net_if` with the packet ID and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) encapsulation type used on such interface. If the interface was not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) created yet with :ref:`NET_ADD_IF <net>`, it will return -1 and fill
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) the ``errno`` with ``EINVAL`` error code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Return Value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) ============
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) On success 0 is returned, and :c:type:`ca_slot_info` is filled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) On error -1 is returned, and the ``errno`` variable is set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) appropriately.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) The generic error codes are described at the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) :ref:`Generic Error Codes <gen-errors>` chapter.