# System and device interfaces

> System-call, protocol and device ABI reference.

All of System and device interfaces as one markdown file: [/kernel/userspace/userspace-api/print.md](/kernel/userspace/userspace-api/print.md)

## Interface overview

- [Kernel interfaces for userspace](/kernel/userspace/userspace-api/overview/index.md): Find system-call, device and protocol interface reference.

## Execution and synchronisation

- [Linux-specific ELF idiosyncrasies](/kernel/userspace/userspace-api/execution/elf.md): "First" program header is the one with the smallest offset in the file: e_phoff.
- [Executability check](/kernel/userspace/userspace-api/execution/check-exec.md): The AT_EXECVE_CHECK execveat(2) flag, and the SECBIT_EXEC_RESTRICT_FILE and SECBIT_EXEC_DENY_INTERACTIVE securebits are intended for script interpreters and dynamic linkers to enforce a consistent execution security policy handled by the…
- [futex2](/kernel/userspace/userspace-api/execution/futex2.md): futex, or fast user mutex, is a set of syscalls to allow userspace to create performant synchronization mechanisms, such as mutexes, semaphores and conditional variables in userspace. C standard libraries, like glibc, uses it as a means to…
- [Live Update uAPI](/kernel/userspace/userspace-api/execution/liveupdate.md): Live Update Orchestrator </core-api/liveupdate>
- [NT synchronization primitive driver](/kernel/userspace/userspace-api/execution/ntsync.md): This page documents the user-space API for the ntsync driver.
- [Restartable Sequences](/kernel/userspace/userspace-api/execution/rseq.md): Restartable Sequences allow to register a per thread userspace memory area to be used as an ABI between kernel and userspace for three purposes:
- [unshare system call](/kernel/userspace/userspace-api/execution/unshare.md): Unsharing process resources and namespaces in the Peios kernel.

## Memory and device access

- [Exchanging pixel buffers](/kernel/userspace/userspace-api/memory/dma-buf-alloc-exchange.md): As originally designed, the Linux graphics subsystem had extremely limited support for sharing pixel-buffer allocations between processes, devices, and subsystems. Modern systems require extensive integration between all three classes;…
- [Allocating dma-buf using heaps](/kernel/userspace/userspace-api/memory/dma-buf-heaps.md): Dma-buf Heaps are a way for userspace to allocate dma-buf objects. They are typically used to allocate buffers from a specific allocation pool, or to share buffers across frameworks.
- [IOMMUFD](/kernel/userspace/userspace-api/memory/iommufd.md): IOMMUFD is the user API to control the IOMMU subsystem as it relates to managing IO page tables from userspace using file descriptors. It intends to be general and consumable by any driver that wants to expose DMA to userspace. These…
- [Introduction of mseal](/kernel/userspace/userspace-api/memory/mseal.md): Modern CPUs support memory permissions such as RW and NX bits. The memory permission feature improves security stance on memory corruption bugs, i.e. the attacker can’t just write to arbitrary memory and point the code to it, the memory…
- [VDUSE - "vDPA Device in Userspace"](/kernel/userspace/userspace-api/memory/vduse.md): vDPA (virtio data path acceleration) device is a device that uses a datapath which complies with the virtio specifications with vendor specific control path. vDPA devices can be both physically located on the hardware or emulated by…

## Security controls

- [Landlock: unprivileged access control](/kernel/userspace/userspace-api/security/landlock.md): The goal of Landlock is to enable restriction of ambient rights (e.g. global filesystem or network access) for a set of processes. Because Landlock is a stackable LSM, it makes it possible to create safe security sandboxes as new security…
- [Linux Security Modules](/kernel/userspace/userspace-api/security/lsm.md): Linux security modules (LSM) provide a mechanism to implement additional access controls to the Linux security policies.
- [Introduction of non-executable mfd](/kernel/userspace/userspace-api/security/mfd-noexec.md): Since Linux introduced the memfd feature, memfds have always had their execute bit set, and the memfd_create() syscall doesn't allow setting it differently.
- [No New Privileges Flag](/kernel/userspace/userspace-api/security/no-new-privs.md): The irreversible exec restriction and its interaction with Peios integrity and tokens.
- [Seccomp BPF (SECure COMPuting with filters)](/kernel/userspace/userspace-api/security/seccomp-filter.md): A large number of system calls are exposed to every userland process with many of them going unused for the entire lifetime of the process. As system calls change and mature, bugs are found and eradicated. A certain subset of userland…
- [Speculation Control](/kernel/userspace/userspace-api/security/spec-ctrl.md): Quite some CPUs have speculation-related misfeatures which are in fact vulnerabilities causing data leaks in various forms even across privilege domains.
- [TEE (Trusted Execution Environment) Userspace API](/kernel/userspace/userspace-api/security/tee.md): include/uapi/linux/tee.h defines the generic interface to a TEE.

## Platform and performance interfaces

- [Dell Systems Management Base Driver](/kernel/userspace/userspace-api/platform/dcdbas.md): The Dell Systems Management Base Driver provides a sysfs interface for systems management software such as Dell OpenManage to perform system management interrupts and host control actions (system power cycle or power off after OS shutdown)…
- [ISA Plug & Play support](/kernel/userspace/userspace-api/platform/isapnp.md): The interface was removed in kernel 2.5.53. See pnp.rst for more details.
- [Perf ring buffer](/kernel/userspace/userspace-api/platform/perf-ring-buffer.md): The ring buffer is a fundamental mechanism for data transfer. perf uses ring buffers to transfer event data from kernel to user space, another kind of ring buffer which is so called auxiliary (AUX) ring buffer also plays an important role…
- [Platform Profile Selection (e.g. /sys/firmware/acpi/platform_profile)](/kernel/userspace/userspace-api/platform/sysfs-platform-profile.md): On modern systems the platform performance, temperature, fan and other hardware related characteristics are often dynamically configurable. The platform configuration is often automatically adjusted to the current conditions by some…

## Compute accelerators

- [OpenCAPI (Open Coherent Accelerator Processor Interface)](/kernel/userspace/userspace-api/accelerators/ocxl.md): OpenCAPI is an interface between processors and accelerators. It aims at being low-latency and high-bandwidth.

## eBPF

- [eBPF Userspace API](/kernel/userspace/userspace-api/ebpf/index.md): 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…
- [eBPF Syscall](/kernel/userspace/userspace-api/ebpf/syscall.md): The primary info for the bpf syscall is available in the man-pages for bpf(2).

## Device firmware control

- [Firmware Control (FWCTL) Userspace API](/kernel/userspace/userspace-api/fwctl/index.md): A framework that define a common set of limited rules that allows user space to securely construct and execute RPCs inside device firmware.
- [fwctl cxl driver](/kernel/userspace/userspace-api/fwctl/fwctl-cxl.md): The CXL spec defines a set of commands that can be issued to the mailbox of a CXL device or switch. It also left room for vendor specific commands to be issued to the mailbox as well. fwctl provides a path to issue a set of allowed mailbox…
- [fwctl subsystem](/kernel/userspace/userspace-api/fwctl/fwctl.md): Modern devices contain extensive amounts of FW, and in many cases, are largely software-defined pieces of hardware. The evolution of this approach is largely a reaction to Moore's Law where a chip tape out is now highly expensive, and the…
- [fwctl pds driver](/kernel/userspace/userspace-api/fwctl/pds-fwctl.md): The PDS Core device makes a fwctl service available through an auxiliary_device named pds_core.fwctl.N. The pds_fwctl driver binds to this device and registers itself with the fwctl subsystem. The resulting userspace interface is used by…

## GPIO

- [GPIO](/kernel/userspace/userspace-api/gpio/index.md): Reference for GPIO.
- [GPIO Character Device Userspace API](/kernel/userspace/userspace-api/gpio/chardev.md): This is latest version (v2) of the character device API, as defined in include/uapi/linux/gpio.h.
- [GPIO Character Device Userspace API (v1)](/kernel/userspace/userspace-api/gpio/chardev-v1.md): First added in 4.8.
- [GPIO Error Codes](/kernel/userspace/userspace-api/gpio/error-codes.md): Reference for GPIO Error Codes.
- [GPIO_GET_CHIPINFO_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-get-chipinfo-ioctl.md): Duplicate implicit target name: "gpio_get_chipinfo_ioctl".
- [GPIO_GET_LINEEVENT_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-get-lineevent-ioctl.md): Duplicate implicit target name: "gpio_get_lineevent_ioctl".
- [GPIO_GET_LINEHANDLE_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-get-linehandle-ioctl.md): Duplicate implicit target name: "gpio_get_linehandle_ioctl".
- [GPIO_GET_LINEINFO_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-get-lineinfo-ioctl.md): Duplicate implicit target name: "gpio_get_lineinfo_ioctl".
- [GPIO_GET_LINEINFO_UNWATCH_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-get-lineinfo-unwatch-ioctl.md): Duplicate implicit target name: "gpio_get_lineinfo_unwatch_ioctl".
- [GPIO_GET_LINEINFO_WATCH_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-get-lineinfo-watch-ioctl.md): Duplicate implicit target name: "gpio_get_lineinfo_watch_ioctl".
- [GPIOHANDLE_GET_LINE_VALUES_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-handle-get-line-values-ioctl.md): Duplicate implicit target name: "gpiohandle_get_line_values_ioctl".
- [GPIOHANDLE_SET_CONFIG_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-handle-set-config-ioctl.md): Duplicate implicit target name: "gpiohandle_set_config_ioctl".
- [GPIO_HANDLE_SET_LINE_VALUES_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-handle-set-line-values-ioctl.md): Duplicate implicit target name: "gpio_handle_set_line_values_ioctl".
- [GPIO_LINEEVENT_DATA_READ](/kernel/userspace/userspace-api/gpio/gpio-lineevent-data-read.md): Duplicate implicit target name: "gpio_lineevent_data_read".
- [GPIO_LINEINFO_CHANGED_READ](/kernel/userspace/userspace-api/gpio/gpio-lineinfo-changed-read.md): Duplicate implicit target name: "gpio_lineinfo_changed_read".
- [GPIO_V2_GET_LINE_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-v2-get-line-ioctl.md): Duplicate implicit target name: "gpio_v2_get_line_ioctl".
- [GPIO_V2_GET_LINEINFO_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-v2-get-lineinfo-ioctl.md): Duplicate implicit target name: "gpio_v2_get_lineinfo_ioctl".
- [GPIO_V2_GET_LINEINFO_WATCH_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-v2-get-lineinfo-watch-ioctl.md): Duplicate implicit target name: "gpio_v2_get_lineinfo_watch_ioctl".
- [GPIO_V2_LINE_EVENT_READ](/kernel/userspace/userspace-api/gpio/gpio-v2-line-event-read.md): Duplicate implicit target name: "gpio_v2_line_event_read".
- [GPIO_V2_LINE_GET_VALUES_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-v2-line-get-values-ioctl.md): Duplicate implicit target name: "gpio_v2_line_get_values_ioctl".
- [GPIO_V2_LINE_SET_CONFIG_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-v2-line-set-config-ioctl.md): Duplicate implicit target name: "gpio_v2_line_set_config_ioctl".
- [GPIO_V2_LINE_SET_VALUES_IOCTL](/kernel/userspace/userspace-api/gpio/gpio-v2-line-set-values-ioctl.md): Duplicate implicit target name: "gpio_v2_line_set_values_ioctl".
- [GPIO_V2_LINEINFO_CHANGED_READ](/kernel/userspace/userspace-api/gpio/gpio-v2-lineinfo-changed-read.md): Duplicate implicit target name: "gpio_v2_lineinfo_changed_read".
- [Obsolete GPIO Userspace APIs](/kernel/userspace/userspace-api/gpio/obsolete.md): Reference for Obsolete GPIO Userspace APIs.
- [GPIO Sysfs Interface for Userspace](/kernel/userspace/userspace-api/gpio/sysfs.md): Platforms which use the "gpiolib" implementors framework may choose to configure a sysfs user interface to GPIOs. This is different from the debugfs interface, since it provides control over GPIO direction and value instead of just showing…

## ioctl conventions

- [IOCTLs](/kernel/userspace/userspace-api/ioctl/index.md): Reference for IOCTLs.
- [Summary of CDROM ioctl calls](/kernel/userspace/userspace-api/ioctl/cdrom.md): Edward A. Falk <efalk@google.com>
- [Summary of HDIO_ ioctl calls](/kernel/userspace/userspace-api/ioctl/hdio.md): Edward A. Falk <efalk@google.com>
- [Decoding an IOCTL Magic Number](/kernel/userspace/userspace-api/ioctl/ioctl-decoding.md): To decode a hex IOCTL code:
- [Ioctl Numbers](/kernel/userspace/userspace-api/ioctl/ioctl-number.md): 19 October 1999

## Netlink

- [Netlink Handbook](/kernel/userspace/userspace-api/netlink/index.md): Netlink documentation for users.
- [Netlink spec C code generation](/kernel/userspace/userspace-api/netlink/c-code-gen.md): This document describes how Netlink specifications are used to render C code (uAPI, policies etc.). It also defines the additional properties allowed in older families by the genetlink-c protocol level, to control the naming.
- [Netlink specification support for legacy Generic Netlink families](/kernel/userspace/userspace-api/netlink/genetlink-legacy.md): This document describes the many additional quirks and properties required to describe older Generic Netlink families which form the genetlink-legacy protocol level.
- [Using Netlink protocol specifications](/kernel/userspace/userspace-api/netlink/intro-specs.md): This document is a quick starting guide for using Netlink protocol specifications. For more detailed description of the specs see specs.
- [Introduction to Netlink](/kernel/userspace/userspace-api/netlink/intro.md): Netlink is often described as an ioctl() replacement. It aims to replace fixed-format C structures as supplied to ioctl() with a format which allows an easy way to add or extended the arguments.
- [Netlink specification support for raw Netlink families](/kernel/userspace/userspace-api/netlink/netlink-raw.md): Additional specification properties for raw Netlink families, including sub-messages and nested structures.
- [Netlink protocol specifications (in YAML)](/kernel/userspace/userspace-api/netlink/specs.md): Netlink protocol specifications are complete, machine readable descriptions of Netlink protocols written in YAML. The goal of the specifications is to allow separating Netlink parsing from user space logic and minimize the amount of hand…

## Media devices

- [Linux Media Infrastructure userspace API](/kernel/userspace/userspace-api/media/index.md): This section contains the driver development information and Kernel APIs used by media devices.
- [GNU Free Documentation License](/kernel/userspace/userspace-api/media/fdl-appendix.md): The purpose of this License is to make a manual, textbook, or other written document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or…
- [Generic Error Codes](/kernel/userspace/userspace-api/media/gen-errors.md): Reference for Generic Error Codes.
- [Glossary](/kernel/userspace/userspace-api/media/glossary.md): A Device Driver that implements the main logic to talk with media hardware.
- [Introduction](/kernel/userspace/userspace-api/media/intro.md): This document covers the Linux Kernel to Userspace API's used by video and radio streaming devices, including video cameras, analog and digital TV receiver cards, AM/FM receiver cards, Software Defined Radio (SDR), streaming capture and…

## HDMI CEC

- [Part V - Consumer Electronics Control API](/kernel/userspace/userspace-api/media-cec/cec-api.md): This part describes the CEC: Consumer Electronics Control
- [cec close()](/kernel/userspace/userspace-api/media-cec/cec-func-close.md): cec-close - Close a cec device
- [cec ioctl()](/kernel/userspace/userspace-api/media-cec/cec-func-ioctl.md): cec-ioctl - Control a cec device
- [cec open()](/kernel/userspace/userspace-api/media-cec/cec-func-open.md): cec-open - Open a cec device
- [cec poll()](/kernel/userspace/userspace-api/media-cec/cec-func-poll.md): cec-poll - Wait for some event on a file descriptor
- [Function Reference](/kernel/userspace/userspace-api/media-cec/cec-funcs.md): Reference for Function Reference.
- [CEC uAPI Symbols](/kernel/userspace/userspace-api/media-cec/cec-header.md): Reference for CEC uAPI Symbols.
- [Introduction](/kernel/userspace/userspace-api/media-cec/cec-intro.md): HDMI connectors provide a single pin for use by the Consumer Electronics Control protocol. This protocol allows different devices connected by an HDMI cable to communicate. The protocol for CEC version 1.4 is defined in supplements 1 (CEC)…
- [ioctl CEC_ADAP_G_CAPS](/kernel/userspace/userspace-api/media-cec/cec-ioc-adap-g-caps.md): CEC_ADAP_G_CAPS - Query device capabilities
- [ioctl CEC_ADAP_G_CONNECTOR_INFO](/kernel/userspace/userspace-api/media-cec/cec-ioc-adap-g-conn-info.md): CEC_ADAP_G_CONNECTOR_INFO - Query HDMI connector information
- [ioctls CEC_ADAP_G_LOG_ADDRS and CEC_ADAP_S_LOG_ADDRS](/kernel/userspace/userspace-api/media-cec/cec-ioc-adap-g-log-addrs.md): CEC_ADAP_G_LOG_ADDRS, CEC_ADAP_S_LOG_ADDRS - Get or set the logical addresses
- [ioctls CEC_ADAP_G_PHYS_ADDR and CEC_ADAP_S_PHYS_ADDR](/kernel/userspace/userspace-api/media-cec/cec-ioc-adap-g-phys-addr.md): CEC_ADAP_G_PHYS_ADDR, CEC_ADAP_S_PHYS_ADDR - Get or set the physical address
- [ioctl CEC_DQEVENT](/kernel/userspace/userspace-api/media-cec/cec-ioc-dqevent.md): CEC_DQEVENT - Dequeue a CEC event
- [ioctls CEC_G_MODE and CEC_S_MODE](/kernel/userspace/userspace-api/media-cec/cec-ioc-g-mode.md): CEC_G_MODE, CEC_S_MODE - Get or set exclusive use of the CEC adapter
- [ioctls CEC_RECEIVE and CEC_TRANSMIT](/kernel/userspace/userspace-api/media-cec/cec-ioc-receive.md): CEC_RECEIVE, CEC_TRANSMIT - Receive or transmit a CEC message
- [CEC Pin Framework Error Injection](/kernel/userspace/userspace-api/media-cec/cec-pin-error-inj.md): The CEC Pin Framework is a core CEC framework for CEC hardware that only has low-level support for the CEC bus. Most hardware today will have high-level CEC support where the hardware deals with driving the CEC bus, but some older devices…

## Media driver interfaces

- [Video4Linux (V4L)  driver-specific documentation](/kernel/userspace/userspace-api/media-drivers/index.md): Copyright © 1999-2016 : LinuxTV Developers
- [ASPEED video driver](/kernel/userspace/userspace-api/media-drivers/aspeed-video.md): ASPEED Video Engine found on AST2400/2500/2600 SoC supports high performance video compressions with a wide range of video quality and compression ratio options. The adopted compressing algorithm is a modified JPEG algorithm.
- [Using camera sensor drivers](/kernel/userspace/userspace-api/media-drivers/camera-sensor.md): This section describes common practices for how the V4L2 sub-device interface is used to control the camera sensor drivers.
- [MIPI CCS camera sensor driver](/kernel/userspace/userspace-api/media-drivers/ccs.md): The MIPI CCS camera sensor driver is a generic driver for MIPI CCS compliant camera sensors. It exposes three sub-devices representing the pixel array, the binner and the scaler.
- [The cx2341x driver](/kernel/userspace/userspace-api/media-drivers/cx2341x-uapi.md): The cx23416 can produce (and the cx23415 can also read) raw YUV output. The format of a YUV frame is 16x16 linear tiled NV12 (V4L2_PIX_FMT_NV12_16L16).
- [DW100 dewarp driver](/kernel/userspace/userspace-api/media-drivers/dw100.md): The Vivante DW100 Dewarp Processor IP core found on i.MX8MP SoC applies a programmable geometrical transformation on the input image to correct distortion introduced by lenses.
- [i.MX Video Capture Driver](/kernel/userspace/userspace-api/media-drivers/imx-uapi.md): This subdev can generate the following event when enabling the second IDMAC source pad:
- [Arm Mali-C55 ISP driver](/kernel/userspace/userspace-api/media-drivers/mali-c55.md): The Arm Mali-C55 ISP driver implements a single driver-specific control:
- [Maxim Integrated MAX2175 RF to bits tuner driver](/kernel/userspace/userspace-api/media-drivers/max2175.md): The MAX2175 driver implements the following driver-specific controls:
- [NPCM video driver](/kernel/userspace/userspace-api/media-drivers/npcm-video.md): This driver is used to control the Video Capture/Differentiation (VCD) engine and Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs. The VCD can capture a frame from digital video input and compare two frames in memory, and…
- [OMAP 3 Image Signal Processor (ISP) driver](/kernel/userspace/userspace-api/media-drivers/omap3isp-uapi.md): Copyright © 2010 Nokia Corporation
- [THine THP7312 ISP driver](/kernel/userspace/userspace-api/media-drivers/thp7312.md): The THP7312 driver implements the following driver-specific controls:
- [The Linux USB Video Class (UVC) driver](/kernel/userspace/userspace-api/media-drivers/uvcvideo.md): This file documents some driver-specific aspects of the UVC driver, such as driver-specific ioctls and implementation notes.
- [ST VGXY61 camera sensor driver](/kernel/userspace/userspace-api/media-drivers/vgxy61.md): The ST VGXY61 driver implements the following controls:

## Digital television (DVB)

- [Digital TV CA close()](/kernel/userspace/userspace-api/media-dvb/ca-fclose.md): Digital TV CA close()
- [Digital TV CA open()](/kernel/userspace/userspace-api/media-dvb/ca-fopen.md): Digital TV CA open()
- [CA_GET_CAP](/kernel/userspace/userspace-api/media-dvb/ca-get-cap.md): Duplicate implicit target name: "ca_get_cap".
- [CA_GET_DESCR_INFO](/kernel/userspace/userspace-api/media-dvb/ca-get-descr-info.md): Duplicate implicit target name: "ca_get_descr_info".
- [CA_GET_MSG](/kernel/userspace/userspace-api/media-dvb/ca-get-msg.md): Duplicate implicit target name: "ca_get_msg".
- [CA_GET_SLOT_INFO](/kernel/userspace/userspace-api/media-dvb/ca-get-slot-info.md): Duplicate implicit target name: "ca_get_slot_info".
- [CA_RESET](/kernel/userspace/userspace-api/media-dvb/ca-reset.md): Duplicate implicit target name: "ca_reset".
- [CA_SEND_MSG](/kernel/userspace/userspace-api/media-dvb/ca-send-msg.md): Duplicate implicit target name: "ca_send_msg".
- [CA_SET_DESCR](/kernel/userspace/userspace-api/media-dvb/ca-set-descr.md): Duplicate implicit target name: "ca_set_descr".
- [Digital TV CA Device](/kernel/userspace/userspace-api/media-dvb/ca.md): The Digital TV CA device controls the conditional access hardware. It can be accessed through /dev/dvb/adapter?/ca?. Data types and ioctl definitions can be accessed by including linux/dvb/ca.h in your application.
- [CA Data Types](/kernel/userspace/userspace-api/media-dvb/ca-data-types.md): Reference for CA Data Types.
- [CA Function Calls](/kernel/userspace/userspace-api/media-dvb/ca-function-calls.md): Reference for CA Function Calls.
- [The High level CI API](/kernel/userspace/userspace-api/media-dvb/ca-high-level.md): This document describes the high level CI API as in accordance to the Linux DVB API.
- [Digital TV Demux Device](/kernel/userspace/userspace-api/media-dvb/demux.md): 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.
- [DMX_ADD_PID](/kernel/userspace/userspace-api/media-dvb/dmx-add-pid.md): Duplicate implicit target name: "dmx_add_pid".
- [ioctl DMX_EXPBUF](/kernel/userspace/userspace-api/media-dvb/dmx-expbuf.md): DMX_EXPBUF - Export a buffer as a DMABUF file descriptor.
- [Digital TV demux close()](/kernel/userspace/userspace-api/media-dvb/dmx-fclose.md): Digital TV demux close()
- [Digital TV demux open()](/kernel/userspace/userspace-api/media-dvb/dmx-fopen.md): Digital TV demux open()
- [Digital TV demux read()](/kernel/userspace/userspace-api/media-dvb/dmx-fread.md): Digital TV demux read()
- [Digital TV demux write()](/kernel/userspace/userspace-api/media-dvb/dmx-fwrite.md): Digital TV demux write()
- [DMX_GET_PES_PIDS](/kernel/userspace/userspace-api/media-dvb/dmx-get-pes-pids.md): Duplicate implicit target name: "dmx_get_pes_pids".
- [DMX_GET_STC](/kernel/userspace/userspace-api/media-dvb/dmx-get-stc.md): Duplicate implicit target name: "dmx_get_stc".
- [Digital TV mmap()](/kernel/userspace/userspace-api/media-dvb/dmx-mmap.md): dmx-mmap - Map device memory into application address space
- [DVB munmap()](/kernel/userspace/userspace-api/media-dvb/dmx-munmap.md): dmx-munmap - Unmap device memory
- [ioctl DMX_QBUF, DMX_DQBUF](/kernel/userspace/userspace-api/media-dvb/dmx-qbuf.md): DMX_QBUF - DMX_DQBUF - Exchange a buffer with the driver
- [ioctl DMX_QUERYBUF](/kernel/userspace/userspace-api/media-dvb/dmx-querybuf.md): DMX_QUERYBUF - Query the status of a buffer
- [DMX_REMOVE_PID](/kernel/userspace/userspace-api/media-dvb/dmx-remove-pid.md): Duplicate implicit target name: "dmx_remove_pid".
- [ioctl DMX_REQBUFS](/kernel/userspace/userspace-api/media-dvb/dmx-reqbufs.md): DMX_REQBUFS - Initiate Memory Mapping and/or DMA buffer I/O
- [DMX_SET_BUFFER_SIZE](/kernel/userspace/userspace-api/media-dvb/dmx-set-buffer-size.md): Duplicate implicit target name: "dmx_set_buffer_size".
- [DMX_SET_FILTER](/kernel/userspace/userspace-api/media-dvb/dmx-set-filter.md): Duplicate implicit target name: "dmx_set_filter".
- [DMX_SET_PES_FILTER](/kernel/userspace/userspace-api/media-dvb/dmx-set-pes-filter.md): Duplicate implicit target name: "dmx_set_pes_filter".
- [DMX_START](/kernel/userspace/userspace-api/media-dvb/dmx-start.md): Duplicate implicit target name: "dmx_start".
- [DMX_STOP](/kernel/userspace/userspace-api/media-dvb/dmx-stop.md): Duplicate implicit target name: "dmx_stop".
- [Demux Function Calls](/kernel/userspace/userspace-api/media-dvb/dmx-fcalls.md): Reference for Demux Function Calls.
- [Demux Data Types](/kernel/userspace/userspace-api/media-dvb/dmx-types.md): Reference for Demux Data Types.
- [Querying frontend status and statistics](/kernel/userspace/userspace-api/media-dvb/dvb-fe-read-status.md): Once FE_SET_PROPERTY <FE_GET_PROPERTY> is called, the frontend will run a kernel thread that will periodically check for the tuner lock status and provide statistics about the quality of the signal.
- [frontend events](/kernel/userspace/userspace-api/media-dvb/dvb-frontend-event.md): Reference for frontend events.
- [frontend parameters](/kernel/userspace/userspace-api/media-dvb/dvb-frontend-parameters.md): The kind of parameters passed to the frontend device for tuning depend on the kind of hardware you are using.
- [Part II - Digital TV API](/kernel/userspace/userspace-api/media-dvb/dvbapi.md): Version 5.10
- [Property types](/kernel/userspace/userspace-api/media-dvb/dvbproperty.md): Tuning into a Digital TV physical channel and starting decoding it requires changing a set of parameters, in order to control the tuner, the demodulator, the Linear Low-noise Amplifier (LNA) and to set the antenna subsystem via Satellite…
- [Examples](/kernel/userspace/userspace-api/media-dvb/examples.md): 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.
- [Frontend bandwidth](/kernel/userspace/userspace-api/media-dvb/fe-bandwidth-t.md): Reference for Frontend bandwidth.
- [ioctl FE_DISEQC_RECV_SLAVE_REPLY](/kernel/userspace/userspace-api/media-dvb/fe-diseqc-recv-slave-reply.md): FE_DISEQC_RECV_SLAVE_REPLY - Receives reply from a DiSEqC 2.0 command
- [ioctl FE_DISEQC_RESET_OVERLOAD](/kernel/userspace/userspace-api/media-dvb/fe-diseqc-reset-overload.md): FE_DISEQC_RESET_OVERLOAD - Restores the power to the antenna subsystem, if it was powered off due - to power overload.
- [ioctl FE_DISEQC_SEND_BURST](/kernel/userspace/userspace-api/media-dvb/fe-diseqc-send-burst.md): FE_DISEQC_SEND_BURST - Sends a 22KHz tone burst for 2x1 mini DiSEqC satellite selection.
- [ioctl FE_DISEQC_SEND_MASTER_CMD](/kernel/userspace/userspace-api/media-dvb/fe-diseqc-send-master-cmd.md): FE_DISEQC_SEND_MASTER_CMD - Sends a DiSEqC command
- [FE_DISHNETWORK_SEND_LEGACY_CMD](/kernel/userspace/userspace-api/media-dvb/fe-dishnetwork-send-legacy-cmd.md): Duplicate implicit target name: "fe_dishnetwork_send_legacy_cmd".
- [ioctl FE_ENABLE_HIGH_LNB_VOLTAGE](/kernel/userspace/userspace-api/media-dvb/fe-enable-high-lnb-voltage.md): FE_ENABLE_HIGH_LNB_VOLTAGE - Select output DC level between normal LNBf voltages or higher LNBf - voltages.
- [FE_GET_EVENT](/kernel/userspace/userspace-api/media-dvb/fe-get-event.md): Duplicate implicit target name: "fe_get_event".
- [FE_GET_FRONTEND](/kernel/userspace/userspace-api/media-dvb/fe-get-frontend.md): Duplicate implicit target name: "fe_get_frontend".
- [ioctl FE_GET_INFO](/kernel/userspace/userspace-api/media-dvb/fe-get-info.md): FE_GET_INFO - Query Digital TV frontend capabilities and returns information about the - front-end. This call only requires read-only access to the device.
- [ioctl FE_SET_PROPERTY, FE_GET_PROPERTY](/kernel/userspace/userspace-api/media-dvb/fe-get-property.md): FE_SET_PROPERTY - FE_GET_PROPERTY - FE_SET_PROPERTY sets one or more frontend properties. - FE_GET_PROPERTY returns one or more frontend properties.
- [FE_READ_BER](/kernel/userspace/userspace-api/media-dvb/fe-read-ber.md): Duplicate implicit target name: "fe_read_ber".
- [FE_READ_SIGNAL_STRENGTH](/kernel/userspace/userspace-api/media-dvb/fe-read-signal-strength.md): Duplicate implicit target name: "fe_read_signal_strength".
- [FE_READ_SNR](/kernel/userspace/userspace-api/media-dvb/fe-read-snr.md): Duplicate implicit target name: "fe_read_snr".
- [ioctl FE_READ_STATUS](/kernel/userspace/userspace-api/media-dvb/fe-read-status.md): FE_READ_STATUS - Returns status information about the front-end. This call only requires - read-only access to the device
- [FE_READ_UNCORRECTED_BLOCKS](/kernel/userspace/userspace-api/media-dvb/fe-read-uncorrected-blocks.md): Duplicate implicit target name: "fe_read_uncorrected_blocks".
- [ioctl FE_SET_FRONTEND_TUNE_MODE](/kernel/userspace/userspace-api/media-dvb/fe-set-frontend-tune-mode.md): FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend.
- [FE_SET_FRONTEND](/kernel/userspace/userspace-api/media-dvb/fe-set-frontend.md): Duplicate implicit target name: "fe_set_frontend".
- [ioctl FE_SET_TONE](/kernel/userspace/userspace-api/media-dvb/fe-set-tone.md): FE_SET_TONE - Sets/resets the generation of the continuous 22kHz tone.
- [ioctl FE_SET_VOLTAGE](/kernel/userspace/userspace-api/media-dvb/fe-set-voltage.md): FE_SET_VOLTAGE - Allow setting the DC level sent to the antenna subsystem.
- [Frontend type](/kernel/userspace/userspace-api/media-dvb/fe-type-t.md): For historical reasons, frontend types are named by the type of modulation used in transmission. The fontend types are given by fe_type_t type, defined as:
- [Digital TV property parameters](/kernel/userspace/userspace-api/media-dvb/fe-property-parameters.md): There are several different Digital TV parameters that can be used by FE_SET_PROPERTY and FE_GET_PROPERTY ioctls<FE_GET_PROPERTY>. This section describes each of them. Please notice, however, that only a subset of them are needed to setup…
- [Frontend uAPI data types](/kernel/userspace/userspace-api/media-dvb/frontend-header.md): Reference for Frontend uAPI data types.
- [Properties used on cable delivery systems](/kernel/userspace/userspace-api/media-dvb/frontend-property-cable-systems.md): The DVB-C Annex-A is the widely used cable standard. Transmission uses QAM modulation.
- [Properties used on satellite delivery systems](/kernel/userspace/userspace-api/media-dvb/frontend-property-satellite-systems.md): The following parameters are valid for DVB-S:
- [Properties used on terrestrial delivery systems](/kernel/userspace/userspace-api/media-dvb/frontend-property-terrestrial-systems.md): The following parameters are valid for DVB-T:
- [Frontend statistics indicators](/kernel/userspace/userspace-api/media-dvb/frontend-stat-properties.md): The values are returned via dtv_property.stat. If the property is supported, dtv_property.stat.len is bigger than zero.
- [Digital TV Frontend API](/kernel/userspace/userspace-api/media-dvb/frontend.md): The Digital TV frontend API was designed to support three groups of delivery systems: Terrestrial, cable and Satellite. Currently, the following delivery systems are supported:
- [Digital TV frontend close()](/kernel/userspace/userspace-api/media-dvb/frontend-f-close.md): fe-close - Close a frontend device
- [Digital TV frontend open()](/kernel/userspace/userspace-api/media-dvb/frontend-f-open.md): fe-open - Open a frontend device
- [Frontend Function Calls](/kernel/userspace/userspace-api/media-dvb/frontend-fcalls.md): Reference for Frontend Function Calls.
- [Frontend Legacy Data Types](/kernel/userspace/userspace-api/media-dvb/frontend-legacy-api.md): Those functions are defined at DVB version 3. The support is kept in the kernel due to compatibility issues only. Their usage is strongly not recommended
- [Digital TV Frontend legacy API (a. k. a. DVBv3)](/kernel/userspace/userspace-api/media-dvb/frontend-legacy-dvbv3-api.md): 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.
- [Digital TV uAPI symbols](/kernel/userspace/userspace-api/media-dvb/headers.md): Frontend
- [Introduction](/kernel/userspace/userspace-api/media-dvb/intro.md): The reader of this document is required to have some knowledge in the area of digital video broadcasting (Digital TV) and should be familiar with part I of the MPEG2 specification ISO/IEC 13818 (aka ITU-T H.222), i.e you should know what a…
- [Digital TV Deprecated APIs](/kernel/userspace/userspace-api/media-dvb/legacy-dvb-apis.md): The APIs described here should not be used on new drivers or applications.
- [DVB Audio Device](/kernel/userspace/userspace-api/media-dvb/legacy-dvb-audio.md): The DVB audio device controls the MPEG2 audio decoder of the DVB hardware. It can be accessed through /dev/dvb/adapter?/audio?. Data types and ioctl definitions can be accessed by including linux/dvb/audio.h in your application.
- [Legacy DVB MPEG Decoder APIs](/kernel/userspace/userspace-api/media-dvb/legacy-dvb-decoder-api.md): This API has originally been designed for DVB only and is therefore limited to the legacy_dvb_decoder_formats used in such digital TV-broadcastsystems.
- [DVB OSD Device](/kernel/userspace/userspace-api/media-dvb/legacy-dvb-osd.md): The DVB OSD device controls the OnScreen-Display of the AV7110 based DVB-cards with hardware MPEG2 decoder. It can be accessed through /dev/dvb/adapter?/osd0. Data types and ioctl definitions can be accessed by including linux/dvb/osd.h in…
- [DVB Video Device](/kernel/userspace/userspace-api/media-dvb/legacy-dvb-video.md): The DVB video device controls the MPEG2 video decoder of the DVB hardware. It can be accessed through /dev/dvb/adapter0/video0. Data types and ioctl definitions can be accessed by including linux/dvb/video.h in your application.
- [ioctl NET_ADD_IF](/kernel/userspace/userspace-api/media-dvb/net-add-if.md): NET_ADD_IF - Creates a new network interface for a given Packet ID.
- [ioctl NET_GET_IF](/kernel/userspace/userspace-api/media-dvb/net-get-if.md): NET_GET_IF - Read the configuration data of an interface created via - NET_ADD_IF <net>.
- [ioctl NET_REMOVE_IF](/kernel/userspace/userspace-api/media-dvb/net-remove-if.md): NET_REMOVE_IF - Removes a network interface.
- [Net Data Types](/kernel/userspace/userspace-api/media-dvb/net-types.md): Reference for Net Data Types.
- [Digital TV Network API](/kernel/userspace/userspace-api/media-dvb/net.md): The Digital TV net device controls the mapping of data packages that are part of a transport stream to be mapped into a virtual network interface, visible through the standard Linux network protocol stack.
- [Querying frontend information](/kernel/userspace/userspace-api/media-dvb/query-dvb-frontend-info.md): Usually, the first thing to do when the frontend is opened is to check the frontend capabilities. This is done using FE_GET_INFO. This ioctl will enumerate the Digital TV API version and other characteristics about the frontend, and can be…

## Media controllers

- [Introduction](/kernel/userspace/userspace-api/media-mediactl/media-controller-intro.md): Media devices increasingly handle multiple related functions. Many USB cameras include microphones, video capture hardware can also output video, or SoC camera interfaces also perform memory-to-memory operations similar to video codecs.
- [Media device model](/kernel/userspace/userspace-api/media-mediactl/media-controller-model.md): Discovering a device internal topology, and configuring it at runtime, is one of the goals of the media controller API. To achieve this, hardware devices and Linux Kernel interfaces are modelled as graph objects on an oriented graph. The…
- [Part IV - Media Controller API](/kernel/userspace/userspace-api/media-mediactl/media-controller.md): Authors:
- [media close()](/kernel/userspace/userspace-api/media-mediactl/media-func-close.md): media-close - Close a media device
- [media ioctl()](/kernel/userspace/userspace-api/media-mediactl/media-func-ioctl.md): media-ioctl - Control a media device
- [media open()](/kernel/userspace/userspace-api/media-mediactl/media-func-open.md): media-open - Open a media device
- [Function Reference](/kernel/userspace/userspace-api/media-mediactl/media-funcs.md): Reference for Function Reference.
- [Media controller uAPI symbols](/kernel/userspace/userspace-api/media-mediactl/media-header.md): Reference for Media controller uAPI symbols.
- [ioctl MEDIA_IOC_DEVICE_INFO](/kernel/userspace/userspace-api/media-mediactl/media-ioc-device-info.md): MEDIA_IOC_DEVICE_INFO - Query device information
- [ioctl MEDIA_IOC_ENUM_ENTITIES](/kernel/userspace/userspace-api/media-mediactl/media-ioc-enum-entities.md): MEDIA_IOC_ENUM_ENTITIES - Enumerate entities and their properties
- [ioctl MEDIA_IOC_ENUM_LINKS](/kernel/userspace/userspace-api/media-mediactl/media-ioc-enum-links.md): MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity
- [ioctl MEDIA_IOC_G_TOPOLOGY](/kernel/userspace/userspace-api/media-mediactl/media-ioc-g-topology.md): MEDIA_IOC_G_TOPOLOGY - Enumerate the graph topology and graph element properties
- [ioctl MEDIA_IOC_REQUEST_ALLOC](/kernel/userspace/userspace-api/media-mediactl/media-ioc-request-alloc.md): MEDIA_IOC_REQUEST_ALLOC - Allocate a request
- [ioctl MEDIA_IOC_SETUP_LINK](/kernel/userspace/userspace-api/media-mediactl/media-ioc-setup-link.md): MEDIA_IOC_SETUP_LINK - Modify the properties of a link
- [ioctl MEDIA_REQUEST_IOC_QUEUE](/kernel/userspace/userspace-api/media-mediactl/media-request-ioc-queue.md): MEDIA_REQUEST_IOC_QUEUE - Queue a request
- [ioctl MEDIA_REQUEST_IOC_REINIT](/kernel/userspace/userspace-api/media-mediactl/media-request-ioc-reinit.md): MEDIA_REQUEST_IOC_REINIT - Re-initialize a request
- [Types and flags used to represent the media graph elements](/kernel/userspace/userspace-api/media-mediactl/media-types.md): One and only one of MEDIA_PAD_FL_SINK and MEDIA_PAD_FL_SOURCE must be set for every pad.
- [Request API](/kernel/userspace/userspace-api/media-mediactl/request-api.md): The Request API has been designed to allow V4L2 to deal with requirements of modern devices (stateless codecs, complex camera pipelines, ...) and APIs (Android Codec v2). One such requirement is the ability for devices belonging to the…
- [request close()](/kernel/userspace/userspace-api/media-mediactl/request-func-close.md): request-close - Close a request file descriptor
- [request ioctl()](/kernel/userspace/userspace-api/media-mediactl/request-func-ioctl.md): request-ioctl - Control a request file descriptor
- [request poll()](/kernel/userspace/userspace-api/media-mediactl/request-func-poll.md): request-poll - Wait for some event on a file descriptor

## Remote control

- [file: uapi/v4l/keytable.c](/kernel/userspace/userspace-api/media-rc/keytable-c.md): Reference for file: uapi/v4l/keytable.c.
- [Introduction](/kernel/userspace/userspace-api/media-rc/lirc-dev-intro.md): LIRC stands for Linux Infrared Remote Control. The LIRC device interface is a bi-directional interface for transporting raw IR and decoded scancodes data between userspace and kernelspace. Fundamentally, it is just a chardev (/dev/lircX,…
- [LIRC Device Interface](/kernel/userspace/userspace-api/media-rc/lirc-dev.md): Reference for LIRC Device Interface.
- [LIRC Function Reference](/kernel/userspace/userspace-api/media-rc/lirc-func.md): Reference for LIRC Function Reference.
- [ioctl LIRC_GET_FEATURES](/kernel/userspace/userspace-api/media-rc/lirc-get-features.md): LIRC_GET_FEATURES - Get the underlying hardware device's features
- [ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE](/kernel/userspace/userspace-api/media-rc/lirc-get-rec-mode.md): LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.
- [ioctl LIRC_GET_REC_RESOLUTION](/kernel/userspace/userspace-api/media-rc/lirc-get-rec-resolution.md): LIRC_GET_REC_RESOLUTION - Obtain the value of receive resolution, in microseconds.
- [ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE](/kernel/userspace/userspace-api/media-rc/lirc-get-send-mode.md): LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode.
- [ioctls LIRC_GET_MIN_TIMEOUT and LIRC_GET_MAX_TIMEOUT](/kernel/userspace/userspace-api/media-rc/lirc-get-timeout.md): LIRC_GET_MIN_TIMEOUT / LIRC_GET_MAX_TIMEOUT - Obtain the possible timeout range for IR receive.
- [LIRC uAPI symbols](/kernel/userspace/userspace-api/media-rc/lirc-header.md): Reference for LIRC uAPI symbols.
- [LIRC read()](/kernel/userspace/userspace-api/media-rc/lirc-read.md): lirc-read - Read from a LIRC device
- [ioctl LIRC_SET_MEASURE_CARRIER_MODE](/kernel/userspace/userspace-api/media-rc/lirc-set-measure-carrier-mode.md): LIRC_SET_MEASURE_CARRIER_MODE - enable or disable measure mode
- [ioctl LIRC_SET_REC_CARRIER_RANGE](/kernel/userspace/userspace-api/media-rc/lirc-set-rec-carrier-range.md): LIRC_SET_REC_CARRIER_RANGE - Set lower bound of the carrier used to modulate IR receive.
- [ioctl LIRC_SET_REC_CARRIER](/kernel/userspace/userspace-api/media-rc/lirc-set-rec-carrier.md): LIRC_SET_REC_CARRIER - Set carrier used to modulate IR receive.
- [ioctl LIRC_GET_REC_TIMEOUT and LIRC_SET_REC_TIMEOUT](/kernel/userspace/userspace-api/media-rc/lirc-set-rec-timeout.md): LIRC_GET_REC_TIMEOUT/LIRC_SET_REC_TIMEOUT - Get/set the integer value for IR inactivity timeout.
- [ioctl LIRC_SET_SEND_CARRIER](/kernel/userspace/userspace-api/media-rc/lirc-set-send-carrier.md): LIRC_SET_SEND_CARRIER - Set send carrier used to modulate IR TX.
- [ioctl LIRC_SET_SEND_DUTY_CYCLE](/kernel/userspace/userspace-api/media-rc/lirc-set-send-duty-cycle.md): LIRC_SET_SEND_DUTY_CYCLE - Set the duty cycle of the carrier signal for IR transmit.
- [ioctl LIRC_SET_TRANSMITTER_MASK](/kernel/userspace/userspace-api/media-rc/lirc-set-transmitter-mask.md): LIRC_SET_TRANSMITTER_MASK - Enables send codes on a given set of transmitters
- [ioctl LIRC_SET_WIDEBAND_RECEIVER](/kernel/userspace/userspace-api/media-rc/lirc-set-wideband-receiver.md): LIRC_SET_WIDEBAND_RECEIVER - enable wide band receiver.
- [LIRC write()](/kernel/userspace/userspace-api/media-rc/lirc-write.md): lirc-write - Write to a LIRC device
- [Introduction](/kernel/userspace/userspace-api/media-rc/rc-intro.md): Currently, most analog and digital devices have a Infrared input for remote controllers. Each manufacturer has their own type of control. It is not rare for the same manufacturer to ship different types of controls, depending on the device.
- [Remote Controller Protocols and Scancodes](/kernel/userspace/userspace-api/media-rc/rc-protos.md): IR is encoded as a series of pulses and spaces, using a protocol. These protocols can encode e.g. an address (which device should respond) and a command: what it should do. The values for these are not always consistent across different…
- [Remote Controller's sysfs nodes](/kernel/userspace/userspace-api/media-rc/rc-sysfs-nodes.md): As defined at Documentation/ABI/testing/sysfs-class-rc, those are the sysfs nodes that control the Remote Controllers:
- [Changing default Remote Controller mappings](/kernel/userspace/userspace-api/media-rc/rc-table-change.md): The event interface provides two ioctls to be used against the /dev/input/event device, to allow changing the default keymapping.
- [Remote controller tables](/kernel/userspace/userspace-api/media-rc/rc-tables.md): Unfortunately, for several years, there was no effort to create uniform IR keycodes for different devices. This caused the same IR keyname to be mapped completely differently on different IR devices. This resulted that the same IR keyname…
- [Part III - Remote Controller API](/kernel/userspace/userspace-api/media-rc/remote-controllers.md): Authors:

## Video4Linux

- [Application Priority](/kernel/userspace/userspace-api/media-v4l/app-pri.md): When multiple applications share a device it may be desirable to assign them different priorities. Contrary to the traditional "rm -rf /" school of thought, a video recording application could for example block other applications from…
- [Audio Inputs and Outputs](/kernel/userspace/userspace-api/media-v4l/audio.md): Audio inputs and outputs are physical connectors of a device. Video capture devices have inputs, output devices have outputs, zero or more each. Radio devices have no audio inputs or outputs. They have exactly one tuner which in fact is an…
- [References](/kernel/userspace/userspace-api/media-v4l/biblio.md): Duplicate implicit target name: "jfif".
- [Buffers](/kernel/userspace/userspace-api/media-v4l/buffer.md): A buffer contains data exchanged by application and driver using one of the Streaming I/O methods. In the multi-planar API, the data is held in planes, while the buffer structure acts as a container for the planes. Only pointers to buffers…
- [Video Capture Example](/kernel/userspace/userspace-api/media-v4l/capture-example.md): Reference for Video Capture Example.
- [file: media/v4l/capture.c](/kernel/userspace/userspace-api/media-v4l/capture-c.md): Reference for file: media/v4l/capture.c.
- [Defining Colorspaces in V4L2](/kernel/userspace/userspace-api/media-v4l/colorspaces-defs.md): In V4L2 colorspaces are defined by four values. The first is the colorspace identifier (enum v4l2_colorspace) which defines the chromaticities, the default transfer function, the default Y'CbCr encoding and the default quantization method.…
- [Detailed Colorspace Descriptions](/kernel/userspace/userspace-api/media-v4l/colorspaces-details.md): The smpte170m standard defines the colorspace used by NTSC and PAL and by SDTV in general. The default transfer function is V4L2_XFER_FUNC_709. The default Y'CbCr encoding is V4L2_YCBCR_ENC_601. The default Y'CbCr quantization is limited…
- [Colorspaces](/kernel/userspace/userspace-api/media-v4l/colorspaces.md): Duplicate implicit target name: "colorspaces".
- [Common definitions for V4L2 and V4L2 subdev interfaces](/kernel/userspace/userspace-api/media-v4l/common-defs.md): Reference for Common definitions for V4L2 and V4L2 subdev interfaces.
- [Common API Elements](/kernel/userspace/userspace-api/media-v4l/common.md): Programming a V4L2 device consists of these steps:
- [Changes](/kernel/userspace/userspace-api/media-v4l/compat.md): The following chapters document the evolution of the V4L2 API, errata or extensions. They are also intended to help application and driver writers to port or update their code.
- [User Controls](/kernel/userspace/userspace-api/media-v4l/control.md): Devices typically have a number of user-settable controls such as brightness, saturation and so on, which would be presented to the user on a graphical user interface. But, different devices will have different controls available, and…
- [Image Cropping, Insertion and Scaling -- the CROP API](/kernel/userspace/userspace-api/media-v4l/crop.md): Some video capture devices can sample a subsection of the picture and shrink or enlarge it to an image of arbitrary size. We call these abilities cropping and scaling. Some video output devices can scale an image up or down and insert it…
- [Depth Formats](/kernel/userspace/userspace-api/media-v4l/depth-formats.md): Depth data provides distance to points, mapped onto the image plane
- [Video Capture Interface](/kernel/userspace/userspace-api/media-v4l/dev-capture.md): Video capture devices sample an analog video signal and store the digitized images in memory. Today nearly all devices can capture at full 25 or 30 frames/second. With this interface applications can control the capture process and move…
- [Memory-to-Memory Stateful Video Decoder Interface](/kernel/userspace/userspace-api/media-v4l/dev-decoder.md): A stateful video decoder takes complete chunks of the bytestream (e.g. Annex-B H.264/HEVC stream, raw VP8/9 stream) and decodes them into raw video frames in display order. The decoder is expected not to require any additional information…
- [Memory-to-Memory Stateful Video Encoder Interface](/kernel/userspace/userspace-api/media-v4l/dev-encoder.md): A stateful video encoder takes raw video frames in display order and encodes them into a bytestream. It generates complete chunks of the bytestream, including all metadata, headers, etc. The resulting bytestream does not require any…
- [Event Interface](/kernel/userspace/userspace-api/media-v4l/dev-event.md): The V4L2 event interface provides a means for a user to get immediately notified on certain conditions taking place on a device. This might include start of frame or loss of signal events, for example. Changes in the value or state of a…
- [Video Memory-To-Memory Interface](/kernel/userspace/userspace-api/media-v4l/dev-mem2mem.md): A V4L2 memory-to-memory device can compress, decompress, transform, or otherwise convert video data from one format into another format, in memory. Such memory-to-memory devices set the V4L2_CAP_VIDEO_M2M or V4L2_CAP_VIDEO_M2M_MPLANE…
- [Metadata Interface](/kernel/userspace/userspace-api/media-v4l/dev-meta.md): Metadata refers to any non-image data that supplements video frames with additional information. This may include statistics computed over the image, frame capture parameters supplied by the image source or device specific parameters for…
- [Video Output Overlay Interface](/kernel/userspace/userspace-api/media-v4l/dev-osd.md): Also known as On-Screen Display (OSD)
- [Video Output Interface](/kernel/userspace/userspace-api/media-v4l/dev-output.md): Video output devices encode stills or image sequences as analog video signal. With this interface applications can control the encoding process and move images from user space to the driver.
- [Video Overlay Interface](/kernel/userspace/userspace-api/media-v4l/dev-overlay.md): Also known as Framebuffer Overlay or Previewing.
- [Radio Interface](/kernel/userspace/userspace-api/media-v4l/dev-radio.md): This interface is intended for AM and FM (analog) radio receivers and transmitters.
- [Raw VBI Data Interface](/kernel/userspace/userspace-api/media-v4l/dev-raw-vbi.md): VBI is an abbreviation of Vertical Blanking Interval, a gap in the sequence of lines of an analog video signal. During VBI no picture information is transmitted, allowing some time while the electron beam of a cathode ray tube TV returns…
- [RDS Interface](/kernel/userspace/userspace-api/media-v4l/dev-rds.md): The Radio Data System transmits supplementary information in binary format, for example the station name or travel information, on an inaudible audio subcarrier of a radio program. This interface is aimed at devices capable of receiving…
- [Software Defined Radio Interface (SDR)](/kernel/userspace/userspace-api/media-v4l/dev-sdr.md): SDR is an abbreviation of Software Defined Radio, the radio device which uses application software for modulation or demodulation. This interface is intended for controlling and data streaming of such devices.
- [Sliced VBI Data Interface](/kernel/userspace/userspace-api/media-v4l/dev-sliced-vbi.md): VBI stands for Vertical Blanking Interval, a gap in the sequence of lines of an analog video signal. During VBI no picture information is transmitted, allowing some time while the electron beam of a cathode ray tube TV returns to the top…
- [Memory-to-memory Stateless Video Decoder Interface](/kernel/userspace/userspace-api/media-v4l/dev-stateless-decoder.md): A stateless decoder is a decoder that works without retaining any kind of state between processed frames. This means that each frame is decoded independently of any previous and future frames, and that the client is responsible for…
- [Sub-device Interface](/kernel/userspace/userspace-api/media-v4l/dev-subdev.md): The complex nature of V4L2 devices, where hardware is often made of several integrated circuits that need to interact with each other in a controlled way, leads to complex V4L2 drivers. The drivers usually reflect the hardware model in…
- [Touch Devices](/kernel/userspace/userspace-api/media-v4l/dev-touch.md): Touch devices are accessed through character device special files named /dev/v4l-touch0 to /dev/v4l-touch255 with major number 81 and dynamically allocated minor numbers 0 to 255.
- [Interfaces](/kernel/userspace/userspace-api/media-v4l/devices.md): Reference for Interfaces.
- [Differences between V4L and V4L2](/kernel/userspace/userspace-api/media-v4l/diff-v4l.md): The Video For Linux API was first introduced in Linux 2.1 to unify and replace various TV and radio device related interfaces, developed independently by driver writers in prior years. Starting with Linux 2.5 the much improved V4L2 API…
- [Streaming I/O (DMA buffer importing)](/kernel/userspace/userspace-api/media-v4l/dmabuf.md): The DMABUF framework provides a generic method for sharing buffers between multiple devices. Device drivers that support DMABUF can export a DMA buffer to userspace as a file descriptor (known as the exporter role), import a DMA buffer…
- [Digital Video (DV) Timings](/kernel/userspace/userspace-api/media-v4l/dv-timings.md): The video standards discussed so far have been dealing with Analog TV and the corresponding video timings. Today there are many more different hardware interfaces such as High Definition TV interfaces (HDMI), VGA, DVI connectors etc., that…
- [Camera Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-camera.md): The Camera class includes controls for mechanical (or equivalent digital) features of a device such as controllable lenses or sensors.
- [Stateless Codec Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-codec-stateless.md): The Stateless Codec control class is intended to support stateless decoder and encoders (i.e. hardware accelerators).
- [Codec Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-codec.md): Below all controls within the Codec control class are described. First the generic controls, then controls specific for certain hardware.
- [Colorimetry Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-colorimetry.md): The Colorimetry class includes controls for High Dynamic Range imaging for representing colors in digital images and video. The controls should be used for video and image encoding and decoding as well as in HDMI receivers and transmitters.
- [Detect Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-detect.md): The Detect class includes controls for common features of various motion or object detection capable devices.
- [Digital Video Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-dv.md): The Digital Video control class is intended to control receivers and transmitters for VGA, DVI (Digital Visual Interface), HDMI (hdmi) and DisplayPort (dp). These controls are generally expected to be private to the receiver or transmitter…
- [Flash Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-flash.md): The V4L2 flash controls are intended to provide generic access to flash controller devices. Flash controller devices are typically used in digital cameras.
- [FM Receiver Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-fm-rx.md): The FM Receiver (FM_RX) class includes controls for common features of FM Reception capable devices.
- [FM Transmitter Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-fm-tx.md): The FM Transmitter (FM_TX) class includes controls for common features of FM transmissions capable devices. Currently this class includes parameters for audio compression, pilot tone generation, audio deviation limiter, RDS transmission…
- [Image Process Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-image-process.md): The Image Process control class is intended for low-level control of image processing functions. Unlike V4L2_CID_IMAGE_SOURCE_CLASS, the controls in this class affect processing the image, and do not control capturing of it.
- [Image Source Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-image-source.md): The Image Source control class is intended for low-level control of image source devices such as image sensors. The devices feature an analogue to digital converter and a bus transmitter to transmit the image data out of the device.
- [JPEG Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-jpeg.md): The JPEG class includes controls for common features of JPEG encoders and decoders. Currently it includes features for codecs implementing progressive baseline DCT compression process with Huffman entropy coding.
- [RF Tuner Control Reference](/kernel/userspace/userspace-api/media-v4l/ext-ctrls-rf-tuner.md): The RF Tuner (RF_TUNER) class includes controls for common features of devices having RF tuner.
- [Extended Controls API](/kernel/userspace/userspace-api/media-v4l/extended-controls.md): The control mechanism as originally designed was meant to be used for user settings (brightness, saturation, etc). However, it turned out to be a very useful model for implementing more complicated driver APIs where each driver implements…
- [Field Order](/kernel/userspace/userspace-api/media-v4l/field-order.md): We have to distinguish between progressive and interlaced video. Progressive video transmits all lines of a video image sequentially. Interlaced video divides an image into two fields, containing only the odd and even lines of the image,…
- [Data Formats](/kernel/userspace/userspace-api/media-v4l/format.md): Different devices exchange different kinds of data with applications, for example video images, raw or sliced VBI data, RDS datagrams. Even within one kind many different formats are possible, in particular there is an abundance of image…
- [Guidelines for Video4Linux pixel format 4CCs](/kernel/userspace/userspace-api/media-v4l/fourcc.md): Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are specified in this document. First of the characters defines the nature of the pixel format, compression and colour space. The interpretation of the other three characters…
- [V4L2 close()](/kernel/userspace/userspace-api/media-v4l/func-close.md): v4l2-close - Close a V4L2 device
- [V4L2 ioctl()](/kernel/userspace/userspace-api/media-v4l/func-ioctl.md): v4l2-ioctl - Program a V4L2 device
- [V4L2 mmap()](/kernel/userspace/userspace-api/media-v4l/func-mmap.md): v4l2-mmap - Map device memory into application address space
- [V4L2 munmap()](/kernel/userspace/userspace-api/media-v4l/func-munmap.md): v4l2-munmap - Unmap device memory
- [V4L2 open()](/kernel/userspace/userspace-api/media-v4l/func-open.md): v4l2-open - Open a V4L2 device
- [V4L2 poll()](/kernel/userspace/userspace-api/media-v4l/func-poll.md): v4l2-poll - Wait for some event on a file descriptor
- [V4L2 read()](/kernel/userspace/userspace-api/media-v4l/func-read.md): v4l2-read - Read from a V4L2 device
- [V4L2 select()](/kernel/userspace/userspace-api/media-v4l/func-select.md): v4l2-select - Synchronous I/O multiplexing
- [V4L2 write()](/kernel/userspace/userspace-api/media-v4l/func-write.md): v4l2-write - Write to a V4L2 device
- [Changes of the V4L2 API](/kernel/userspace/userspace-api/media-v4l/hist-v4l2.md): Soon after the V4L API was added to the kernel it was criticised as too inflexible. In August 1998 Bill Dirks proposed a number of improvements and began to work on documentation, example drivers and applications. With the help of other…
- [HSV Formats](/kernel/userspace/userspace-api/media-v4l/hsv-formats.md): 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…
- [Input/Output](/kernel/userspace/userspace-api/media-v4l/io.md): The V4L2 API defines several different methods to read from or write to a device. All drivers exchanging data with applications must support at least one of them.
- [Introduction](/kernel/userspace/userspace-api/media-v4l/libv4l-introduction.md): libv4l is a collection of libraries which adds a thin abstraction layer on top of video4linux2 devices. The purpose of this (thin) layer is to make it easy for application writers to support a wide variety of devices without having to…
- [Libv4l Userspace Library](/kernel/userspace/userspace-api/media-v4l/libv4l.md): Reference for Libv4l Userspace Library.
- [Metadata Formats](/kernel/userspace/userspace-api/media-v4l/meta-formats.md): These formats are used for the metadata interface only.
- [V4L2_META_FMT_MALI_C55_STATS ('C55S'), V4L2_META_FMT_MALI_C55_PARAMS ('C55P')](/kernel/userspace/userspace-api/media-v4l/metafmt-arm-mali-c55.md): The ISP device collects different statistics over an input bayer frame. Those statistics can be obtained by userspace from the mali-c55 3a stats <mali-c55-3a-stats> metadata capture video node, using the v4l2_meta_format interface. The…
- [V4L2_META_FMT_C3ISP_STATS ('C3ST'), V4L2_META_FMT_C3ISP_PARAMS ('C3PM')](/kernel/userspace/userspace-api/media-v4l/metafmt-c3-isp.md): The C3 ISP can collect different statistics over an input Bayer frame. Those statistics are obtained from the "c3-isp-stats" metadata capture video nodes, using the v4l2_meta_format interface. They are formatted as described by the…
- [V4L2_META_FMT_D4XX ('D4XX')](/kernel/userspace/userspace-api/media-v4l/metafmt-d4xx.md): Intel D4xx UVC Cameras Metadata
- [V4L2_META_FMT_GENERIC_8 ('MET8'), V4L2_META_FMT_GENERIC_CSI2_10 ('MC1A'), V4L2_META_FMT_GENERIC_CSI2_12 ('MC1C'), V4L2_META_FMT_GENERIC_CSI2_14 ('MC1E'), V4L2_META_FMT_GENERIC_CSI2_16 ('MC1G'), V4L2_META_FMT_GENERIC_CSI2_20 ('MC1K'), V4L2_META_FMT_GENERIC_CSI2_24 ('MC1O')](/kernel/userspace/userspace-api/media-v4l/metafmt-generic.md): Generic line-based metadata formats
- [V4L2_META_FMT_IPU3_PARAMS ('ip3p'), V4L2_META_FMT_IPU3_3A ('ip3s')](/kernel/userspace/userspace-api/media-v4l/metafmt-intel-ipu3.md): The IPU3 ImgU 3A statistics accelerators collect different statistics over an input Bayer frame. Those statistics are obtained from the "ipu3-imgu [01] 3a stat" metadata capture video nodes, using the v4l2_meta_format interface. They are…
- [V4L2_META_FMT_RPI_BE_CFG](/kernel/userspace/userspace-api/media-v4l/metafmt-pisp-be.md): The Raspberry Pi PiSP Back End memory-to-memory image signal processor is configured by userspace by providing a buffer of configuration parameters to the pispbe-config output video device node using the v4l2_meta_format interface.
- [V4L2_META_FMT_RPI_FE_CFG](/kernel/userspace/userspace-api/media-v4l/metafmt-pisp-fe.md): The Raspberry Pi PiSP Front End image signal processor is configured by userspace by providing a buffer of configuration parameters to the rp1-cfe-fe-config output video device node using the v4l2_meta_format interface.
- [V4L2_META_FMT_RK_ISP1_PARAMS ('rk1p'), V4L2_META_FMT_RK_ISP1_STAT_3A ('rk1s'), V4L2_META_FMT_RK_ISP1_EXT_PARAMS ('rk1e')](/kernel/userspace/userspace-api/media-v4l/metafmt-rkisp1.md): The configuration of the RkISP1 ISP is performed by userspace by providing parameters for the ISP to the driver using the v4l2_meta_format interface.
- [V4L2_META_FMT_UVC_MSXU_1_5 ('UVCM')](/kernel/userspace/userspace-api/media-v4l/metafmt-uvc-msxu-1-5.md): Microsoft(R)'s UVC Payload Metadata.
- [V4L2_META_FMT_UVC ('UVCH')](/kernel/userspace/userspace-api/media-v4l/metafmt-uvc.md): UVC Payload Header Data
- [V4L2_META_FMT_VIVID ('VIVD')](/kernel/userspace/userspace-api/media-v4l/metafmt-vivid.md): VIVID Metadata Format
- [V4L2_META_FMT_VSP1_HGO ('VSPH')](/kernel/userspace/userspace-api/media-v4l/metafmt-vsp1-hgo.md): Renesas R-Car VSP1 1-D Histogram Data
- [V4L2_META_FMT_VSP1_HGT ('VSPT')](/kernel/userspace/userspace-api/media-v4l/metafmt-vsp1-hgt.md): Renesas R-Car VSP1 2-D Histogram Data
- [Streaming I/O (Memory Mapping)](/kernel/userspace/userspace-api/media-v4l/mmap.md): Input and output devices support this I/O method when the V4L2_CAP_STREAMING flag in the capabilities field of struct v4l2_capability returned by the VIDIOC_QUERYCAP ioctl is set. There are two streaming methods, to determine if the memory…
- [Opening and Closing Devices](/kernel/userspace/userspace-api/media-v4l/open.md): Hardware that is supported using the V4L2 uAPI often consists of multiple devices or peripherals, each of which have their own driver.
- [Raw Bayer Formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-bayer.md): The raw Bayer formats are used by image sensors before much if any processing is performed on the image. The formats contain green, red and blue components, with alternating lines of red and green, and blue and green pixels in different…
- [V4L2_PIX_FMT_CNF4 ('CNF4')](/kernel/userspace/userspace-api/media-v4l/pixfmt-cnf4.md): Depth sensor confidence information as a 4 bits per pixel packed array
- [Compressed Formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-compressed.md): Reference for Compressed Formats.
- [Indexed Format](/kernel/userspace/userspace-api/media-v4l/pixfmt-indexed.md): In this format each pixel is represented by an 8 bit index into a 256 entry ARGB palette. It is intended for Video Output Overlays <osd> only. There are no ioctls to access the palette, this must be done with ioctls of the Linux…
- [Standard Image Formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-intro.md): In order to exchange images between drivers and applications, it is necessary to have standard image data formats which both sides will interpret the same way. V4L2 includes several such formats, and this section is intended to be an…
- [V4L2_PIX_FMT_INZI ('INZI')](/kernel/userspace/userspace-api/media-v4l/pixfmt-inzi.md): Infrared 10-bit linked with Depth 16-bit images
- [V4L2_PIX_FMT_M420 ('M420')](/kernel/userspace/userspace-api/media-v4l/pixfmt-m420.md): Format with ½ horizontal and vertical chroma resolution, also known as YUV 4:2:0. Hybrid plane line-interleaved layout.
- [Packed HSV formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-packed-hsv.md): The hue (h) is measured in degrees, the equivalence between degrees and LSBs depends on the hsv-encoding used, see colorspaces. The saturation (s) and the value (v) are measured in percentage of the cylinder: 0 being the smallest value and…
- [Packed YUV formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-packed-yuv.md): Similarly to the packed RGB formats, the packed YUV formats store the Y, Cb and Cr components consecutively in memory. They may apply subsampling to the chroma components and thus differ in how they interlave the three components.
- [V4L2_PIX_FMT_RAW_CRU10 ('CR10'), V4L2_PIX_FMT_RAW_CRU12 ('CR12'), V4L2_PIX_FMT_RAW_CRU14 ('CR14'), V4L2_PIX_FMT_RAW_CRU20 ('CR20')](/kernel/userspace/userspace-api/media-v4l/pixfmt-rawnn-cru.md): These pixel formats are some of the RAW outputs for the Camera Receiver Unit in the Renesas RZ/V2H SoC. They are raw formats which pack pixels contiguously into 64-bit units, with the 4 or 8 most significant bits padded.
- [Reserved Format Identifiers](/kernel/userspace/userspace-api/media-v4l/pixfmt-reserved.md): These formats are not defined by this specification, they are just listed for reference and to avoid naming conflicts. If you want to register your own format, send an e-mail to the linux-media mailing list https://linuxtv.org/lists.php…
- [RGB Formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-rgb.md): These formats encode each pixel as a triplet of RGB values. They are packed formats, meaning that the RGB values for one pixel are stored consecutively in memory and each pixel consumes an integer number of bytes. When the number of bits…
- [V4L2_SDR_FMT_CS8 ('CS08')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-cs08.md): Complex signed 8-bit IQ sample
- [V4L2_SDR_FMT_CS14LE ('CS14')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-cs14le.md): Complex signed 14-bit little endian IQ sample
- [V4L2_SDR_FMT_CU8 ('CU08')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-cu08.md): Complex unsigned 8-bit IQ sample
- [V4L2_SDR_FMT_CU16LE ('CU16')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-cu16le.md): Complex unsigned 16-bit little endian IQ sample
- [V4L2_SDR_FMT_PCU16BE ('PC16')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-pcu16be.md): Planar complex unsigned 16-bit big endian IQ sample
- [V4L2_SDR_FMT_PCU18BE ('PC18')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-pcu18be.md): Planar complex unsigned 18-bit big endian IQ sample
- [V4L2_SDR_FMT_PCU20BE ('PC20')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-pcu20be.md): Planar complex unsigned 20-bit big endian IQ sample
- [V4L2_SDR_FMT_RU12LE ('RU12')](/kernel/userspace/userspace-api/media-v4l/pixfmt-sdr-ru12le.md): Real unsigned 12-bit little endian sample
- [V4L2_PIX_FMT_IPU3_SBGGR10 ('ip3b'), V4L2_PIX_FMT_IPU3_SGBRG10 ('ip3g'), V4L2_PIX_FMT_IPU3_SGRBG10 ('ip3G'), V4L2_PIX_FMT_IPU3_SRGGB10 ('ip3r')](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb10-ipu3.md): These four pixel formats are used by Intel IPU3 driver, they are raw sRGB / Bayer formats with 10 bits per sample with every 25 pixels packed to 32 bytes leaving 6 most significant bits padding in the last byte. The format is little endian.
- [V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb10.md): V4L2_PIX_FMT_SGRBG10 V4L2_PIX_FMT_SGBRG10 V4L2_PIX_FMT_SBGGR10 10-bit Bayer formats expanded to 16 bits
- [V4L2_PIX_FMT_SBGGR10ALAW8 ('aBA8'), V4L2_PIX_FMT_SGBRG10ALAW8 ('aGA8'), V4L2_PIX_FMT_SGRBG10ALAW8 ('agA8'), V4L2_PIX_FMT_SRGGB10ALAW8 ('aRA8'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb10alaw8.md): V4L2_PIX_FMT_SGBRG10ALAW8 V4L2_PIX_FMT_SGRBG10ALAW8 V4L2_PIX_FMT_SRGGB10ALAW8 10-bit Bayer formats compressed to 8 bits
- [V4L2_PIX_FMT_SBGGR10DPCM8 ('bBA8'), V4L2_PIX_FMT_SGBRG10DPCM8 ('bGA8'), V4L2_PIX_FMT_SGRBG10DPCM8 ('BD10'), V4L2_PIX_FMT_SRGGB10DPCM8 ('bRA8'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb10dpcm8.md): man V4L2_PIX_FMT_SBGGR10DPCM8(2)
- [V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb10p.md): V4L2_PIX_FMT_SGRBG10P V4L2_PIX_FMT_SGBRG10P V4L2_PIX_FMT_SBGGR10P 10-bit packed Bayer formats
- [V4L2_PIX_FMT_SRGGB12 ('RG12'), V4L2_PIX_FMT_SGRBG12 ('BA12'), V4L2_PIX_FMT_SGBRG12 ('GB12'), V4L2_PIX_FMT_SBGGR12 ('BG12'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb12.md): V4L2_PIX_FMT_SGRBG12 V4L2_PIX_FMT_SGBRG12 V4L2_PIX_FMT_SBGGR12 12-bit Bayer formats expanded to 16 bits
- [V4L2_PIX_FMT_SRGGB12P ('pRCC'), V4L2_PIX_FMT_SGRBG12P ('pgCC'), V4L2_PIX_FMT_SGBRG12P ('pGCC'), V4L2_PIX_FMT_SBGGR12P ('pBCC')](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb12p.md): These four pixel formats are packed raw sRGB / Bayer formats with 12 bits per colour. Every two consecutive samples are packed into three bytes. Each of the first two bytes contain the 8 high order bits of the pixels, and the third byte…
- [V4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb14.md): These four pixel formats are raw sRGB / Bayer formats with 14 bits per colour. Each sample is stored in a 16-bit word, with two unused high bits filled with zeros. Each n-pixel row contains n/2 green samples and n/2 blue or red samples,…
- [V4L2_PIX_FMT_SRGGB14P ('pREE'), V4L2_PIX_FMT_SGRBG14P ('pgEE'), V4L2_PIX_FMT_SGBRG14P ('pGEE'), V4L2_PIX_FMT_SBGGR14P ('pBEE'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb14p.md): man V4L2_PIX_FMT_SRGGB14P(2)
- [V4L2_PIX_FMT_SRGGB16 ('RG16'), V4L2_PIX_FMT_SGRBG16 ('GR16'), V4L2_PIX_FMT_SGBRG16 ('GB16'), V4L2_PIX_FMT_SBGGR16 ('BYR2'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb16.md): These four pixel formats are raw sRGB / Bayer formats with 16 bits per sample. Each sample is stored in a 16-bit word. Each n-pixel row contains n/2 green samples and n/2 blue or red samples, with alternating red and blue rows. Bytes are…
- [V4L2_PIX_FMT_PISP_COMP1_RGGB ('PC1R'), V4L2_PIX_FMT_PISP_COMP1_GRBG ('PC1G'), V4L2_PIX_FMT_PISP_COMP1_GBRG ('PC1g'), V4L2_PIX_FMT_PISP_COMP1_BGGR ('PC1B), V4L2_PIX_FMT_PISP_COMP1_MONO ('PC1M'), V4L2_PIX_FMT_PISP_COMP2_RGGB ('PC2R'), V4L2_PIX_FMT_PISP_COMP2_GRBG ('PC2G'), V4L2_PIX_FMT_PISP_COMP2_GBRG ('PC2g'), V4L2_PIX_FMT_PISP_COMP2_BGGR ('PC2B), V4L2_PIX_FMT_PISP_COMP2_MONO ('PC2M')](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb8-pisp-comp.md): The Raspberry Pi ISP (PiSP) uses a family of three fixed-rate compressed Bayer formats. A black-level offset may be subtracted to improve compression efficiency; the nominal black level and amount of offset must be signalled out of band.…
- [V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'),](/kernel/userspace/userspace-api/media-v4l/pixfmt-srggb8.md): These four pixel formats are raw sRGB / Bayer formats with 8 bits per sample. Each sample is stored in a byte. Each n-pixel row contains n/2 green samples and n/2 blue or red samples, with alternating red and blue rows. They are…
- [V4L2_TCH_FMT_DELTA_TD08 ('TD08')](/kernel/userspace/userspace-api/media-v4l/pixfmt-tch-td08.md): man V4L2_TCH_FMT_DELTA_TD08(2)
- [V4L2_TCH_FMT_DELTA_TD16 ('TD16')](/kernel/userspace/userspace-api/media-v4l/pixfmt-tch-td16.md): man V4L2_TCH_FMT_DELTA_TD16(2)
- [V4L2_TCH_FMT_TU08 ('TU08')](/kernel/userspace/userspace-api/media-v4l/pixfmt-tch-tu08.md): man V4L2_TCH_FMT_TU08(2)
- [V4L2_TCH_FMT_TU16 ('TU16')](/kernel/userspace/userspace-api/media-v4l/pixfmt-tch-tu16.md): man V4L2_TCH_FMT_TU16(2)
- [V4L2_PIX_FMT_UV8 ('UV8')](/kernel/userspace/userspace-api/media-v4l/pixfmt-uv8.md): UV plane interleaved
- [Multi-planar format structures](/kernel/userspace/userspace-api/media-v4l/pixfmt-v4l2-mplane.md): The struct v4l2_plane_pix_format structures define size and layout for each of the planes in a multi-planar format. The struct v4l2_pix_format_mplane structure contains information common to all planes (such as image width and height) and…
- [Single-planar format structure](/kernel/userspace/userspace-api/media-v4l/pixfmt-v4l2.md): Reference for Single-planar format structure.
- [V4L2_PIX_FMT_Y12I ('Y12I')](/kernel/userspace/userspace-api/media-v4l/pixfmt-y12i.md): Interleaved grey-scale image, e.g. from a stereo-pair
- [V4L2_PIX_FMT_Y16I ('Y16I')](/kernel/userspace/userspace-api/media-v4l/pixfmt-y16i.md): Interleaved grey-scale image, e.g. from a stereo-pair
- [V4L2_PIX_FMT_Y8I ('Y8I ')](/kernel/userspace/userspace-api/media-v4l/pixfmt-y8i.md): Interleaved grey-scale image, e.g. from a stereo-pair
- [Luma-Only Formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-yuv-luma.md): This family of formats only store the luma component of a Y'CbCr image. They are often referred to as greyscale formats.
- [Planar YUV formats](/kernel/userspace/userspace-api/media-v4l/pixfmt-yuv-planar.md): Planar formats split luma and chroma data in separate memory regions. They exist in two variants:
- [V4L2_PIX_FMT_Z16 ('Z16 ')](/kernel/userspace/userspace-api/media-v4l/pixfmt-z16.md): 16-bit depth data with distance values at each pixel
- [Image Formats](/kernel/userspace/userspace-api/media-v4l/pixfmt.md): The V4L2 API was primarily designed for devices exchanging image data with applications. The struct v4l2_pix_format and struct v4l2_pix_format_mplane structures define the format and layout of an image in memory. The former is used with…
- [Single- and multi-planar APIs](/kernel/userspace/userspace-api/media-v4l/planar-apis.md): Some devices require data for each input or output video frame to be placed in discontiguous memory buffers. In such cases, one video frame has to be addressed using more than one memory address, i.e. one pointer per "plane". A plane is a…
- [Querying Capabilities](/kernel/userspace/userspace-api/media-v4l/querycap.md): Because V4L2 covers a wide variety of devices not all aspects of the API are equally applicable to all types of devices. Furthermore devices of the same type have different capabilities and this specification permits the omission of a few…
- [Read/Write](/kernel/userspace/userspace-api/media-v4l/rw.md): Input and output devices support the read() and write() function, respectively, when the V4L2_CAP_READWRITE flag in the capabilities field of struct v4l2_capability returned by the VIDIOC_QUERYCAP ioctl is set.
- [SDR Formats](/kernel/userspace/userspace-api/media-v4l/sdr-formats.md): These formats are used for SDR <sdr> interface only.
- [Configuration](/kernel/userspace/userspace-api/media-v4l/selection-api-configuration.md): Applications can use the selection API <VIDIOC_G_SELECTION> to select an area in a video signal or a buffer, and to query for default settings and hardware limits.
- [Examples](/kernel/userspace/userspace-api/media-v4l/selection-api-examples.md): (A video capture device is assumed; change V4L2_BUF_TYPE_VIDEO_CAPTURE for other devices; change target to V4L2_SEL_TGT_COMPOSE_* family to configure composing area)
- [Introduction](/kernel/userspace/userspace-api/media-v4l/selection-api-intro.md): Some video capture devices can sample a subsection of a picture and shrink or enlarge it to an image of arbitrary size. Next, the devices can insert the image into larger one. Some video output devices can crop part of an input image,…
- [Selection targets](/kernel/userspace/userspace-api/media-v4l/selection-api-targets.md): Targets used by a cropping, composing and scaling process
- [Comparison with old cropping API](/kernel/userspace/userspace-api/media-v4l/selection-api-vs-crop-api.md): The selection API was introduced to cope with deficiencies of the older CROP API <crop>, that was designed to control simple capture devices. Later the cropping API was adopted by video output drivers. The ioctls are used to select a part…
- [Cropping, composing and scaling -- the SELECTION API](/kernel/userspace/userspace-api/media-v4l/selection-api.md): Reference for Cropping, composing and scaling -- the SELECTION API.
- [Common selection definitions](/kernel/userspace/userspace-api/media-v4l/selections-common.md): While the V4L2 selection API <selection-api> and V4L2 subdev selection APIs <v4l2-subdev-selections> are very similar, there's one fundamental difference between the two. On sub-device API, the selection rectangle refers to the media bus…
- [Video Standards](/kernel/userspace/userspace-api/media-v4l/standard.md): Video devices typically support one or more different video standards or variations of standards. Each video input and output may support another set of standards. This set is reported by the std field of struct v4l2_input and struct…
- [Streaming Parameters](/kernel/userspace/userspace-api/media-v4l/streaming-par.md): Streaming parameters are intended to optimize the video capture process as well as I/O. Presently applications can request a high quality capture mode with the VIDIOC_S_PARM <VIDIOC_G_PARM> ioctl.
- [Media Bus Formats](/kernel/userspace/userspace-api/media-v4l/subdev-formats.md): The media bus pixel codes describe image formats as flowing over physical buses (both between separate physical components and inside SoC devices). This should not be confused with the V4L2 pixel formats that describe, using four character…
- [Touch Formats](/kernel/userspace/userspace-api/media-v4l/tch-formats.md): These formats are used for touch interface only.
- [Tuners and Modulators](/kernel/userspace/userspace-api/media-v4l/tuner.md): Video input devices can have one or more tuners demodulating a RF signal. Each tuner is associated with one or more video inputs, depending on the number of RF connectors on the tuner. The type field of the respective struct v4l2_input…
- [Function Reference](/kernel/userspace/userspace-api/media-v4l/user-func.md): Reference for Function Reference.
- [Streaming I/O (User Pointers)](/kernel/userspace/userspace-api/media-v4l/userp.md): Input and output devices support this I/O method when the V4L2_CAP_STREAMING flag in the capabilities field of struct v4l2_capability returned by the VIDIOC_QUERYCAP ioctl is set. If the particular user pointer method (not only memory…
- [Generic V4L2 ISP formats](/kernel/userspace/userspace-api/media-v4l/v4l2-isp.md): Generic ISP formats are metadata formats that define a mechanism to pass ISP parameters and statistics between userspace and drivers in V4L2 buffers. They are designed to allow extending them in a backward-compatible way.
- [Selection flags](/kernel/userspace/userspace-api/media-v4l/v4l2-selection-flags.md): Reference for Selection flags.
- [Selection targets](/kernel/userspace/userspace-api/media-v4l/v4l2-selection-targets.md): The precise meaning of the selection targets may be dependent on which of the two interfaces they are used.
- [Part I - Video for Linux API](/kernel/userspace/userspace-api/media-v4l/v4l2.md): This part describes the Video for Linux API version 2 (V4L2 API) specification.
- [Video Grabber example using libv4l](/kernel/userspace/userspace-api/media-v4l/v4l2grab-example.md): 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.
- [file: media/v4l/v4l2grab.c](/kernel/userspace/userspace-api/media-v4l/v4l2grab-c.md): Reference for file: media/v4l/v4l2grab.c.
- [Video Inputs and Outputs](/kernel/userspace/userspace-api/media-v4l/video.md): Video inputs and outputs are physical connectors of a device. These can be for example: RF connectors (antenna/cable), CVBS a.k.a. Composite Video, S-Video and RGB connectors. Camera sensors are also considered to be a video input. Video…
- [Video For Linux Two Header uAPI Symbols](/kernel/userspace/userspace-api/media-v4l/videodev.md): Reference for Video For Linux Two Header uAPI Symbols.
- [ioctl VIDIOC_CREATE_BUFS](/kernel/userspace/userspace-api/media-v4l/vidioc-create-bufs.md): VIDIOC_CREATE_BUFS - Create buffers for Memory Mapped or User Pointer or DMA Buffer I/O
- [ioctl VIDIOC_CROPCAP](/kernel/userspace/userspace-api/media-v4l/vidioc-cropcap.md): VIDIOC_CROPCAP - Information about the video cropping and scaling abilities
- [ioctl VIDIOC_DBG_G_CHIP_INFO](/kernel/userspace/userspace-api/media-v4l/vidioc-dbg-g-chip-info.md): VIDIOC_DBG_G_CHIP_INFO - Identify the chips on a TV card
- [ioctl VIDIOC_DBG_G_REGISTER, VIDIOC_DBG_S_REGISTER](/kernel/userspace/userspace-api/media-v4l/vidioc-dbg-g-register.md): VIDIOC_DBG_G_REGISTER - VIDIOC_DBG_S_REGISTER - Read or write hardware registers
- [ioctl VIDIOC_DECODER_CMD, VIDIOC_TRY_DECODER_CMD](/kernel/userspace/userspace-api/media-v4l/vidioc-decoder-cmd.md): VIDIOC_DECODER_CMD - VIDIOC_TRY_DECODER_CMD - Execute an decoder command
- [ioctl VIDIOC_DQEVENT](/kernel/userspace/userspace-api/media-v4l/vidioc-dqevent.md): VIDIOC_DQEVENT - Dequeue event
- [ioctl VIDIOC_DV_TIMINGS_CAP, VIDIOC_SUBDEV_DV_TIMINGS_CAP](/kernel/userspace/userspace-api/media-v4l/vidioc-dv-timings-cap.md): VIDIOC_DV_TIMINGS_CAP - VIDIOC_SUBDEV_DV_TIMINGS_CAP - The capabilities of the Digital Video receiver/transmitter
- [ioctl VIDIOC_ENCODER_CMD, VIDIOC_TRY_ENCODER_CMD](/kernel/userspace/userspace-api/media-v4l/vidioc-encoder-cmd.md): VIDIOC_ENCODER_CMD - VIDIOC_TRY_ENCODER_CMD - Execute an encoder command
- [ioctl VIDIOC_ENUM_DV_TIMINGS, VIDIOC_SUBDEV_ENUM_DV_TIMINGS](/kernel/userspace/userspace-api/media-v4l/vidioc-enum-dv-timings.md): VIDIOC_ENUM_DV_TIMINGS - VIDIOC_SUBDEV_ENUM_DV_TIMINGS - Enumerate supported Digital Video timings
- [ioctl VIDIOC_ENUM_FMT](/kernel/userspace/userspace-api/media-v4l/vidioc-enum-fmt.md): VIDIOC_ENUM_FMT - Enumerate image formats
- [ioctl VIDIOC_ENUM_FRAMEINTERVALS](/kernel/userspace/userspace-api/media-v4l/vidioc-enum-frameintervals.md): VIDIOC_ENUM_FRAMEINTERVALS - Enumerate frame intervals
- [ioctl VIDIOC_ENUM_FRAMESIZES](/kernel/userspace/userspace-api/media-v4l/vidioc-enum-framesizes.md): VIDIOC_ENUM_FRAMESIZES - Enumerate frame sizes
- [ioctl VIDIOC_ENUM_FREQ_BANDS](/kernel/userspace/userspace-api/media-v4l/vidioc-enum-freq-bands.md): VIDIOC_ENUM_FREQ_BANDS - Enumerate supported frequency bands
- [ioctl VIDIOC_ENUMAUDIO](/kernel/userspace/userspace-api/media-v4l/vidioc-enumaudio.md): VIDIOC_ENUMAUDIO - Enumerate audio inputs
- [ioctl VIDIOC_ENUMAUDOUT](/kernel/userspace/userspace-api/media-v4l/vidioc-enumaudioout.md): VIDIOC_ENUMAUDOUT - Enumerate audio outputs
- [ioctl VIDIOC_ENUMINPUT](/kernel/userspace/userspace-api/media-v4l/vidioc-enuminput.md): VIDIOC_ENUMINPUT - Enumerate video inputs
- [ioctl VIDIOC_ENUMOUTPUT](/kernel/userspace/userspace-api/media-v4l/vidioc-enumoutput.md): VIDIOC_ENUMOUTPUT - Enumerate video outputs
- [ioctl VIDIOC_ENUMSTD, VIDIOC_SUBDEV_ENUMSTD](/kernel/userspace/userspace-api/media-v4l/vidioc-enumstd.md): VIDIOC_ENUMSTD - VIDIOC_SUBDEV_ENUMSTD - Enumerate supported video standards
- [ioctl VIDIOC_EXPBUF](/kernel/userspace/userspace-api/media-v4l/vidioc-expbuf.md): VIDIOC_EXPBUF - Export a buffer as a DMABUF file descriptor.
- [ioctl VIDIOC_G_AUDIO, VIDIOC_S_AUDIO](/kernel/userspace/userspace-api/media-v4l/vidioc-g-audio.md): VIDIOC_G_AUDIO - VIDIOC_S_AUDIO - Query or select the current audio input and its attributes
- [ioctl VIDIOC_G_AUDOUT, VIDIOC_S_AUDOUT](/kernel/userspace/userspace-api/media-v4l/vidioc-g-audioout.md): VIDIOC_G_AUDOUT - VIDIOC_S_AUDOUT - Query or select the current audio output
- [ioctl VIDIOC_G_CROP, VIDIOC_S_CROP](/kernel/userspace/userspace-api/media-v4l/vidioc-g-crop.md): VIDIOC_G_CROP - VIDIOC_S_CROP - Get or set the current cropping rectangle
- [ioctl VIDIOC_G_CTRL, VIDIOC_S_CTRL](/kernel/userspace/userspace-api/media-v4l/vidioc-g-ctrl.md): VIDIOC_G_CTRL - VIDIOC_S_CTRL - Get or set the value of a control
- [ioctl VIDIOC_G_DV_TIMINGS, VIDIOC_S_DV_TIMINGS](/kernel/userspace/userspace-api/media-v4l/vidioc-g-dv-timings.md): VIDIOC_G_DV_TIMINGS - VIDIOC_S_DV_TIMINGS - VIDIOC_SUBDEV_G_DV_TIMINGS - VIDIOC_SUBDEV_S_DV_TIMINGS - Get or set DV timings for input or output
- [ioctl VIDIOC_G_EDID, VIDIOC_S_EDID, VIDIOC_SUBDEV_G_EDID, VIDIOC_SUBDEV_S_EDID](/kernel/userspace/userspace-api/media-v4l/vidioc-g-edid.md): VIDIOC_G_EDID - VIDIOC_S_EDID - VIDIOC_SUBDEV_G_EDID - VIDIOC_SUBDEV_S_EDID - Get or set the EDID of a video receiver/transmitter
- [ioctl VIDIOC_G_ENC_INDEX](/kernel/userspace/userspace-api/media-v4l/vidioc-g-enc-index.md): VIDIOC_G_ENC_INDEX - Get meta data about a compressed video stream
- [ioctl VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS, VIDIOC_TRY_EXT_CTRLS](/kernel/userspace/userspace-api/media-v4l/vidioc-g-ext-ctrls.md): VIDIOC_G_EXT_CTRLS - VIDIOC_S_EXT_CTRLS - VIDIOC_TRY_EXT_CTRLS - Get or set the value of several controls, try control values
- [ioctl VIDIOC_G_FBUF, VIDIOC_S_FBUF](/kernel/userspace/userspace-api/media-v4l/vidioc-g-fbuf.md): VIDIOC_G_FBUF - VIDIOC_S_FBUF - Get or set frame buffer overlay parameters
- [ioctl VIDIOC_G_FMT, VIDIOC_S_FMT, VIDIOC_TRY_FMT](/kernel/userspace/userspace-api/media-v4l/vidioc-g-fmt.md): VIDIOC_G_FMT - VIDIOC_S_FMT - VIDIOC_TRY_FMT - Get or set the data format, try a format
- [ioctl VIDIOC_G_FREQUENCY, VIDIOC_S_FREQUENCY](/kernel/userspace/userspace-api/media-v4l/vidioc-g-frequency.md): VIDIOC_G_FREQUENCY - VIDIOC_S_FREQUENCY - Get or set tuner or modulator radio frequency
- [ioctl VIDIOC_G_INPUT, VIDIOC_S_INPUT](/kernel/userspace/userspace-api/media-v4l/vidioc-g-input.md): VIDIOC_G_INPUT - VIDIOC_S_INPUT - Query or select the current video input
- [ioctl VIDIOC_G_JPEGCOMP, VIDIOC_S_JPEGCOMP](/kernel/userspace/userspace-api/media-v4l/vidioc-g-jpegcomp.md): VIDIOC_G_JPEGCOMP - VIDIOC_S_JPEGCOMP
- [ioctl VIDIOC_G_MODULATOR, VIDIOC_S_MODULATOR](/kernel/userspace/userspace-api/media-v4l/vidioc-g-modulator.md): VIDIOC_G_MODULATOR - VIDIOC_S_MODULATOR - Get or set modulator attributes
- [ioctl VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT](/kernel/userspace/userspace-api/media-v4l/vidioc-g-output.md): VIDIOC_G_OUTPUT - VIDIOC_S_OUTPUT - Query or select the current video output
- [ioctl VIDIOC_G_PARM, VIDIOC_S_PARM](/kernel/userspace/userspace-api/media-v4l/vidioc-g-parm.md): VIDIOC_G_PARM - VIDIOC_S_PARM - Get or set streaming parameters
- [ioctl VIDIOC_G_PRIORITY, VIDIOC_S_PRIORITY](/kernel/userspace/userspace-api/media-v4l/vidioc-g-priority.md): VIDIOC_G_PRIORITY - VIDIOC_S_PRIORITY - Query or request the access priority associated with a file descriptor
- [ioctl VIDIOC_G_SELECTION, VIDIOC_S_SELECTION](/kernel/userspace/userspace-api/media-v4l/vidioc-g-selection.md): VIDIOC_G_SELECTION - VIDIOC_S_SELECTION - Get or set one of the selection rectangles
- [ioctl VIDIOC_G_SLICED_VBI_CAP](/kernel/userspace/userspace-api/media-v4l/vidioc-g-sliced-vbi-cap.md): VIDIOC_G_SLICED_VBI_CAP - Query sliced VBI capabilities
- [ioctl VIDIOC_G_STD, VIDIOC_S_STD, VIDIOC_SUBDEV_G_STD, VIDIOC_SUBDEV_S_STD](/kernel/userspace/userspace-api/media-v4l/vidioc-g-std.md): VIDIOC_G_STD - VIDIOC_S_STD - VIDIOC_SUBDEV_G_STD - VIDIOC_SUBDEV_S_STD - Query or select the video standard of the current input
- [ioctl VIDIOC_G_TUNER, VIDIOC_S_TUNER](/kernel/userspace/userspace-api/media-v4l/vidioc-g-tuner.md): VIDIOC_G_TUNER - VIDIOC_S_TUNER - Get or set tuner attributes
- [ioctl VIDIOC_LOG_STATUS](/kernel/userspace/userspace-api/media-v4l/vidioc-log-status.md): VIDIOC_LOG_STATUS - Log driver status information
- [ioctl VIDIOC_OVERLAY](/kernel/userspace/userspace-api/media-v4l/vidioc-overlay.md): VIDIOC_OVERLAY - Start or stop video overlay
- [ioctl VIDIOC_PREPARE_BUF](/kernel/userspace/userspace-api/media-v4l/vidioc-prepare-buf.md): VIDIOC_PREPARE_BUF - Prepare a buffer for I/O
- [ioctl VIDIOC_QBUF, VIDIOC_DQBUF](/kernel/userspace/userspace-api/media-v4l/vidioc-qbuf.md): VIDIOC_QBUF - VIDIOC_DQBUF - Exchange a buffer with the driver
- [ioctl VIDIOC_QUERY_DV_TIMINGS](/kernel/userspace/userspace-api/media-v4l/vidioc-query-dv-timings.md): VIDIOC_QUERY_DV_TIMINGS - VIDIOC_SUBDEV_QUERY_DV_TIMINGS - Sense the DV preset received by the current input
- [ioctl VIDIOC_QUERYBUF](/kernel/userspace/userspace-api/media-v4l/vidioc-querybuf.md): VIDIOC_QUERYBUF - Query the status of a buffer
- [ioctl VIDIOC_QUERYCAP](/kernel/userspace/userspace-api/media-v4l/vidioc-querycap.md): VIDIOC_QUERYCAP - Query device capabilities
- [ioctls VIDIOC_QUERYCTRL, VIDIOC_QUERY_EXT_CTRL and VIDIOC_QUERYMENU](/kernel/userspace/userspace-api/media-v4l/vidioc-queryctrl.md): VIDIOC_QUERYCTRL - VIDIOC_QUERY_EXT_CTRL - VIDIOC_QUERYMENU - Enumerate controls and menu control items
- [ioctl VIDIOC_QUERYSTD, VIDIOC_SUBDEV_QUERYSTD](/kernel/userspace/userspace-api/media-v4l/vidioc-querystd.md): VIDIOC_QUERYSTD - VIDIOC_SUBDEV_QUERYSTD - Sense the video standard received by the current input
- [ioctl VIDIOC_REMOVE_BUFS](/kernel/userspace/userspace-api/media-v4l/vidioc-remove-bufs.md): VIDIOC_REMOVE_BUFS - Removes buffers from a queue
- [ioctl VIDIOC_REQBUFS](/kernel/userspace/userspace-api/media-v4l/vidioc-reqbufs.md): VIDIOC_REQBUFS - Initiate Memory Mapping, User Pointer I/O or DMA buffer I/O
- [ioctl VIDIOC_S_HW_FREQ_SEEK](/kernel/userspace/userspace-api/media-v4l/vidioc-s-hw-freq-seek.md): VIDIOC_S_HW_FREQ_SEEK - Perform a hardware frequency seek
- [ioctl VIDIOC_STREAMON, VIDIOC_STREAMOFF](/kernel/userspace/userspace-api/media-v4l/vidioc-streamon.md): VIDIOC_STREAMON - VIDIOC_STREAMOFF - Start or stop streaming I/O
- [ioctl VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-enum-frame-interval.md): VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL - Enumerate frame intervals
- [ioctl VIDIOC_SUBDEV_ENUM_FRAME_SIZE](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-enum-frame-size.md): VIDIOC_SUBDEV_ENUM_FRAME_SIZE - Enumerate media bus frame sizes
- [ioctl VIDIOC_SUBDEV_ENUM_MBUS_CODE](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-enum-mbus-code.md): VIDIOC_SUBDEV_ENUM_MBUS_CODE - Enumerate media bus formats
- [ioctl VIDIOC_SUBDEV_G_CLIENT_CAP, VIDIOC_SUBDEV_S_CLIENT_CAP](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-g-client-cap.md): VIDIOC_SUBDEV_G_CLIENT_CAP - VIDIOC_SUBDEV_S_CLIENT_CAP - Get or set client capabilities.
- [ioctl VIDIOC_SUBDEV_G_CROP, VIDIOC_SUBDEV_S_CROP](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-g-crop.md): VIDIOC_SUBDEV_G_CROP - VIDIOC_SUBDEV_S_CROP - Get or set the crop rectangle on a subdev pad
- [ioctl VIDIOC_SUBDEV_G_FMT, VIDIOC_SUBDEV_S_FMT](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-g-fmt.md): VIDIOC_SUBDEV_G_FMT - VIDIOC_SUBDEV_S_FMT - Get or set the data format on a subdev pad
- [ioctl VIDIOC_SUBDEV_G_FRAME_INTERVAL, VIDIOC_SUBDEV_S_FRAME_INTERVAL](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-g-frame-interval.md): VIDIOC_SUBDEV_G_FRAME_INTERVAL - VIDIOC_SUBDEV_S_FRAME_INTERVAL - Get or set the frame interval on a subdev pad
- [ioctl VIDIOC_SUBDEV_G_ROUTING, VIDIOC_SUBDEV_S_ROUTING](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-g-routing.md): VIDIOC_SUBDEV_G_ROUTING - VIDIOC_SUBDEV_S_ROUTING - Get or set routing between streams of media pads in a media entity.
- [ioctl VIDIOC_SUBDEV_G_SELECTION, VIDIOC_SUBDEV_S_SELECTION](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-g-selection.md): VIDIOC_SUBDEV_G_SELECTION - VIDIOC_SUBDEV_S_SELECTION - Get or set selection rectangles on a subdev pad
- [ioctl VIDIOC_SUBDEV_QUERYCAP](/kernel/userspace/userspace-api/media-v4l/vidioc-subdev-querycap.md): VIDIOC_SUBDEV_QUERYCAP - Query sub-device capabilities
- [ioctl VIDIOC_SUBSCRIBE_EVENT, VIDIOC_UNSUBSCRIBE_EVENT](/kernel/userspace/userspace-api/media-v4l/vidioc-subscribe-event.md): VIDIOC_SUBSCRIBE_EVENT - VIDIOC_UNSUBSCRIBE_EVENT - Subscribe or unsubscribe event
- [YUV Formats](/kernel/userspace/userspace-api/media-v4l/yuv-formats.md): YUV is the format native to TV broadcast and composite video signals. It separates the brightness information (Y) from the color information (U and V or Cb and Cr). The color information consists of red and blue color difference signals,…
