summaryrefslogtreecommitdiff
path: root/Documentation/linux_tv/media/dvb/net-get-if.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/linux_tv/media/dvb/net-get-if.rst')
-rw-r--r--Documentation/linux_tv/media/dvb/net-get-if.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/linux_tv/media/dvb/net-get-if.rst b/Documentation/linux_tv/media/dvb/net-get-if.rst
index 4581763b920e..16dfe78eb77f 100644
--- a/Documentation/linux_tv/media/dvb/net-get-if.rst
+++ b/Documentation/linux_tv/media/dvb/net-get-if.rst
@@ -1,24 +1,23 @@
.. -*- coding: utf-8; mode: rst -*-
-
.. _NET_GET_IF:
****************
ioctl NET_GET_IF
****************
-*man NET_GET_IF(2)*
-
-Read the configuration data of an interface created via
-:ref:`NET_ADD_IF <net>`.
+NAME
+====
+NET_GET_IF - Read the configuration data of an interface created via - :ref:`NET_ADD_IF <net>`.
-Synopsis
+SYNOPSIS
========
.. cpp:function:: int ioctl( int fd, int request, struct dvb_net_if *net_if )
-Arguments
+
+ARGUMENTS
=========
``fd``
@@ -31,7 +30,7 @@ Arguments
pointer to struct :ref:`dvb_net_if <dvb-net-if>`
-Description
+DESCRIPTION
===========
The NET_GET_IF ioctl uses the interface number given by the struct
@@ -41,7 +40,9 @@ encapsulation type used on such interface. If the interface was not
created yet with :ref:`NET_ADD_IF <net>`, it will return -1 and fill
the ``errno`` with ``EINVAL`` error code.
+
RETURN VALUE
+============
On success 0 is returned, on error -1 and the ``errno`` variable is set
appropriately. The generic error codes are described at the