/linux/kernel/kcsan/ |
H A D | permissive.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Special rules for ignoring entire classes of data-racy memory accesses. None 4 * of the rules here imply that such data races are generally safe! 6 * All rules in this file can be configured via CONFIG_KCSAN_PERMISSIVE. Keep 20 * Access ignore rules based on address. 28 * Data-racy bitops on current->flags are too common, ignore completely in kcsan_ignore_address() 31 return ptr == ¤t->flags; in kcsan_ignore_address() 35 * Data race ignore rules based on access type and value change patterns. 44 * Rules here are only for plain read accesses, so that we still report in kcsan_ignore_data_race() 45 * data races between plain read-write accesses. in kcsan_ignore_data_race() [all …]
|
/linux/Documentation/filesystems/ |
H A D | directory-locking.rst | 7 kinds of locks - per-inode (->i_rwsem) and per-filesystem 8 (->s_vfs_rename_mutex). 10 When taking the i_rwsem on multiple non-directory objects, we 20 1. read access. Locking rules: 24 2. object creation. Locking rules: 28 3. object removal. Locking rules: 34 4. link creation. Locking rules: 40 5. rename that is _not_ cross-directory. Locking rules: 45 The source needs to be locked if it's a non-directory, target - if it's 46 a non-directory or about to be removed. [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_matchall.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2019-2022 Marvell International Ltd. All rights reserved */ 21 err = prestera_flower_prio_get(block, f->common.chain_index, in prestera_mall_prio_check() 23 if (err == -ENOENT) in prestera_mall_prio_check() 28 NL_SET_ERR_MSG(f->common.extack, "Failed to get flower priorities"); in prestera_mall_prio_check() 32 if (f->common.prio <= flower_prio_max && !block->ingress) { in prestera_mall_prio_check() 33 NL_SET_ERR_MSG(f->common.extack, "Failed to add in front of existing flower rules"); in prestera_mall_prio_check() 34 return -EOPNOTSUPP; in prestera_mall_prio_check() 36 if (f->common.prio >= flower_prio_min && block->ingress) { in prestera_mall_prio_check() 37 NL_SET_ERR_MSG(f->common.extack, "Failed to add behind of existing flower rules"); in prestera_mall_prio_check() [all …]
|
H A D | prestera_flower.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 19 prestera_acl_ruleset_put(template->ruleset); in prestera_flower_template_free() 20 list_del(&template->list); in prestera_flower_template_free() 29 list_for_each_entry_safe(template, tmp, &block->template_list, list) in prestera_flower_template_cleanup() 41 if (act->chain_index <= chain_index) in prestera_flower_parse_goto_action() 43 return -EINVAL; in prestera_flower_parse_goto_action() 45 if (rule->re_arg.jump.valid) in prestera_flower_parse_goto_action() 46 return -EEXIST; in prestera_flower_parse_goto_action() 48 ruleset = prestera_acl_ruleset_get(block->sw->acl, block, in prestera_flower_parse_goto_action() 49 act->chain_index); in prestera_flower_parse_goto_action() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_matchall.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2017-2020 Mellanox Technologies. All rights reserved */ 18 list_for_each_entry(mall_entry, &block->mall.list, list) in mlxsw_sp_mall_entry_find() 19 if (mall_entry->cookie == cookie) in mlxsw_sp_mall_entry_find() 30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() 36 if (!mall_entry->mirror.to_dev) { in mlxsw_sp_mall_port_mirror_add() 38 return -EINVAL; in mlxsw_sp_mall_port_mirror_add() 41 agent_parms.to_dev = mall_entry->mirror.to_dev; in mlxsw_sp_mall_port_mirror_add() 42 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->mirror.span_id, in mlxsw_sp_mall_port_mirror_add() 50 mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | main.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ 89 * struct nfp_fl_tunnel_offloads - priv data for tunnel offloads 109 * struct nfp_tun_neigh_lag - lag info 119 * struct nfp_tun_neigh - basic neighbour data 122 * @port_id: NFP port to output packet on - associated with source IPv4 131 * struct nfp_tun_neigh_ext - extended neighbour data 143 * struct nfp_tun_neigh_v4 - neighbour/route entry on the NFP for IPv4 146 * @common: Neighbour/route common info 153 struct nfp_tun_neigh common; member [all …]
|
H A D | conntrack.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 30 * get_hashentry() - Wrapper around hashtable lookup. 51 return ERR_PTR(-ENOMEM); in get_hashentry() 59 struct flow_dissector *dissector = rule->match.dissector; in is_pre_ct_flow() 64 if (dissector->used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CT)) { in is_pre_ct_flow() 66 if (ct.key->ct_state) in is_pre_ct_flow() 70 if (flow->common.chain_index) in is_pre_ct_flow() 73 flow_action_for_each(i, act, &flow->rule->action) { in is_pre_ct_flow() 74 if (act->id == FLOW_ACTION_CT) { in is_pre_ct_flow() 78 if ((!act->ct.action || act->ct.action == TCA_CT_ACT_NAT)) in is_pre_ct_flow() [all …]
|
/linux/drivers/gpu/drm/etnaviv/ |
H A D | state_blt.xml.h | 6 This file was generated by the rules-ng-ng headergen tool in this git repository: 7 http://0x04.net/cgit/index.cgi/rules-ng-ng 8 git clone git://0x04.net/rules-ng-ng 10 The rules-ng-ng source files this header was generated from are: 11 - state.xml ( 29355 bytes, from 2024-01-19 10:18:54) 12 - common.xml ( 35664 bytes, from 2023-12-06 10:55:32) 13 - common_3d.xml ( 15069 bytes, from 2023-11-22 10:05:24) 14 - state_hi.xml ( 35854 bytes, from 2023-12-11 15:50:17) 15 - copyright.xml ( 1597 bytes, from 2016-11-10 13:58:32) 16 - state_2d.xml ( 52271 bytes, from 2023-06-02 12:35:03) [all …]
|
/linux/Documentation/dev-tools/ |
H A D | clang-format.rst | 3 clang-format 6 ``clang-format`` is a tool to format C/C++/... code according to 7 a set of rules and heuristics. Like most tools, it is not perfect 10 ``clang-format`` can be used for several purposes: 12 - Quickly reformat a block of code to the kernel style. Specially useful 15 - Spot style mistakes, typos and possible improvements in files 18 - Help you follow the coding style rules, specially useful for those 22 Its configuration file is ``.clang-format`` in the root of the kernel tree. 23 The rules contained there try to approximate the most common kernel 24 coding style. They also try to follow :ref:`Documentation/process/coding-style.rst <codingstyle>` [all …]
|
H A D | kcsan.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 relies on compile-time instrumentation, and uses a watchpoint-based sampling 12 ----- 30 BUG: KCSAN: data-race in test_kernel_read / test_kernel_write 44 value changed: 0x00000000000009a6 -> 0x00000000000009b2 47 CPU: 6 PID: 488 Comm: access_thread Not tainted 5.12.0-rc2+ #1 48 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 56 The other less common type of data race report looks like this:: 59 BUG: KCSAN: data-race in test_kernel_rmw_array+0x71/0xd0 67 value changed: 0x0000000000002328 -> 0x0000000000002329 [all …]
|
/linux/drivers/net/netdevsim/ |
H A D | fib.c | 6 * June 1991 as shown in the file COPYING in the top-level directory of this 42 struct nsim_fib_entry rules; member 82 struct nsim_fib_rt common; member 89 struct nsim_fib_rt common; member 143 entry = &fib_data->ipv4.fib; in nsim_fib_get_val() 146 entry = &fib_data->ipv4.rules; in nsim_fib_get_val() 149 entry = &fib_data->ipv6.fib; in nsim_fib_get_val() 152 entry = &fib_data->ipv6.rules; in nsim_fib_get_val() 155 entry = &fib_data->nexthops; in nsim_fib_get_val() 161 return max ? entry->max : atomic64_read(&entry->num); in nsim_fib_get_val() [all …]
|
/linux/drivers/gpu/drm/ci/ |
H A D | gitlab-ci.yml | 2 DRM_CI_PROJECT_PATH: &drm-ci-project-path mesa/mesa 3 DRM_CI_COMMIT_SHA: &drm-ci-commit-sha c6a9a9c3bce90923f7700219354e0b6e5a3c9ba6 6 TARGET_BRANCH: drm-next 10 DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/mesa/deqp-runner.git 13 FDO_UPSTREAM_REPO: helen.fornazier/linux # The repo where the git-archive daily runs 14 MESA_TEMPLATES_COMMIT: &ci-templates-commit d5aa3941aa03c2f716595116354fb81eb8012acb 16 CI_PRE_CLONE_SCRIPT: |- 17 set -o xtrace 18 …-L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${DRM_CI_PROJECT_URL}/-/raw/${DRM_CI_COMMIT… 19 bash download-git-cache.sh [all …]
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 switch (st->admin->vtype) { in lan966x_tc_is_known_etype() 37 NL_SET_ERR_MSG_MOD(st->fco->common.extack, in lan966x_tc_is_known_etype() 48 struct netlink_ext_ack *extack = st->fco->common.extack; in lan966x_tc_flower_handler_control_usage() 52 flow_rule_match_control(st->frule, &match); in lan966x_tc_flower_handler_control_usage() 53 if (match.mask->flags & FLOW_DIS_IS_FRAGMENT) { in lan966x_tc_flower_handler_control_usage() 54 if (match.key->flags & FLOW_DIS_IS_FRAGMENT) in lan966x_tc_flower_handler_control_usage() 55 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage() 59 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage() 66 if (match.mask->flags & FLOW_DIS_FIRST_FRAG) { in lan966x_tc_flower_handler_control_usage() [all …]
|
/linux/Documentation/sound/designs/ |
H A D | tracepoints.rst | 19 ------------------------------------ 25 ----------------------------------------------------- 53 - SNDRV_PCM_HW_PARAM_ACCESS 54 - SNDRV_PCM_HW_PARAM_FORMAT 55 - SNDRV_PCM_HW_PARAM_SUBFORMAT 61 - SNDRV_PCM_HW_PARAM_SAMPLE_BITS 62 - SNDRV_PCM_HW_PARAM_FRAME_BITS 63 - SNDRV_PCM_HW_PARAM_CHANNELS 64 - SNDRV_PCM_HW_PARAM_RATE 65 - SNDRV_PCM_HW_PARAM_PERIOD_TIME [all …]
|
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_flower.c | 1 // SPDX-License-Identifier: GPL-2.0 12 list_for_each_entry(rule, &priv->flow_block.rules, list) in sja1105_rule_find() 13 if (rule->cookie == cookie) in sja1105_rule_find() 24 if (!priv->flow_block.l2_policer_used[i]) in sja1105_find_free_l2_policer() 27 return -1; in sja1105_find_free_l2_policer() 38 struct dsa_switch *ds = priv->ds; in sja1105_setup_bcast_policer() 46 return -ENOMEM; in sja1105_setup_bcast_policer() 48 rule->cookie = cookie; in sja1105_setup_bcast_policer() 49 rule->type = SJA1105_RULE_BCAST_POLICER; in sja1105_setup_bcast_policer() 50 rule->bcast_pol.sharindx = sja1105_find_free_l2_policer(priv); in sja1105_setup_bcast_policer() [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-cr0014114.txt | 1 Crane Merchandising System - cr0014114 LED driver 2 ------------------------------------------------- 8 - compatible: "crane,cr0014114" 10 Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt 11 apply. In particular, "reg" and "spi-max-frequency" properties must be given. 13 LED sub-node properties: 14 - function : 15 see Documentation/devicetree/bindings/leds/common.txt 16 - color : 17 see Documentation/devicetree/bindings/leds/common.txt [all …]
|
H A D | leds-spi-byte.txt | 4 - one LED is controlled by a single byte on MOSI 5 - the value of the byte gives the brightness between two values (lowest to 7 - no return value is necessary (no MISO signal) 16 configured in a sub-node in the device node. 19 - compatible: should be one of 20 * "ubnt,acb-spi-led" microcontroller (SONiX 8F26E611LA) based device 23 Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt 26 LED sub-node properties: 27 - label: 28 see Documentation/devicetree/bindings/leds/common.txt [all …]
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | blkio-controller.rst | 22 ----------------------------- 33 mount -t cgroup -o blkio none /sys/fs/cgroup/blkio 45 # dd iflag=direct if=/mnt/common/zerofile of=/dev/null bs=4K count=1024 98 -------------------------------- 106 see Documentation/block/bfq-iosched.rst. 110 weight. For more details, see Documentation/block/bfq-iosched.rst. 152 are further divided by the type of operation - read or write, sync 159 are further divided by the type of operation - read or write, sync 173 the type of operation - read or write, sync or async. First two fields 186 (there might be a time lag here due to re-ordering of requests by the [all …]
|
/linux/Documentation/userspace-api/gpio/ |
H A D | gpio-get-linehandle-ioctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 gpio-v2-get-line-ioctl.rst. 16 GPIO_GET_LINEHANDLE_IOCTL - Request a line or lines from the kernel. 55 .. _gpio-get-linehandle-config-rules: 57 Configuration Rules 58 ------------------- 60 The following configuration rules apply: 65 line is requested "as-is" to allow reading of the line value without altering 71 If none are set then the line is assumed push-pull. 80 .. _gpio-get-linehandle-config-support: [all …]
|
H A D | gpio-get-lineevent-ioctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 gpio-v2-get-line-ioctl.rst. 16 GPIO_GET_LINEEVENT_IOCTL - Request a line with edge detection from the kernel. 42 described in gpio-lineevent-data-read.rst. 54 As with the :ref:`line handle<gpio-get-linehandle-config-support>`, the 59 Configuration Rules 60 ------------------- 62 The following configuration rules apply: 83 On error -1 and the ``errno`` variable is set appropriately. 84 Common error codes are described in error-codes.rst.
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-css | 3 Contact: linux-s390@vger.kernel.org 9 Contact: linux-s390@vger.kernel.org 16 Contact: linux-s390@vger.kernel.org 21 Note: This is an I/O-subchannel specific attribute. 22 Users: s390-tools, HAL 26 Contact: linux-s390@vger.kernel.org 28 channel subsystem when last queried by the common I/O 32 Note: This is an I/O-subchannel specific attribute. 33 Users: s390-tools, HAL 37 Contact: linux-s390@vger.kernel.org [all …]
|
/linux/scripts/package/debian/ |
H A D | rules | 1 #!/usr/bin/make -f 2 # SPDX-License-Identifier: GPL-2.0-only 4 # in case debian/rules is executed directly 7 include debian/rules.vars 9 ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))) 11 MAKEFLAGS += -j$(NUMJOBS) 24 revision = $(lastword $(subst -, ,$(shell dpkg-parsechangelog -S Version))) 25 CROSS_COMPILE ?= $(filter-out $(DEB_BUILD_GNU_TYPE)-, $(DEB_HOST_GNU_TYPE)-) 26 make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) KBUILD_BUILD_VERSION=$(revision) $(addprefi… 28 binary-targets := $(addprefix binary-, image image-dbg headers libc-dev) [all …]
|
/linux/Documentation/networking/ |
H A D | representors.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 used to control internal switching on SmartNICs. For the closely-related port 10 representors on physical (multi-port) switches, see 14 ---------- 16 Since the mid-2010s, network cards have started offering more complex 17 virtualisation capabilities than the legacy SR-IOV approach (with its simple 18 MAC/VLAN-based switching model) can support. This led to a desire to offload 19 software-defined networks (such as OpenVSwitch) to these NICs to specify the 24 virtual switches and IOV devices. Just as each physical port of a Linux- 42 ----------- [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
H A D | kconfig.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 20 | ports to Bridge and offloading rules for traffic between such ports. 34 | built-in into mlx5_core.ko. 39 …g (DCB) Support <https://enterprise-support.nvidia.com/s/article/howto-auto-config-pfc-and-ets-on-… 53 | Flow-based classifiers, such as those registered through 54 | `tc-flower(8)`, are processed by the device, rather than the 61 | Enables Hardware-accelerated receive flow steering (arfs) support, and ntuple filtering. 62 | https://enterprise-support.nvidia.com/s/article/howto-configure-arfs-on-connectx-4 67 | Enables :ref:`IPSec XFRM cryptography-offload acceleration <xfrm_device>`. 72 | Build support for MACsec cryptography-offload acceleration in the NIC. [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-flower.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include "dpaa2-switch.h" 15 struct flow_dissector *dissector = rule->match.dissector; in dpaa2_switch_flower_parse_key() 16 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_flower_parse_key() 19 if (dissector->used_keys & in dpaa2_switch_flower_parse_key() 30 return -EOPNOTSUPP; in dpaa2_switch_flower_parse_key() 33 acl_h = &acl_key->match; in dpaa2_switch_flower_parse_key() 34 acl_m = &acl_key->mask; in dpaa2_switch_flower_parse_key() 37 return -EOPNOTSUPP; in dpaa2_switch_flower_parse_key() 43 acl_h->l3_protocol = match.key->ip_proto; in dpaa2_switch_flower_parse_key() [all …]
|