| /linux/Documentation/dev-tools/ |
| H A D | checkuapi.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 4 UAPI Checker 7 The UAPI checker (``scripts/check-uapi.sh``) is a shell script which 8 checks UAPI header files for userspace backwards-compatibility across 14 This section will describe the options with which ``check-uapi.sh`` 19 check-uapi.sh [-b BASE_REF] [-p PAST_REF] [-j N] [-l ERROR_LOG] [-i] [-q] [-v] 23 -b BASE_REF Base git reference to use for comparison. If unspecified or empty, 24 will use any dirty changes in tree to UAPI files. If there are no 26 -p PAST_REF Compare BASE_REF to PAST_REF (e.g. -p v6.1). If unspecified or empty, 29 -j JOBS Number of checks to run in parallel (default: number of CPU cores). [all …]
|
| /linux/samples/bpf/ |
| H A D | tcp_tos_reflect_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <uapi/linux/bpf.h> 11 #include <uapi/linux/tcp.h> 12 #include <uapi/linux/if_ether.h> 13 #include <uapi/linux/if_packet.h> 14 #include <uapi/linux/ip.h> 15 #include <uapi/linux/ipv6.h> 16 #include <uapi/linux/in.h> 26 char header[sizeof(struct ipv6hdr)]; in bpf_basertt() local 35 op = (int) skops->op; in bpf_basertt() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | libc-compat.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Compatibility interface for userspace libc header coordination: 6 * exclusion of UAPI structures and definitions in coordination with another 9 * This header is intended to solve the problem of UAPI definitions that 10 * conflict with userspace definitions. If a UAPI header has such conflicting 13 * * Synchronize the UAPI header and the libc headers so either one can be 20 * (a) Include libc-compat.h in the UAPI header. 21 * e.g. #include <linux/libc-compat.h> 24 * (b) In libc-compat.h add enough code to detect that the comflicting 25 * userspace libc header has been included first. [all …]
|
| /linux/scripts/ |
| H A D | check-uapi.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 3 # Script to check commits for UAPI backwards compatibility 5 set -o errexit 6 set -o pipefail 11 $name - check for UAPI header stability across Git commits 15 check against additional commit ranges with the -b and -p options. 17 The script will not check UAPI headers for architectures other than the one 20 Usage: $name [-b BASE_REF] [-p PAST_REF] [-j N] [-l ERROR_LOG] [-i] [-q] [-v] 23 -b BASE_REF Base git reference to use for comparison. If unspecified or empty, 24 will use any dirty changes in tree to UAPI files. If there are no [all …]
|
| H A D | bpf_doc.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright (C) 2018-2019 Netronome Systems, Inc. 109 @filename: name of file to parse, usually include/uapi/linux/bpf.h in the 151 # - "void" 152 # - "type name" 153 # - "type *name" 154 # - Same as above, with "const" and/or "struct" in front of type 155 # - "..." (undefined number of arguments, for bpf_trace_printk()) 241 if offset == -1: 396 Checks the number of helpers/syscalls documented within the header file [all …]
|
| /linux/tools/perf/trace/beauty/ |
| H A D | arch_errno_names.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 include_path="-I$toolsdir/include/uapi" 15 echo "$1" |sed -e 'y/- /__/' |tr '[[:upper:]]' '[[:lower:]]' 22 header="$toolsdir/arch/$arch/include/uapi/asm/errno.h" 23 if test -r "$header"; then 24 echo "$header" 26 echo "$toolsdir/include/uapi/asm-generic/errno.h" 48 $gcc $CFLAGS $include_path -E -dM -x c $asm_errno \ 49 |grep -hE '^#define[[:blank:]]+(E[^[:blank:]]+)[[:blank:]]+([[:digit:]]+).*' \ 51 |sort -t, -k2 -nu \ [all …]
|
| /linux/Documentation/netlink/ |
| H A D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 12 name-cap: 14 pattern: ^[0-9a-zA-Z-]+$ 18 len-or-define: 20 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 27 required: [ name, doc, attribute-sets, operations ] [all …]
|
| H A D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
| H A D | genetlink-c.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int, const name, or limit based on fixed-width type 18 # e.g. u8-min, u16-max, etc. 20 pattern: ^[0-9A-Za-z_-]+$ [all …]
|
| H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | Makefile | 1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 9 grep -oE '^LIBBPF_([0-9.]+)' $(VERSION_SCRIPT) | \ 10 sort -rV | head -n1 | cut -d'_' -f2) 14 MAKEFLAGS += --no-print-directory 56 INCLUDES = -I$(or $(OUTPUT),.) \ 57 -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi \ 58 -I$(srctree)/tools/arch/$(SRCARCH)/include 77 CFLAGS := -g -O2 81 override CFLAGS += -std=gnu89 82 override CFLAGS += $(EXTRA_WARNINGS) -Wno-switch-enum [all …]
|
| /linux/Documentation/userspace-api/netlink/ |
| H A D | c-code-gen.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 8 C code (uAPI, policies etc.). It also defines the additional properties 9 allowed in older families by the ``genetlink-c`` protocol level, 17 The upper case is used to denote literal values, e.g. ``$family-CMD`` 22 and with dashes (``-``) replaced by underscores (``_``). 25 appended (``do`` -> ``do_``). 30 ``c-family-name`` controls the name of the ``#define`` for the family 31 name, default is ``$family-FAMILY-NAME``. 33 ``c-version-name`` controls the name of the ``#define`` for the version 34 of the family, default is ``$family-FAMILY-VERSION``. [all …]
|
| /linux/rust/uapi/ |
| H A D | uapi_helper.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Header that contains the headers for which Rust UAPI bindings 9 #include <uapi/asm-generic/ioctl.h> 10 #include <uapi/drm/drm.h> 11 #include <uapi/drm/nova_drm.h> 12 #include <uapi/drm/panthor_drm.h> 13 #include <uapi/linux/android/binder.h> 14 #include <uapi/linux/mdio.h> 15 #include <uapi/linux/mii.h> 16 #include <uapi/linux/ethtool.h>
|
| /linux/tools/net/ynl/ |
| H A D | Makefile.deps | 1 # SPDX-License-Identifier: GPL-2.0 3 # Try to include uAPI headers from the kernel uapi/ path. 4 # Most code under tools/ requires the respective kernel uAPI headers 6 # All the family headers should be self-contained. We avoid the copying 7 # by selectively including just the uAPI header of the family directly 10 UAPI_PATH:=../../../../include/uapi/ 12 # scripts/headers_install.sh strips "_UAPI" from header guards so we 13 # need the explicit -D matching what's in /usr, to avoid multiple definitions. 15 get_hdr_inc=-D$(1) -include $(UAPI_PATH)/linux/$(2) 16 get_hdr_inc2=-D$(1) -D$(2) -include $(UAPI_PATH)/linux/$(3) [all …]
|
| /linux/drivers/android/binder/ |
| H A D | allocation.rs | 1 // SPDX-License-Identifier: GPL-2.0 15 uapi, 72 ) -> Self { in new() 85 fn size_check(&self, offset: usize, size: usize) -> Result { in size_check() 99 ) -> Result { in copy_into() 111 pub(crate) fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read() 119 pub(crate) fn write<T: ?Sized>(&self, offset: usize, obj: &T) -> Result { in write() 127 pub(crate) fn fill_zero(&self) -> Result { in fill_zero() 143 pub(crate) fn get_or_init_info(&mut self) -> &mut AllocationInfo { in get_or_init_info() 164 pub(crate) fn info_add_fd_reserve(&mut self, num_fds: usize) -> Result { in info_add_fd_reserve() [all …]
|
| /linux/Documentation/ |
| H A D | .renames.txt | 1 80211/cfg80211 driver-api/80211/cfg80211 2 80211/index driver-api/80211/index 3 80211/introduction driver-api/80211/introduction 4 80211/mac80211 driver-api/80211/mac80211 5 80211/mac80211-advanced driver-api/80211/mac80211-advanced 6 EDID/howto admin-guide/edid 7 PCI/picebus-howto PCI/pciebus-howto 8 RAS/address-translation admin-guide/RAS/address-translation 9 RAS/error-decoding admin-guide/RAS/error-decoding 10 RAS/ras admin-guide/RAS/error-decoding [all …]
|
| /linux/include/net/ |
| H A D | pfcp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <uapi/linux/if_ether.h> 8 #include <uapi/linux/ipv6.h> 10 #include <uapi/linux/udp.h> 11 #include <uapi/linux/ip.h> 18 /* PFCP protocol header */ 25 /* PFCP header flags */ 86 return dev->rtnl_link_ops && in netif_is_pfcp() 87 !strcmp(dev->rtnl_link_ops->kind, "pfcp"); in netif_is_pfcp()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | v4l2-isp.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _v4l2-isp: 11 are designed to allow extending them in a backward-compatible way. 17 single C structure that contains a header, followed by a binary buffer where 21 The :c:type:`v4l2_isp_params_buffer` structure defines the buffer header which 23 correctly populate the buffer header with the generic parameters format version 27 Each *ISP configuration block* is preceded by an header implemented by the 33 header fields (type, flags and size) and the block-specific parameters. 36 ----------------------------------------------- 40 bit in the block header's `flags` field. [all …]
|
| H A D | metafmt-arm-mali-c55.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 .. _v4l2-meta-fmt-mali-c55-params: 4 .. _v4l2-meta-fmt-mali-c55-stats: 15 :ref:`mali-c55 3a stats <mali-c55-3a-stats>` metadata capture video node, using 18 ``mali-c55-config.h``, so the structure can be obtained from the buffer by: 20 .. code-block:: C 30 The configuration parameters are passed to the :ref:`mali-c55 3a params 31 <mali-c55-3a-params>` metadata output video node, using the 33 sub-structs for each configurable area of the ISP, parameters for the Mali-C55 34 use the v4l2-isp parameters system, through which groups of parameters are [all …]
|
| H A D | metafmt-c3-isp.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR MIT) 4 .. _v4l2-meta-fmt-c3isp-stats: 5 .. _v4l2-meta-fmt-c3isp-params: 17 Those statistics are obtained from the "c3-isp-stats" metadata capture video nodes, 21 The statistics collected are Auto-white balance, 22 Auto-exposure and Auto-focus information. 29 The configuration parameters are passed to the c3-isp-params metadata output video node, 31 sub-structs for each configurable area of the ISP, parameters for the C3-ISP 38 blocks each block-specific struct embeds 45 .. code-block:: c [all …]
|
| /linux/include/sound/sof/ |
| H A D | header.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 13 #include <uapi/sound/sof/abi.h> 15 /** \addtogroup sof_uapi uAPI 16 * SOF uAPI specification. 21 * IPC messages have a prefixed 32 bit identifier made up as follows :- 26 * I is the ID number (16 bits) - monotonic and overflows 32 /* Global Message - Generic */ 37 /* Command Message - Generic */ 82 /* component runtime config - multiple different types */ 137 * Structure Header - Header for all IPC structures except command structs. [all …]
|
| /linux/rust/kernel/ |
| H A D | ioctl.rs | 1 // SPDX-License-Identifier: GPL-2.0 5 //! C header: [`include/asm-generic/ioctl.h`](srctree/include/asm-generic/ioctl.h) 13 const fn _IOC(dir: u32, ty: u32, nr: u32, size: usize) -> u32 { in _IOC() 14 build_assert!(dir <= uapi::_IOC_DIRMASK); in _IOC() 15 build_assert!(ty <= uapi::_IOC_TYPEMASK); in _IOC() 16 build_assert!(nr <= uapi::_IOC_NRMASK); in _IOC() 17 build_assert!(size <= (uapi::_IOC_SIZEMASK as usize)); in _IOC() 19 (dir << uapi::_IOC_DIRSHIFT) in _IOC() 20 | (ty << uapi::_IOC_TYPESHIFT) in _IOC() 21 | (nr << uapi::_IOC_NRSHIFT) in _IOC() [all …]
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_gem.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 10 #include <uapi/drm/pvr_drm.h> 32 * DOC: Flags for DRM_IOCTL_PVR_CREATE_BO (kernel-only) 34 * Kernel-only values allowed in &pvr_gem_object->flags. The majority of options 35 * for this field are specified in the UAPI header "pvr_drm.h" with a 37 * in ranges marked as "reserved" in the UAPI header), we drop the DRM prefix. 40 * To avoid potentially confusing gaps in the UAPI options, these kernel-only 43 * We use "reserved" to refer to bits defined here and not exposed in the UAPI. 47 * :PVR_BO_CPU_CACHED: By default, all GEM objects are mapped write-combined on the CPU. Set 63 /* Bits 2..0 are defined in the UAPI. */ [all …]
|
| /linux/include/linux/ |
| H A D | elf.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #include <uapi/linux/elf.h> 17 set_personality(PER_LINUX | (current->personality & (~PER_MASK))) 77 * NT_GNU_PROPERTY_TYPE_0 header: 78 * Keep this internal until/unless there is an agreed UAPI definition. 79 * pr_type values (GNU_PROPERTY_*) are public and defined in the UAPI header.
|
| /linux/Documentation/doc-guide/ |
| H A D | parse-headers.rst | 2 Including uAPI header files 5 Sometimes, it is useful to include header files and C example codes in 6 order to describe the userspace API and to generate cross-references 7 between the code and the documentation. Adding cross-references for 10 uAPI documentation in sync with the Kernel changes. 12 cross-references. It has to be called via Makefile, while building the 13 documentation. Please see ``Documentation/userspace-api/media/Makefile`` for an example 24 parse_headers.py - parse a C file, in order to identify functions, structs, 25 enums and defines and create cross-references to a Sphinx book. 30 parse-headers.py [-h] [-d] [-t] ``FILE_IN`` ``FILE_OUT`` ``FILE_RULES`` [all …]
|