Home
last modified time | relevance | path

Searched +full:uapi +full:- +full:header (Results 1 – 25 of 636) sorted by relevance

12345678910>>...26

/kernel/linux/linux-5.10/Documentation/userspace-api/
Diommu.rst1 .. SPDX-License-Identifier: GPL-2.0
8 IOMMU UAPI is used for virtualization cases where communications are
23 supported user-kernel APIs are as follows:
25 1. Bind/Unbind guest PASID (e.g. Intel VT-d)
35 1. Emulated and para-virtualised vIOMMUs
36 2. Multiple vendors (Intel VT-d, ARM SMMU, etc.)
37 3. Extensions to the UAPI shall not break existing userspace
41 Although the data structures defined in IOMMU UAPI are self-contained,
42 there are no user API functions introduced. Instead, IOMMU UAPI is
46 -----------------------------
[all …]
/kernel/linux/linux-6.6/Documentation/userspace-api/
Diommu.rst1 .. SPDX-License-Identifier: GPL-2.0
8 IOMMU UAPI is used for virtualization cases where communications are
23 supported user-kernel APIs are as follows:
25 1. Bind/Unbind guest PASID (e.g. Intel VT-d)
35 1. Emulated and para-virtualised vIOMMUs
36 2. Multiple vendors (Intel VT-d, ARM SMMU, etc.)
37 3. Extensions to the UAPI shall not break existing userspace
41 Although the data structures defined in IOMMU UAPI are self-contained,
42 there are no user API functions introduced. Instead, IOMMU UAPI is
46 -----------------------------
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dtcp_tos_reflect_kern.c1 // 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 …]
/kernel/linux/linux-6.6/samples/bpf/
Dtcp_tos_reflect_kern.c1 // 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 …]
/kernel/linux/linux-5.10/scripts/
Dheaders_install.sh2 # SPDX-License-Identifier: GPL-2.0
4 if [ $# -ne 2 ]
8 echo "Prepares kernel header files for use by user space, by removing"
13 echo "INFILE: header file to operate on"
14 echo "OUTFILE: output file which the processed header is written to"
24 trap 'rm -f $OUTFILE $TMPFILE' EXIT
26 # SPDX-License-Identifier with GPL variants must have "WITH Linux-syscall-note"
27 if [ -n "$(sed -n -e "/SPDX-License-Identifier:.*GPL-/{/WITH Linux-syscall-note/!p}" $INFILE)" ]; t…
28 echo "error: $INFILE: missing \"WITH Linux-syscall-note\" for SPDX-License-Identifier" >&2
32 sed -E -e '
[all …]
/kernel/linux/linux-6.6/scripts/
Dheaders_install.sh2 # SPDX-License-Identifier: GPL-2.0
4 if [ $# -ne 2 ]
8 echo "Prepares kernel header files for use by user space, by removing"
13 echo "INFILE: header file to operate on"
14 echo "OUTFILE: output file which the processed header is written to"
24 trap 'rm -f $OUTFILE $TMPFILE' EXIT
26 # SPDX-License-Identifier with GPL variants must have "WITH Linux-syscall-note"
27 if [ -n "$(sed -n -e "/SPDX-License-Identifier:.*GPL-/{/WITH Linux-syscall-note/!p}" $INFILE)" ]; t…
28 echo "error: $INFILE: missing \"WITH Linux-syscall-note\" for SPDX-License-Identifier" >&2
32 sed -E -e '
[all …]
/kernel/linux/linux-5.10/tools/lib/bpf/
DMakefile1 # 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)
13 MAKEFLAGS += --no-print-directory
66 INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi
67 FEATURE_CHECK_CFLAGS-bpf = $(INCLUDES)
72 ifeq ($(filter-out $(NON_CHECK_FEAT_TARGETS),$(MAKECMDGOALS)),)
102 CFLAGS := -g -O2
106 override CFLAGS += $(EXTRA_WARNINGS) -Wno-switch-enum
107 override CFLAGS += -Werror -Wall
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dlibc-compat.h1 /* 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 …]
/kernel/linux/linux-6.6/include/uapi/linux/
Dlibc-compat.h1 /* 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 …]
/kernel/linux/linux-6.6/tools/net/ynl/
DMakefile.deps1 # 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)
/kernel/linux/linux-6.6/Documentation/netlink/
Dnetlink-raw.yaml1 # 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
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
31 enum: [ netlink-raw ] # Trim
32 # Start netlink-raw
34 description: Protocol number to use for netlink-raw
[all …]
Dgenetlink-legacy.yaml1 # 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
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
35 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
36 uapi-header:
37 description: Path to the uAPI header, default is linux/${family-name}.h
[all …]
Dgenetlink-c.yaml1 # 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)?$
21 required: [ name, doc, attribute-sets, operations ]
35 enum: [ genetlink, genetlink-c ]
36 uapi-header:
37 description: Path to the uAPI header, default is linux/${family-name}.h
[all …]
Dgenetlink.yaml1 # 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
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
36 uapi-header:
37 description: Path to the uAPI header, default is linux/${family-name}.h
50 header:
[all …]
/kernel/linux/linux-6.6/tools/perf/trace/beauty/
Darch_errno_names.sh2 # 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 …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dcompiler.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
24 * Upstream uapi headers refer to <linux/compiler.h> but there is
25 * no such uapi file. We've sent this upstream, and are optimistically
27 * a scrubbed header from external/kernel-headers when possible.
30 * non-uapi <linux/compiler.h>. That's fine for building bionic too.
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
Dcompiler.h4 *** This header was automatically generated from a Linux kernel header
7 *** structures, and macros generated from the original header, and thus,
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
24 * Upstream uapi headers refer to <linux/compiler.h> but there is
25 * no such uapi file. We've sent this upstream, and are optimistically
27 * a scrubbed header from external/kernel-headers when possible.
30 * non-uapi <linux/compiler.h>. That's fine for building bionic too.
/kernel/linux/linux-6.6/tools/lib/bpf/
DMakefile1 # 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
63 INCLUDES = -I$(or $(OUTPUT),.) \
64 -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi
83 CFLAGS := -g -O2
87 override CFLAGS += -std=gnu89
88 override CFLAGS += $(EXTRA_WARNINGS) -Wno-switch-enum
89 override CFLAGS += -Werror -Wall
[all …]
/kernel/linux/linux-5.10/tools/perf/trace/beauty/
Darch_errno_names.sh2 # SPDX-License-Identifier: GPL-2.0
11 include_path="-I$toolsdir/include/uapi"
15 echo "$1" |sed -e 'y/- /__/' |tr '[[:upper:]]' '[[:lower:]]'
21 local header
23 header="$toolsdir/arch/$arch/include/uapi/asm/errno.h"
24 if test -r "$header"; then
25 echo "$header"
27 echo "$toolsdir/include/uapi/asm-generic/errno.h"
60 $gcc $CFLAGS $include_path -E -dM -x c $asm_errno \
61 |grep -hE '^#define[[:blank:]]+(E[^[:blank:]]+)[[:blank:]]+([[:digit:]]+).*' \
[all …]
/kernel/linux/linux-6.6/Documentation/userspace-api/netlink/
Dc-code-gen.rst1 .. 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 …]
/kernel/linux/linux-6.6/rust/kernel/
Dioctl.rs1 // SPDX-License-Identifier: GPL-2.0
5 //! C header: [`include/asm-generic/ioctl.h`](../../../../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 …]
/kernel/linux/linux-5.10/include/sound/sof/
Dheader.h1 /* 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 */
81 /* component runtime config - multiple different types */
131 * Structure Header - Header for all IPC structures except command structs.
[all …]
/kernel/linux/linux-5.10/include/linux/
Delf.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <uapi/linux/elf.h>
17 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
67 * NT_GNU_PROPERTY_TYPE_0 header:
68 * Keep this internal until/unless there is an agreed UAPI definition.
69 * pr_type values (GNU_PROPERTY_*) are public and defined in the UAPI header.
/kernel/linux/linux-6.6/include/sound/sof/
Dheader.h1 /* 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 …]
/kernel/linux/linux-6.6/include/linux/
Delf.h1 /* 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.

12345678910>>...26