Home
last modified time | relevance | path

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

12345678910>>...13

/linux/Documentation/dev-tools/
H A Dcheckuapi.rst1 .. 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 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 …]
/linux/include/uapi/linux/
H A 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 …]
/linux/scripts/
H A 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-Identifie
[all...]
H A Dcheck-uapi.sh2 # 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 DMakefile.headersinst1 # SPDX-License-Identifier: GPL-2.0
5 # All headers under include/uapi, include/generated/uapi,
6 # arch/<arch>/include/uapi and arch/<arch>/include/generated/uapi are
21 -include $(src)/Kbuild
25 src-subdirs := $(patsubst $(src)/%/,%,$(filter %/, $(wildcard $(src)/*/)))
26 gen-subdirs := $(patsubst $(gen)/%/,%,$(filter %/, $(wildcard $(gen)/*/)))
27 all-subdirs := $(sort $(src-subdirs) $(gen-subdirs))
29 src-headers := $(if $(src-subdirs), $(shell cd $(src) && find $(src-subdirs) -name '*.h'))
30 src-headers := $(filter-out $(no-export-headers), $(src-headers))
31 gen-headers := $(if $(gen-subdirs), $(shell cd $(gen) && find $(gen-subdirs) -name '*.h'))
[all …]
/linux/tools/net/ynl/
H A 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)
/linux/tools/lib/bpf/
H A 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
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/netlink/
H A 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)?$
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 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)?$
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 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)?$
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 …]
/linux/include/net/
H A Dpfcp.h1 /* 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/rust/uapi/
H A Duapi_helper.h1 /* 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/linux/mdio.h>
11 #include <uapi/linux/mii.h>
12 #include <uapi/linux/ethtool.h>
/linux/include/sound/sof/
H A 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 …]
/linux/drivers/gpu/drm/imagination/
H A Dpvr_gem.h1 /* 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 this
61 /* Bits 2..0 are defined in the UAPI. */
[all …]
/linux/include/linux/
H A 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.
/linux/tools/include/uapi/
H A DREADME18 $ ls -1 tools/perf/trace/beauty/*.sh | head -5
36 The tools/perf/check-headers.sh script, part of the tools/ build
41 check-headers.sh inform about the change to the perf tools hackers.
46 - Symbolic links and direct #includes: this was the original approach but
50 - Duplicate self-defined ABI headers like glibc: double the maintenance
51 burden, double the chance for mistakes, plus there's no tech-driven
56 - A software-enforced copy-on-write mechanism of kernel headers to
57 tooling, driven by non-fatal warnings on the tooling side build when
60 Warning: Kernel ABI header differences:
61 diff -u tools/include/uapi/drm/i915_drm.h include/uapi/drm/i915_drm.h
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2021-2022 Intel Corporation
6 #include <uapi/linux/if_ether.h>
7 #include <uapi/linux/if_arp.h>
8 #include <uapi/linux/icmp.h>
26 #include "iwl-mei.h"
41 if (!is_multicast_ether_addr(ethhdr->h_dest) || in iwl_mei_rx_filter_eth()
42 is_broadcast_ether_addr(ethhdr->h_dest)) in iwl_mei_rx_filter_eth()
45 for (filt = &filters->eth_filters[0]; in iwl_mei_rx_filter_eth()
46 filt < &filters->eth_filters[0] + ARRAY_SIZE(filters->eth_filters); in iwl_mei_rx_filter_eth()
[all …]
/linux/arch/x86/include/asm/
H A Dsigcontext.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* This is a legacy header - all kernel code includes <uapi/asm/sigcontext.h> directly. */
7 #include <uapi/asm/sigcontext.h>
/linux/arch/arc/include/uapi/asm/
H A Dsetup.h2 * setup.h is part of userspace header ABI so UAPI scripts have to generate it
3 * even if there's nothing to export - causing empty <uapi/asm/setup.h>
/linux/Documentation/userspace-api/media/dvb/
H A Dheaders.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 Digital TV uAPI header files
7 Digital TV uAPI headers
10 .. kernel-include:: $BUILDDIR/frontend.h.rst
12 .. kernel-include:: $BUILDDIR/dmx.h.rst
14 .. kernel-include:: $BUILDDIR/ca.h.rst
16 .. kernel-include:: $BUILDDIR/net.h.rst
/linux/tools/testing/selftests/sgx/
H A Ddefines.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright(c) 2016-20 Intel Corporation.
12 #define PAGE_MASK (~(PAGE_SIZE - 1))
21 #include "../../../../arch/x86/include/uapi/asm/sgx.h"
40 struct encl_op_header header; member
45 struct encl_op_header header; member
50 struct encl_op_header header; member
56 struct encl_op_header header; member
62 struct encl_op_header header; member
69 struct encl_op_header header; member
[all …]
/linux/include/rdma/
H A Drdma_netlink.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <uapi/rdma/rdma_netlink.h>
30 * index _index. Since the client indexes were setup in a uapi header as an
39 MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))
44 * @cb_table: A table for op->callback
58 * @nlh: Pointer to put the header of the new netlink message.
70 * @nlh: Header of the netlink message to append the attribute to.
118 * @port_num: the port number which triggered the event - 0 if unused
134 #define MODULE_ALIAS_RDMA_LINK(type) MODULE_ALIAS("rdma-link-" type)
135 #define MODULE_ALIAS_RDMA_CLIENT(type) MODULE_ALIAS("rdma-client-" type)
/linux/tools/perf/
H A Dcheck-headers.sh2 # SPDX-License-Identifier: GPL-2.0
7 declare -a FILES
9 "include/uapi/linux/const.h"
10 "include/uapi/drm/drm.h"
11 "include/uapi/drm/i915_drm.h"
12 "include/uapi/linux/bits.h"
13 "include/uapi/linux/fadvise.h"
14 "include/uapi/linux/fscrypt.h"
15 "include/uapi/linux/kcmp.h"
16 "include/uapi/linux/kvm.h"
[all …]
/linux/Documentation/doc-guide/
H A Dparse-headers.rst2 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
25 parse_headers.pl - parse a C file, in order to identify functions, structs,
26 enums and defines and create cross-references to a Sphinx book.
35 Where <options> can be: --debug, --help or --usage.
[all …]

12345678910>>...13