fix: 把内核恢复成 GitHub 原版

This commit is contained in:
2026-12-01 13:56:26 +08:00
parent 426d25b286
commit c9f02412c3
4000 changed files with 84256 additions and 84256 deletions
@@ -1,17 +1,17 @@
.. SPDX-License-Identifier: GPL-2.0
eBPF Userspace API
==================
eBPF is a kernel mechanism to provide a sandboxed runtime environment in the
Linux kernel for runtime extension and instrumentation without changing kernel
source code or loading kernel modules. eBPF programs can be attached to various
kernel subsystems, including networking, tracing and Linux security modules
(LSM).
For internal kernel documentation on eBPF, see Documentation/bpf/index.rst.
.. toctree::
:maxdepth: 1
syscall
.. SPDX-License-Identifier: GPL-2.0
eBPF Userspace API
==================
eBPF is a kernel mechanism to provide a sandboxed runtime environment in the
Linux kernel for runtime extension and instrumentation without changing kernel
source code or loading kernel modules. eBPF programs can be attached to various
kernel subsystems, including networking, tracing and Linux security modules
(LSM).
For internal kernel documentation on eBPF, see Documentation/bpf/index.rst.
.. toctree::
:maxdepth: 1
syscall
@@ -1,15 +1,15 @@
=======================
ISA Plug & Play support
=======================
Interface /proc/isapnp
======================
The interface was removed in kernel 2.5.53. See pnp.rst for more details.
Interface /proc/bus/isapnp
==========================
This directory allows access to ISA PnP cards and logical devices.
The regular files contain the contents of ISA PnP registers for
a logical device.
=======================
ISA Plug & Play support
=======================
Interface /proc/isapnp
======================
The interface was removed in kernel 2.5.53. See pnp.rst for more details.
Interface /proc/bus/isapnp
==========================
This directory allows access to ISA PnP cards and logical devices.
The regular files contain the contents of ISA PnP registers for
a logical device.
@@ -1,23 +1,23 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _cec-user-func:
******************
Function Reference
******************
.. toctree::
:maxdepth: 1
cec-func-open
cec-func-close
cec-func-ioctl
cec-func-poll
cec-ioc-adap-g-caps
cec-ioc-adap-g-log-addrs
cec-ioc-adap-g-phys-addr
cec-ioc-adap-g-conn-info
cec-ioc-dqevent
cec-ioc-g-mode
cec-ioc-receive
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _cec-user-func:
******************
Function Reference
******************
.. toctree::
:maxdepth: 1
cec-func-open
cec-func-close
cec-func-ioctl
cec-func-poll
cec-ioc-adap-g-caps
cec-ioc-adap-g-log-addrs
cec-ioc-adap-g-phys-addr
cec-ioc-adap-g-conn-info
cec-ioc-dqevent
cec-ioc-g-mode
cec-ioc-receive
@@ -1,23 +1,23 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _dvb_demux:
#######################
Digital TV Demux Device
#######################
The Digital TV demux device controls the MPEG-TS filters for the
digital TV. If the driver and hardware supports, those filters are
implemented at the hardware. Otherwise, the Kernel provides a software
emulation.
It can be accessed through ``/dev/adapter?/demux?``. Data types and
ioctl definitions can be accessed by including ``linux/dvb/dmx.h`` in
your application.
.. toctree::
:maxdepth: 1
dmx_types
dmx_fcalls
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _dvb_demux:
#######################
Digital TV Demux Device
#######################
The Digital TV demux device controls the MPEG-TS filters for the
digital TV. If the driver and hardware supports, those filters are
implemented at the hardware. Otherwise, the Kernel provides a software
emulation.
It can be accessed through ``/dev/adapter?/demux?``. Data types and
ioctl definitions can be accessed by including ``linux/dvb/dmx.h`` in
your application.
.. toctree::
:maxdepth: 1
dmx_types
dmx_fcalls
@@ -1,30 +1,30 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _dmx_fcalls:
********************
Demux Function Calls
********************
.. toctree::
:maxdepth: 1
dmx-fopen
dmx-fclose
dmx-fread
dmx-fwrite
dmx-mmap
dmx-munmap
dmx-start
dmx-stop
dmx-set-filter
dmx-set-pes-filter
dmx-set-buffer-size
dmx-get-stc
dmx-get-pes-pids
dmx-add-pid
dmx-remove-pid
dmx-reqbufs
dmx-querybuf
dmx-expbuf
dmx-qbuf
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _dmx_fcalls:
********************
Demux Function Calls
********************
.. toctree::
:maxdepth: 1
dmx-fopen
dmx-fclose
dmx-fread
dmx-fwrite
dmx-mmap
dmx-munmap
dmx-start
dmx-stop
dmx-set-filter
dmx-set-pes-filter
dmx-set-buffer-size
dmx-get-stc
dmx-get-pes-pids
dmx-add-pid
dmx-remove-pid
dmx-reqbufs
dmx-querybuf
dmx-expbuf
dmx-qbuf
@@ -1,16 +1,16 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _dvb_examples:
********
Examples
********
In the past, we used to have a set of examples here. However, those
examples got out of date and doesn't even compile nowadays.
Also, nowadays, the best is to use the libdvbv5 DVB API nowadays,
with is fully documented.
Please refer to the `libdvbv5 <https://linuxtv.org/docs/libdvbv5/index.html>`__
for updated/recommended examples.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _dvb_examples:
********
Examples
********
In the past, we used to have a set of examples here. However, those
examples got out of date and doesn't even compile nowadays.
Also, nowadays, the best is to use the libdvbv5 DVB API nowadays,
with is fully documented.
Please refer to the `libdvbv5 <https://linuxtv.org/docs/libdvbv5/index.html>`__
for updated/recommended examples.
@@ -1,24 +1,24 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _frontend_fcalls:
#######################
Frontend Function Calls
#######################
.. toctree::
:maxdepth: 1
frontend_f_open
frontend_f_close
fe-get-info
fe-read-status
fe-get-property
fe-diseqc-reset-overload
fe-diseqc-send-master-cmd
fe-diseqc-recv-slave-reply
fe-diseqc-send-burst
fe-set-tone
fe-set-voltage
fe-enable-high-lnb-voltage
fe-set-frontend-tune-mode
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _frontend_fcalls:
#######################
Frontend Function Calls
#######################
.. toctree::
:maxdepth: 1
frontend_f_open
frontend_f_close
fe-get-info
fe-read-status
fe-get-property
fe-diseqc-reset-overload
fe-diseqc-send-master-cmd
fe-diseqc-recv-slave-reply
fe-diseqc-send-burst
fe-set-tone
fe-set-voltage
fe-enable-high-lnb-voltage
fe-set-frontend-tune-mode
@@ -1,18 +1,18 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _frontend_legacy_dvbv3_api:
***********************************************
Digital TV Frontend legacy API (a. k. a. DVBv3)
***********************************************
The usage of this API is deprecated, as it doesn't support all digital
TV standards, doesn't provide good statistics measurements and provides
incomplete information. This is kept only to support legacy
applications.
.. toctree::
:maxdepth: 1
frontend_legacy_api
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _frontend_legacy_dvbv3_api:
***********************************************
Digital TV Frontend legacy API (a. k. a. DVBv3)
***********************************************
The usage of this API is deprecated, as it doesn't support all digital
TV standards, doesn't provide good statistics measurements and provides
incomplete information. This is kept only to support legacy
applications.
.. toctree::
:maxdepth: 1
frontend_legacy_api
@@ -1,16 +1,16 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
****************************
Digital TV uAPI header files
****************************
Digital TV uAPI headers
***********************
.. kernel-include:: $BUILDDIR/frontend.h.rst
.. kernel-include:: $BUILDDIR/dmx.h.rst
.. kernel-include:: $BUILDDIR/ca.h.rst
.. kernel-include:: $BUILDDIR/net.h.rst
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
****************************
Digital TV uAPI header files
****************************
Digital TV uAPI headers
***********************
.. kernel-include:: $BUILDDIR/frontend.h.rst
.. kernel-include:: $BUILDDIR/dmx.h.rst
.. kernel-include:: $BUILDDIR/ca.h.rst
.. kernel-include:: $BUILDDIR/net.h.rst
@@ -1,13 +1,13 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _query-dvb-frontend-info:
*****************************
Querying frontend information
*****************************
Usually, the first thing to do when the frontend is opened is to check
the frontend capabilities. This is done using
:ref:`FE_GET_INFO`. This ioctl will enumerate the
Digital TV API version and other characteristics about the frontend, and can
be opened either in read only or read/write mode.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _query-dvb-frontend-info:
*****************************
Querying frontend information
*****************************
Usually, the first thing to do when the frontend is opened is to check
the frontend capabilities. This is done using
:ref:`FE_GET_INFO`. This ioctl will enumerate the
Digital TV API version and other characteristics about the frontend, and can
be opened either in read only or read/write mode.
@@ -1,26 +1,26 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _media-user-func:
******************
Function Reference
******************
.. toctree::
:maxdepth: 1
media-func-open
media-func-close
media-func-ioctl
media-ioc-device-info
media-ioc-g-topology
media-ioc-enum-entities
media-ioc-enum-links
media-ioc-setup-link
media-ioc-request-alloc
request-func-close
request-func-ioctl
request-func-poll
media-request-ioc-queue
media-request-ioc-reinit
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _media-user-func:
******************
Function Reference
******************
.. toctree::
:maxdepth: 1
media-func-open
media-func-close
media-func-ioctl
media-ioc-device-info
media-ioc-g-topology
media-ioc-enum-entities
media-ioc-enum-links
media-ioc-setup-link
media-ioc-request-alloc
request-func-close
request-func-ioctl
request-func-poll
media-request-ioc-queue
media-request-ioc-reinit
@@ -1,13 +1,13 @@
# SPDX-License-Identifier: GPL-2.0
# Ignore header name
ignore define _DVBNET_H_
# Ignore old ioctls/structs
ignore ioctl __NET_ADD_IF_OLD
ignore ioctl __NET_GET_IF_OLD
ignore struct __dvb_net_if_old
# Macros used at struct dvb_net_if
replace define DVB_NET_FEEDTYPE_MPE :c:type:`dvb_net_if`
replace define DVB_NET_FEEDTYPE_ULE :c:type:`dvb_net_if`
# SPDX-License-Identifier: GPL-2.0
# Ignore header name
ignore define _DVBNET_H_
# Ignore old ioctls/structs
ignore ioctl __NET_ADD_IF_OLD
ignore ioctl __NET_GET_IF_OLD
ignore struct __dvb_net_if_old
# Macros used at struct dvb_net_if
replace define DVB_NET_FEEDTYPE_MPE :c:type:`dvb_net_if`
replace define DVB_NET_FEEDTYPE_ULE :c:type:`dvb_net_if`
@@ -1,26 +1,26 @@
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
.. _lirc_func:
LIRC Function Reference
=======================
.. toctree::
:maxdepth: 1
lirc-read
lirc-write
lirc-get-features
lirc-get-send-mode
lirc-get-rec-mode
lirc-get-rec-resolution
lirc-set-send-duty-cycle
lirc-get-timeout
lirc-set-rec-timeout
lirc-set-rec-carrier
lirc-set-rec-carrier-range
lirc-set-send-carrier
lirc-set-transmitter-mask
lirc-set-measure-carrier-mode
lirc-set-wideband-receiver
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
.. _lirc_func:
LIRC Function Reference
=======================
.. toctree::
:maxdepth: 1
lirc-read
lirc-write
lirc-get-features
lirc-get-send-mode
lirc-get-rec-mode
lirc-get-rec-resolution
lirc-set-send-duty-cycle
lirc-get-timeout
lirc-set-rec-timeout
lirc-set-rec-carrier
lirc-set-rec-carrier-range
lirc-set-send-carrier
lirc-set-transmitter-mask
lirc-set-measure-carrier-mode
lirc-set-wideband-receiver
@@ -1,18 +1,18 @@
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
.. _Remote_controllers_table_change:
*******************************************
Changing default Remote Controller mappings
*******************************************
The event interface provides two ioctls to be used against the
/dev/input/event device, to allow changing the default keymapping.
This program demonstrates how to replace the keymap tables.
.. toctree::
:maxdepth: 1
keytable.c
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
.. _Remote_controllers_table_change:
*******************************************
Changing default Remote Controller mappings
*******************************************
The event interface provides two ioctls to be used against the
/dev/input/event device, to allow changing the default keymapping.
This program demonstrates how to replace the keymap tables.
.. toctree::
:maxdepth: 1
keytable.c
@@ -1,19 +1,19 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _hsv-formats:
***********
HSV Formats
***********
These formats store the color information of the image
in a geometrical representation. The colors are mapped into a
cylinder, where the angle is the HUE, the height is the VALUE
and the distance to the center is the SATURATION. This is a very
useful format for image segmentation algorithms.
.. toctree::
:maxdepth: 1
pixfmt-packed-hsv
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _hsv-formats:
***********
HSV Formats
***********
These formats store the color information of the image
in a geometrical representation. The colors are mapped into a
cylinder, where the angle is the HUE, the height is the VALUE
and the distance to the center is the SATURATION. This is a very
useful format for image segmentation algorithms.
.. toctree::
:maxdepth: 1
pixfmt-packed-hsv
@@ -1,23 +1,23 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _meta-formats:
****************
Metadata Formats
****************
These formats are used for the :ref:`metadata` interface only.
.. toctree::
:maxdepth: 1
metafmt-d4xx
metafmt-generic
metafmt-intel-ipu3
metafmt-pisp-be
metafmt-rkisp1
metafmt-uvc
metafmt-vivid
metafmt-vsp1-hgo
metafmt-vsp1-hgt
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _meta-formats:
****************
Metadata Formats
****************
These formats are used for the :ref:`metadata` interface only.
.. toctree::
:maxdepth: 1
metafmt-d4xx
metafmt-generic
metafmt-intel-ipu3
metafmt-pisp-be
metafmt-rkisp1
metafmt-uvc
metafmt-vivid
metafmt-vsp1-hgo
metafmt-vsp1-hgt
@@ -1,32 +1,32 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _V4L2-SDR-FMT-RU12LE:
****************************
V4L2_SDR_FMT_RU12LE ('RU12')
****************************
Real unsigned 12-bit little endian sample
Description
===========
This format contains sequence of real number samples. Each sample is
represented as a 12 bit unsigned little endian number. Sample is stored
in 16 bit space with unused high bits padded with 0.
**Byte Order.**
Each cell is one byte.
.. flat-table::
:header-rows: 0
:stub-columns: 0
* - start + 0:
- I'\ :sub:`0[7:0]`
- I'\ :sub:`0[11:8]`
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _V4L2-SDR-FMT-RU12LE:
****************************
V4L2_SDR_FMT_RU12LE ('RU12')
****************************
Real unsigned 12-bit little endian sample
Description
===========
This format contains sequence of real number samples. Each sample is
represented as a 12 bit unsigned little endian number. Sample is stored
in 16 bit space with unused high bits padded with 0.
**Byte Order.**
Each cell is one byte.
.. flat-table::
:header-rows: 0
:stub-columns: 0
* - start + 0:
- I'\ :sub:`0[7:0]`
- I'\ :sub:`0[11:8]`
@@ -1,22 +1,22 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _sdr-formats:
***********
SDR Formats
***********
These formats are used for :ref:`SDR <sdr>` interface only.
.. toctree::
:maxdepth: 1
pixfmt-sdr-cu08
pixfmt-sdr-cu16le
pixfmt-sdr-cs08
pixfmt-sdr-cs14le
pixfmt-sdr-ru12le
pixfmt-sdr-pcu16be
pixfmt-sdr-pcu18be
pixfmt-sdr-pcu20be
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _sdr-formats:
***********
SDR Formats
***********
These formats are used for :ref:`SDR <sdr>` interface only.
.. toctree::
:maxdepth: 1
pixfmt-sdr-cu08
pixfmt-sdr-cu16le
pixfmt-sdr-cs08
pixfmt-sdr-cs14le
pixfmt-sdr-ru12le
pixfmt-sdr-pcu16be
pixfmt-sdr-pcu18be
pixfmt-sdr-pcu20be
@@ -1,20 +1,20 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
*****************
Selection targets
*****************
.. _sel-targets-capture:
.. kernel-figure:: selection.svg
:alt: selection.svg
:align: center
Cropping and composing targets
Targets used by a cropping, composing and scaling process
See :ref:`v4l2-selection-targets` for more information.
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
*****************
Selection targets
*****************
.. _sel-targets-capture:
.. kernel-figure:: selection.svg
:alt: selection.svg
:align: center
Cropping and composing targets
Targets used by a cropping, composing and scaling process
See :ref:`v4l2-selection-targets` for more information.
@@ -1,16 +1,16 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _selection-api:
Cropping, composing and scaling -- the SELECTION API
====================================================
.. toctree::
:maxdepth: 1
selection-api-intro.rst
selection-api-targets.rst
selection-api-configuration.rst
selection-api-vs-crop-api.rst
selection-api-examples.rst
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _selection-api:
Cropping, composing and scaling -- the SELECTION API
====================================================
.. toctree::
:maxdepth: 1
selection-api-intro.rst
selection-api-targets.rst
selection-api-configuration.rst
selection-api-vs-crop-api.rst
selection-api-examples.rst
@@ -1,17 +1,17 @@
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _v4l2grab-example:
**********************************
Video Grabber example using libv4l
**********************************
This program demonstrates how to grab V4L2 images in ppm format by using
libv4l handlers. The advantage is that this grabber can potentially work
with any V4L2 driver.
.. toctree::
:maxdepth: 1
v4l2grab.c
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
.. _v4l2grab-example:
**********************************
Video Grabber example using libv4l
**********************************
This program demonstrates how to grab V4L2 images in ppm format by using
libv4l handlers. The advantage is that this grabber can potentially work
with any V4L2 driver.
.. toctree::
:maxdepth: 1
v4l2grab.c
@@ -1,21 +1,21 @@
.. SPDX-License-Identifier: BSD-3-Clause
================
Netlink Handbook
================
Netlink documentation for users.
.. toctree::
:maxdepth: 2
intro
intro-specs
specs
c-code-gen
genetlink-legacy
netlink-raw
See also:
- :ref:`Documentation/core-api/netlink.rst <kernel_netlink>`
- :ref:`Documentation/networking/netlink_spec/index.rst <specs>`
.. SPDX-License-Identifier: BSD-3-Clause
================
Netlink Handbook
================
Netlink documentation for users.
.. toctree::
:maxdepth: 2
intro
intro-specs
specs
c-code-gen
genetlink-legacy
netlink-raw
See also:
- :ref:`Documentation/core-api/netlink.rst <kernel_netlink>`
- :ref:`Documentation/networking/netlink_spec/index.rst <specs>`