data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
====================== FunctionFS Descriptors ====================== Some of the descriptors that can be written to the FFS gadget are described below. Device and configuration descriptors are handled by the composite gadget and are not written by the user to the FFS gadget. Descriptors are written to the "ep0" file ...
Documentation/usb/functionfs-desc.rst
null
null
null
null
null
source
linux
==================== How FunctionFS works ==================== Overview ======== From kernel point of view it is just a composite function with some unique behaviour. It may be added to an USB configuration only after the user space driver has registered by writing descriptors and strings (the user space program has...
Documentation/usb/functionfs.rst
null
null
null
null
null
source
linux
============== Gadget Testing ============== This file summarizes information on basic testing of USB functions provided by gadgets. .. contents 1. ACM function 2. ECM function 3. ECM subset function 4. EEM function 5. FFS function 6. HID function 7. LOOPBACK function 8. MASS STORAGE function...
Documentation/usb/gadget-testing.rst
null
null
null
null
null
source
linux
============================================ Linux USB gadget configured through configfs ============================================ 25th April 2013 Overview ======== A USB Linux Gadget is a device which has a UDC (USB Device Controller) and can be connected to a USB Host to extend it with additional functions...
Documentation/usb/gadget_configfs.rst
null
null
null
null
null
source
linux
=========================== Linux USB HID gadget driver =========================== Introduction ============ The HID Gadget driver provides emulation of USB Human Interface Devices (HID). The basic HID handling is done in the kernel, and HID reports can be sent/received through I/O on the /dev/hidgX character device...
Documentation/usb/gadget_hid.rst
null
null
null
null
null
source
linux
============================== Multifunction Composite Gadget ============================== Overview ======== The Multifunction Composite Gadget (or g_multi) is a composite gadget that makes extensive use of the composite framework to provide a... multifunction gadget. In its standard configuration it provides a si...
Documentation/usb/gadget_multi.rst
null
null
null
null
null
source
linux
=============================== Linux USB Printer Gadget Driver =============================== 06/04/2007 Copyright (C) 2007 Craig W. Nadler <craig@nadler.us> General ======= This driver may be used if you are writing printer firmware using Linux as the embedded OS. This driver has nothing to do with using a pri...
Documentation/usb/gadget_printer.rst
null
null
null
null
null
source
linux
=============================== Linux Gadget Serial Driver v2.0 =============================== 11/20/2004 (updated 8-May-2008 for v2.3) License and Disclaimer ---------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publishe...
Documentation/usb/gadget_serial.rst
null
null
null
null
null
source
linux
======================= Linux UVC Gadget Driver ======================= Overview -------- The UVC Gadget driver is a driver for hardware on the *device* side of a USB connection. It is intended to run on a Linux system that has USB device-side hardware such as boards with an OTG port. On the device system, once the d...
Documentation/usb/gadget_uvc.rst
null
null
null
null
null
source
linux
=========== USB support =========== .. toctree:: :maxdepth: 1 acm authorization chipidea dwc3 ehci functionfs functionfs-desc gadget_configfs gadget_hid gadget_multi gadget_printer gadget_serial gadget_uvc gadget-testing iuu_phoenix mass-storage ...
Documentation/usb/index.rst
null
null
null
null
null
source
linux
============================= Infinity Usb Unlimited Readme ============================= Hi all, This module provide a serial interface to use your IUU unit in phoenix mode. Loading this module will bring a ttyUSB[0-x] interface. This driver must be used by your favorite application to pilot the IUU This driver is...
Documentation/usb/iuu_phoenix.rst
null
null
null
null
null
source
linux
========================= Mass Storage Gadget (MSG) ========================= Overview ======== Mass Storage Gadget (or MSG) acts as a USB Mass Storage device, appearing to the host as a disk or a CD-ROM drive. It supports multiple logical units (LUNs). Backing storage for each LUN is provided by a regular ...
Documentation/usb/mass-storage.rst
null
null
null
null
null
source
linux
============================= USB 7-Segment Numeric Display ============================= Manufactured by Delcom Engineering Device Information ------------------ USB VENDOR_ID 0x0fc5 USB PRODUCT_ID 0x1227 Both the 6 character and 8 character displays have PRODUCT_ID, and according to Delcom Engineering no queryable ...
Documentation/usb/misc_usbsevseg.rst
null
null
null
null
null
source
linux
================ mtouchusb driver ================ Changes ======= - 0.3 - Created based off of scanner & INSTALL from the original touchscreen driver on freecode (http://freecode.com/projects/3mtouchscreendriver) - Amended for linux-2.4.18, then 2.4.19 - 0.5 - Complete rewrite using Linux Input in 2.6.3 Unfortu...
Documentation/usb/mtouchusb.rst
null
null
null
null
null
source
linux
==== OHCI ==== 23-Aug-2002 The "ohci-hcd" driver is a USB Host Controller Driver (HCD) that is derived from the "usb-ohci" driver from the 2.4 kernel series. The "usb-ohci" code was written primarily by Roman Weissgaerber <weissg@vienna.at> but with contributions from many others (read its copyright/licencing header...
Documentation/usb/ohci.rst
null
null
null
null
null
source
linux
============== USB Raw Gadget ============== USB Raw Gadget is a gadget driver that gives userspace low-level control over the gadget's communication process. Like any other gadget driver, Raw Gadget implements USB devices via the USB gadget API. Unlike most gadget drivers, Raw Gadget does not implement any concrete ...
Documentation/usb/raw-gadget.rst
null
null
null
null
null
source
linux
Linux CDC ACM inf ----------------- .. include:: linux-cdc-acm.inf :literal: Linux inf --------- .. include:: linux.inf :literal: USB devfs drop permissions source --------------------------------- .. literalinclude:: usbdevfs-drop-permissions.c :language: c Credits ------- .. include:: CREDITS :...
Documentation/usb/text_files.rst
null
null
null
null
null
source
linux
============== USB references ============== 2008-Mar-7 For USB help other than the readme files that are located in `Documentation/usb/*`, see the following: - Linux-USB project: http://www.linux-usb.org mirrors at http://usb.in.tum.de/linux-usb/ and http://it.linux-usb.org - Linux USB...
Documentation/usb/usb-help.rst
null
null
null
null
null
source
linux
========== USB serial ========== Introduction ============ The USB serial driver currently supports a number of different USB to serial converter products, as well as some devices that use a serial interface from userspace to talk to the device. See the individual product section below for specific informati...
Documentation/usb/usb-serial.rst
null
null
null
null
null
source
linux
#include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <inttypes.h> #include <unistd.h> #include <linux/usbdevice_fs.h> /* For building without an updated set of headers */ #ifndef USBDEVFS_DROP_PRIVILEGES #define USBDE...
Documentation/usb/usbdevfs-drop-permissions.c
null
null
null
null
null
source
linux
=============== USB/IP protocol =============== Architecture ============ The USB/IP protocol follows a server/client architecture. The server exports the USB devices and the clients import them. The device driver for the exported USB device runs on the client machine. The client may ask for the list of the exported...
Documentation/usb/usbip_protocol.rst
null
null
null
null
null
source
linux
====== usbmon ====== Introduction ============ The name "usbmon" in lowercase refers to a facility in kernel which is used to collect traces of I/O on the USB bus. This function is analogous to a packet socket used by network monitoring tools such as tcpdump(1) or Ethereal. Similarly, it is expected that a tool such ...
Documentation/usb/usbmon.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ================================= Linux-specific ELF idiosyncrasies ================================= Definitions =========== "First" program header is the one with the smallest offset in the file: e_phoff. "Last" program header is the one with the biggest offset in the file: e_p...
Documentation/userspace-api/ELF.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. Copyright © 2024 Microsoft Corporation =================== Executability check =================== The ``AT_EXECVE_CHECK`` :manpage:`execveat(2)` flag, and the ``SECBIT_EXEC_RESTRICT_FILE`` and ``SECBIT_EXEC_DENY_INTERACTIVE`` securebits are intended for script interpreters and ...
Documentation/userspace-api/check_exec.rst
null
null
null
null
null
source
linux
=================================== Dell Systems Management Base Driver =================================== Overview ======== 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 (sys...
Documentation/userspace-api/dcdbas.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. Copyright 2021-2023 Collabora Ltd. ======================== Exchanging pixel buffers ======================== As originally designed, the Linux graphics subsystem had extremely limited support for sharing pixel-buffer allocations between processes, devices, and subsystems. Moder...
Documentation/userspace-api/dma-buf-alloc-exchange.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ============================== Allocating dma-buf using heaps ============================== 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. Heaps...
Documentation/userspace-api/dma-buf-heaps.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ====== futex2 ====== :Author: André Almeida <andrealmeid@collabora.com> 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, lik...
Documentation/userspace-api/futex2.rst
null
null
null
null
null
source
linux
===================================== The Linux kernel user-space API guide ===================================== .. _man-pages: https://www.kernel.org/doc/man-pages/ While much of the kernel's user-space API is documented elsewhere (particularly in the man-pages_ project), some user-space information can also be fou...
Documentation/userspace-api/index.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0+ ======= IOMMUFD ======= :Author: Jason Gunthorpe :Author: Kevin Tian Overview ======== 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 tha...
Documentation/userspace-api/iommufd.rst
null
null
null
null
null
source
linux
======================= ISA Plug & Play support ======================= Interface /proc/isapnp ====================== The interface was removed in kernel 2.5.53. See pnp.rst for more details. Interface /proc/bus/isapnp ========================== This directory allows access to ISA PnP cards and logical devices. The...
Documentation/userspace-api/isapnp.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> .. Copyright © 2019-2020 ANSSI .. Copyright © 2021-2022 Microsoft Corporation ===================================== Landlock: unprivileged access control ===================================== :Author: Mickaël Salaün :Date: J...
Documentation/userspace-api/landlock.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ================ Live Update uAPI ================ :Author: Pasha Tatashin <pasha.tatashin@soleen.com> ioctl interface =============== .. kernel-doc:: kernel/liveupdate/luo_core.c :doc: LUO ioctl Interface ioctl uAPI =========== .. kernel-doc:: include/uapi/linux/liveupdate.h ...
Documentation/userspace-api/liveupdate.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. Copyright (C) 2022 Casey Schaufler <casey@schaufler-ca.com> .. Copyright (C) 2022 Intel Corporation ===================================== Linux Security Modules ===================================== :Author: Casey Schaufler :Date: July 2023 Linux security modules (LSM) provide ...
Documentation/userspace-api/lsm.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ================================== Introduction of non-executable mfd ================================== :Author: Daniel Verkamp <dverkamp@chromium.org> Jeff Xu <jeffxu@chromium.org> :Contributor: Aleksa Sarai <cyphar@cyphar.com> Since Linux introduced the memfd feature, ...
Documentation/userspace-api/mfd_noexec.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ===================== Introduction of mseal ===================== :Author: Jeff Xu <jeffxu@chromium.org> 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 wr...
Documentation/userspace-api/mseal.rst
null
null
null
null
null
source
linux
====================== No New Privileges Flag ====================== The execve system call can grant a newly-started program privileges that its parent did not have. The most obvious examples are setuid/setgid programs and file capabilities. To prevent the parent program from gaining these privileges as well, the k...
Documentation/userspace-api/no_new_privs.rst
null
null
null
null
null
source
linux
=================================== NT synchronization primitive driver =================================== This page documents the user-space API for the ntsync driver. ntsync is a support driver for emulation of NT synchronization primitives by user-space NT emulators. It exists because implementation in user-space...
Documentation/userspace-api/ntsync.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ================ Perf ring buffer ================ .. CONTENTS 1. Introduction 2. Ring buffer implementation 2.1 Basic algorithm 2.2 Ring buffer for different tracing modes 2.2.1 Default mode 2.2.2 Per-thread mode 2.2.3 Per-CPU mode...
Documentation/userspace-api/perf_ring_buffer.rst
null
null
null
null
null
source
linux
===================== Restartable Sequences ===================== Restartable Sequences allow to register a per thread userspace memory area to be used as an ABI between kernel and userspace for three purposes: * userspace restartable sequences * quick access to read the current CPU number, node ID from userspace ...
Documentation/userspace-api/rseq.rst
null
null
null
null
null
source
linux
=========================================== Seccomp BPF (SECure COMPuting with filters) =========================================== Introduction ============ 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 chan...
Documentation/userspace-api/seccomp_filter.rst
null
null
null
null
null
source
linux
=================== Speculation Control =================== Quite some CPUs have speculation-related misfeatures which are in fact vulnerabilities causing data leaks in various forms even across privilege domains. The kernel provides mitigation for such vulnerabilities in various forms. Some of these mitigations are ...
Documentation/userspace-api/spec_ctrl.rst
null
null
null
null
null
source
linux
===================================================================== Platform Profile Selection (e.g. /sys/firmware/acpi/platform_profile) ===================================================================== On modern systems the platform performance, temperature, fan and other hardware related characteristics are o...
Documentation/userspace-api/sysfs-platform_profile.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. tee: ================================================== TEE (Trusted Execution Environment) Userspace API ================================================== include/uapi/linux/tee.h defines the generic interface to a TEE. User space (the client) connects to the driver by openin...
Documentation/userspace-api/tee.rst
null
null
null
null
null
source
linux
unshare system call =================== This document describes the new system call, unshare(). The document provides an overview of the feature, why it is needed, how it can be used, its interface specification, design, implementation and how it can be tested. Change Log ---------- version 0.1 Initial document, Jan...
Documentation/userspace-api/unshare.rst
null
null
null
null
null
source
linux
================================== VDUSE - "vDPA Device in Userspace" ================================== 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 hardw...
Documentation/userspace-api/vduse.rst
null
null
null
null
null
source
linux
======================================================== OpenCAPI (Open Coherent Accelerator Processor Interface) ======================================================== OpenCAPI is an interface between processors and accelerators. It aims at being low-latency and high-bandwidth. The specification was developed by t...
Documentation/userspace-api/accelerators/ocxl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 eBPF Userspace API ================== eBPF is a kernel mechanism to provide a sandboxed runtime environment in the Linux kernel for runtime extension and instrumentation without changing kernel source code or loading kernel modules. eBPF programs can be attached to various kernel s...
Documentation/userspace-api/ebpf/index.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 eBPF Syscall ------------ :Authors: - Alexei Starovoitov <ast@kernel.org> - Joe Stringer <joe@wand.net.nz> - Michael Kerrisk <mtk.manpages@gmail.com> The primary info for the bpf syscall is available in the `man-pages`_ for `bpf(2)`_. bpf() subcommand referenc...
Documentation/userspace-api/ebpf/syscall.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ================ fwctl cxl driver ================ :Author: Dave Jiang Overview ======== 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 p...
Documentation/userspace-api/fwctl/fwctl-cxl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 =============== fwctl subsystem =============== :Author: Jason Gunthorpe Overview ======== 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...
Documentation/userspace-api/fwctl/fwctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 Firmware Control (FWCTL) Userspace API ====================================== A framework that define a common set of limited rules that allows user space to securely construct and execute RPCs inside device firmware. .. toctree:: :maxdepth: 1 fwctl fwctl-cxl pds_fwct...
Documentation/userspace-api/fwctl/index.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ================ fwctl pds driver ================ :Author: Shannon Nelson Overview ======== 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 subs...
Documentation/userspace-api/fwctl/pds_fwctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 =================================== GPIO Character Device Userspace API =================================== This is latest version (v2) of the character device API, as defined in ``include/uapi/linux/gpio.h.`` First added in 5.10. .. note:: Do NOT abuse userspace APIs to contr...
Documentation/userspace-api/gpio/chardev.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ======================================== GPIO Character Device Userspace API (v1) ======================================== .. warning:: This API is obsoleted by chardev.rst (v2). New developments should use the v2 API, and existing developments are encouraged to migrate a...
Documentation/userspace-api/gpio/chardev_v1.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _gpio_errors: ******************* GPIO Error Codes ******************* .. _gpio-errors: .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| .. flat-table:: Common GPIO error codes :header-rows: 0 :stub-columns: 0 :widths: 1 16 - - ``EAGAIN`` (aka ``EWOULDBLOCK``) ...
Documentation/userspace-api/gpio/error-codes.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_GET_CHIPINFO_IOCTL: *********************** GPIO_GET_CHIPINFO_IOCTL *********************** Name ==== GPIO_GET_CHIPINFO_IOCTL - Get the publicly available information for a chip. Synopsis ======== .. c:macro:: GPIO_GET_CHIPINFO_IOCTL ``int ioctl(int chip_fd, GPIO_GET_...
Documentation/userspace-api/gpio/gpio-get-chipinfo-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_GET_LINEEVENT_IOCTL: ************************ GPIO_GET_LINEEVENT_IOCTL ************************ .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-get-line-ioctl.rst. Name ==== GPIO_GET_LINEEVENT_IOCTL - Request a line with edge detect...
Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_GET_LINEHANDLE_IOCTL: ************************* GPIO_GET_LINEHANDLE_IOCTL ************************* .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-get-line-ioctl.rst. Name ==== GPIO_GET_LINEHANDLE_IOCTL - Request a line or lines fr...
Documentation/userspace-api/gpio/gpio-get-linehandle-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_GET_LINEINFO_IOCTL: *********************** GPIO_GET_LINEINFO_IOCTL *********************** .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-get-lineinfo-ioctl.rst. Name ==== GPIO_GET_LINEINFO_IOCTL - Get the publicly available infor...
Documentation/userspace-api/gpio/gpio-get-lineinfo-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_GET_LINEINFO_UNWATCH_IOCTL: ******************************* GPIO_GET_LINEINFO_UNWATCH_IOCTL ******************************* Name ==== GPIO_GET_LINEINFO_UNWATCH_IOCTL - Disable watching a line for changes to its requested state and configuration information. Synopsis ===...
Documentation/userspace-api/gpio/gpio-get-lineinfo-unwatch-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_GET_LINEINFO_WATCH_IOCTL: ***************************** GPIO_GET_LINEINFO_WATCH_IOCTL ***************************** .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-get-lineinfo-watch-ioctl.rst. Name ==== GPIO_GET_LINEINFO_WATCH_IOCT...
Documentation/userspace-api/gpio/gpio-get-lineinfo-watch-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIOHANDLE_GET_LINE_VALUES_IOCTL: ******************************** GPIOHANDLE_GET_LINE_VALUES_IOCTL ******************************** .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-line-get-values-ioctl.rst. Name ==== GPIOHANDLE_GET_LINE_...
Documentation/userspace-api/gpio/gpio-handle-get-line-values-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIOHANDLE_SET_CONFIG_IOCTL: *************************** GPIOHANDLE_SET_CONFIG_IOCTL *************************** .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-line-set-config-ioctl.rst. Name ==== GPIOHANDLE_SET_CONFIG_IOCTL - Update th...
Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_HANDLE_SET_LINE_VALUES_IOCTL: ********************************* GPIO_HANDLE_SET_LINE_VALUES_IOCTL ********************************* .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-line-set-values-ioctl.rst. Name ==== GPIO_HANDLE_SET_...
Documentation/userspace-api/gpio/gpio-handle-set-line-values-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_LINEEVENT_DATA_READ: ************************ GPIO_LINEEVENT_DATA_READ ************************ .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-line-event-read.rst. Name ==== GPIO_LINEEVENT_DATA_READ - Read edge detection events fro...
Documentation/userspace-api/gpio/gpio-lineevent-data-read.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_LINEINFO_CHANGED_READ: ************************** GPIO_LINEINFO_CHANGED_READ ************************** .. warning:: This ioctl is part of chardev_v1.rst and is obsoleted by gpio-v2-lineinfo-changed-read.rst. Name ==== GPIO_LINEINFO_CHANGED_READ - Read line info...
Documentation/userspace-api/gpio/gpio-lineinfo-changed-read.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_GET_LINE_IOCTL: ********************** GPIO_V2_GET_LINE_IOCTL ********************** Name ==== GPIO_V2_GET_LINE_IOCTL - Request a line or lines from the kernel. Synopsis ======== .. c:macro:: GPIO_V2_GET_LINE_IOCTL ``int ioctl(int chip_fd, GPIO_V2_GET_LINE_IOCTL, s...
Documentation/userspace-api/gpio/gpio-v2-get-line-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_GET_LINEINFO_IOCTL: ************************** GPIO_V2_GET_LINEINFO_IOCTL ************************** Name ==== GPIO_V2_GET_LINEINFO_IOCTL - Get the publicly available information for a line. Synopsis ======== .. c:macro:: GPIO_V2_GET_LINEINFO_IOCTL ``int ioctl(int ...
Documentation/userspace-api/gpio/gpio-v2-get-lineinfo-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_GET_LINEINFO_WATCH_IOCTL: ******************************** GPIO_V2_GET_LINEINFO_WATCH_IOCTL ******************************** Name ==== GPIO_V2_GET_LINEINFO_WATCH_IOCTL - Enable watching a line for changes to its request state and configuration information. Synopsis =...
Documentation/userspace-api/gpio/gpio-v2-get-lineinfo-watch-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_LINE_EVENT_READ: *********************** GPIO_V2_LINE_EVENT_READ *********************** Name ==== GPIO_V2_LINE_EVENT_READ - Read edge detection events for lines from a request. Synopsis ======== ``int read(int req_fd, void *buf, size_t count)`` Arguments =========...
Documentation/userspace-api/gpio/gpio-v2-line-event-read.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_LINE_GET_VALUES_IOCTL: ***************************** GPIO_V2_LINE_GET_VALUES_IOCTL ***************************** Name ==== GPIO_V2_LINE_GET_VALUES_IOCTL - Get the values of requested lines. Synopsis ======== .. c:macro:: GPIO_V2_LINE_GET_VALUES_IOCTL ``int ioctl(in...
Documentation/userspace-api/gpio/gpio-v2-line-get-values-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_LINE_SET_CONFIG_IOCTL: ***************************** GPIO_V2_LINE_SET_CONFIG_IOCTL ***************************** Name ==== GPIO_V2_LINE_SET_CONFIG_IOCTL - Update the configuration of previously requested lines. Synopsis ======== .. c:macro:: GPIO_V2_LINE_SET_CONFIG_...
Documentation/userspace-api/gpio/gpio-v2-line-set-config-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_LINE_SET_VALUES_IOCTL: ***************************** GPIO_V2_LINE_SET_VALUES_IOCTL ***************************** Name ==== GPIO_V2_LINE_SET_VALUES_IOCTL - Set the values of requested output lines. Synopsis ======== .. c:macro:: GPIO_V2_LINE_SET_VALUES_IOCTL ``int i...
Documentation/userspace-api/gpio/gpio-v2-line-set-values-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. _GPIO_V2_LINEINFO_CHANGED_READ: ***************************** GPIO_V2_LINEINFO_CHANGED_READ ***************************** Name ==== GPIO_V2_LINEINFO_CHANGED_READ - Read line info changed events for watched lines from the chip. Synopsis ======== ``int read(int chip_fd, void *...
Documentation/userspace-api/gpio/gpio-v2-lineinfo-changed-read.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ==== GPIO ==== .. toctree:: :maxdepth: 1 Character Device Userspace API <chardev> Obsolete Userspace APIs <obsolete>
Documentation/userspace-api/gpio/index.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ============================ Obsolete GPIO Userspace APIs ============================ .. toctree:: :maxdepth: 1 Character Device Userspace API (v1) <chardev_v1> Sysfs Interface <sysfs>
Documentation/userspace-api/gpio/obsolete.rst
null
null
null
null
null
source
linux
GPIO Sysfs Interface for Userspace ================================== .. warning:: This API is obsoleted by the chardev.rst and the ABI documentation has been moved to Documentation/ABI/obsolete/sysfs-gpio. New developments should use the chardev.rst, and existing developments are encouraged to migrate as...
Documentation/userspace-api/gpio/sysfs.rst
null
null
null
null
null
source
linux
============================ Summary of CDROM ioctl calls ============================ - Edward A. Falk <efalk@google.com> November, 2004 This document attempts to describe the ioctl(2) calls supported by the CDROM layer. These are by-and-large implemented (as of Linux 2.6) in drivers/cdrom/cdrom.c and drivers/bloc...
Documentation/userspace-api/ioctl/cdrom.rst
null
null
null
null
null
source
linux
============================== Summary of `HDIO_` ioctl calls ============================== - Edward A. Falk <efalk@google.com> November, 2004 This document attempts to describe the ioctl(2) calls supported by the HD/IDE layer. These are by-and-large implemented (as of Linux 5.11) drivers/ata/libata-scsi.c. ioctl...
Documentation/userspace-api/ioctl/hdio.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ====== IOCTLs ====== .. toctree:: :maxdepth: 1 ioctl-number ioctl-decoding cdrom hdio
Documentation/userspace-api/ioctl/index.rst
null
null
null
null
null
source
linux
============================== Decoding an IOCTL Magic Number ============================== To decode a hex IOCTL code: Most architectures use this generic format, but check include/ARCH/ioctl.h for specifics, e.g. powerpc uses 3 bits to encode read/write and 13 bits for size. ====== ==============================...
Documentation/userspace-api/ioctl/ioctl-decoding.rst
null
null
null
null
null
source
linux
============= Ioctl Numbers ============= 19 October 1999 Michael Elizabeth Chastain <mec@shout.net> If you are adding new ioctl's to the kernel, you should use the _IO macros defined in <linux/ioctl.h>: ====== =========================== macro parameters ====== =========================== _IO n...
Documentation/userspace-api/ioctl/ioctl-number.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. _fdl: ****************************** GNU Free Documentation License ****************************** .. _fdl-preamble: 0. PREAMBLE =========== The purpose of this License is to make a manual, textbook, or other written document "free" in the sense of fr...
Documentation/userspace-api/media/fdl-appendix.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. _gen_errors: ******************* Generic Error Codes ******************* .. _gen-errors: .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| .. flat-table:: Generic error codes :header-rows: 0 :stub-columns: 0 :widths: 1 16 - - ``EAGAIN`` (a...
Documentation/userspace-api/media/gen-errors.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later ======== Glossary ======== .. note:: The goal of this section is to standardize the terms used within the media userspace API documentation. This is Work In Progress. .. Please keep the glossary entries in alphabetical order .. glossary::...
Documentation/userspace-api/media/glossary.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. include:: <isonum.txt> ######################################## Linux Media Infrastructure userspace API ######################################## This section contains the driver development information and Kernel APIs used by media devices. Please see: Documentation/admin-g...
Documentation/userspace-api/media/index.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 ============ Introduction ============ 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 output...
Documentation/userspace-api/media/intro.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. include:: <isonum.txt> .. _cec: ######################################### Part V - Consumer Electronics Control API ######################################### This part describes the CEC: Consumer Electronics Control .. toctree:: :caption: Table of ...
Documentation/userspace-api/media/cec/cec-api.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _cec-func-close: *********** cec close() *********** Name ==== cec-close - Close a cec device Synopsis ======== .. code-block:: c #include <unistd.h> .. c:function:: int close( int fd ) Arguments ========= ``fd`` File ...
Documentation/userspace-api/media/cec/cec-func-close.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _cec-func-ioctl: *********** cec ioctl() *********** Name ==== cec-ioctl - Control a cec device Synopsis ======== .. code-block:: c #include <sys/ioctl.h> ``int ioctl(int fd, int request, void *argp)`` Arguments ========= ...
Documentation/userspace-api/media/cec/cec-func-ioctl.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _cec-func-open: ********** cec open() ********** Name ==== cec-open - Open a cec device Synopsis ======== .. code-block:: c #include <fcntl.h> .. c:function:: int open( const char *device_name, int flags ) Arguments =======...
Documentation/userspace-api/media/cec/cec-func-open.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _cec-func-poll: ********** cec poll() ********** Name ==== cec-poll - Wait for some event on a file descriptor Synopsis ======== .. code-block:: c #include <sys/poll.h> .. c:function:: int poll( struct pollfd *ufds, unsigned...
Documentation/userspace-api/media/cec/cec-func-poll.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. _cec-user-func: ****************** Function Reference ****************** .. toctree:: :maxdepth: 1 cec-func-open cec-func-close cec-func-ioctl cec-func-poll cec-ioc-adap-g-caps cec-ioc-adap-g-log-addrs cec-ioc-adap-g-phy...
Documentation/userspace-api/media/cec/cec-funcs.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. _cec_header: **************** CEC uAPI Symbols **************** .. kernel-include:: include/uapi/linux/cec.h :generate-cross-refs: :exception-file: cec.h.rst.exceptions :toc: :warn-broken:
Documentation/userspace-api/media/cec/cec-header.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. _cec-intro: Introduction ============ 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...
Documentation/userspace-api/media/cec/cec-intro.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _CEC_ADAP_G_CAPS: ********************* ioctl CEC_ADAP_G_CAPS ********************* Name ==== CEC_ADAP_G_CAPS - Query device capabilities Synopsis ======== .. c:macro:: CEC_ADAP_G_CAPS ``int ioctl(int fd, CEC_ADAP_G_CAPS, struct ...
Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GPL-2.0 .. .. Copyright 2019 Google LLC .. .. c:namespace:: CEC .. _CEC_ADAP_G_CONNECTOR_INFO: ******************************* ioctl CEC_ADAP_G_CONNECTOR_INFO ******************************* Name ==== CEC_ADAP_G_CONNECTOR_INFO - Query HDMI connector information Synopsis ======== .. c:m...
Documentation/userspace-api/media/cec/cec-ioc-adap-g-conn-info.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _CEC_ADAP_LOG_ADDRS: .. _CEC_ADAP_G_LOG_ADDRS: .. _CEC_ADAP_S_LOG_ADDRS: **************************************************** ioctls CEC_ADAP_G_LOG_ADDRS and CEC_ADAP_S_LOG_ADDRS **************************************************** N...
Documentation/userspace-api/media/cec/cec-ioc-adap-g-log-addrs.rst
null
null
null
null
null
source
linux
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later .. c:namespace:: CEC .. _CEC_ADAP_PHYS_ADDR: .. _CEC_ADAP_G_PHYS_ADDR: .. _CEC_ADAP_S_PHYS_ADDR: **************************************************** ioctls CEC_ADAP_G_PHYS_ADDR and CEC_ADAP_S_PHYS_ADDR **************************************************** N...
Documentation/userspace-api/media/cec/cec-ioc-adap-g-phys-addr.rst
null
null
null
null
null