| /linux/tools/testing/selftests/net/ |
| H A D | fib_nexthops.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # veth1 <---|---> veth2 | 8 # | veth5 <--|--> veth6 172.16.101.1 9 # veth3 <---|---> veth4 | 2001:db8:101::1 19 # Kselftest framework requirement - SKIP code is 4. 22 # all tests in this script. Can be overridden with -t option 75 if [ ${rc} -eq ${expected} ]; then 76 printf "TEST: %-60s [ OK ]\n" "${msg}" 79 if [[ $rc -eq $ksft_skip ]]; then 80 [[ $ret -eq 0 ]] && ret=$ksft_skip [all …]
|
| H A D | test_vxlan_fdb_changelink.sh | 2 # SPDX-License-Identifier: GPL-2.0 13 local N=$(bridge fdb sh dev vx | grep 00:00:00:00:00:00 | wc -l) 19 # Check FDB default-remote handling across "ip link set". 32 log_test 'FDB default-remote handling across "ip link set"' 40 echo "group $addr" 59 netstat - [all...] |
| H A D | test_vxlan_vnifiltering.sh | 2 # SPDX-License-Identifier: GPL-2.0 13 # +--------------------------------+ +------------------------------------+ 14 # | vm-11 netns | | vm-21 netns | 16 # |+------------+ +-------------+ | |+-------------+ +----------------+ | 17 # ||veth-11.10 | |veth-11.20 | | ||veth-21.10 | | veth-21.20 | | 19 # |+------|-----+ +|------------+ | |+-----------|-+ +---|------------+ | 21 # | | | | | +------------+ | 22 # | +------------+ | | | veth-21 | | 23 # | | veth-11 | | | | | | 24 # | | | | | +-----|------+ | [all …]
|
| /linux/fs/configfs/ |
| H A D | dir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dir.c - Operations for configfs directories. 39 * subsys->su_mutex is held. 48 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_d_iput() 54 * Set sd->s_dentry to null only when this dentry is the one in configfs_d_iput() 56 * run just after configfs_lookup and set sd->s_dentry to in configfs_d_iput() 59 if (sd->s_dentry == dentry) in configfs_d_iput() 60 sd->s_dentry = NULL; in configfs_d_iput() 75 * Helpers to make lockdep happy with our recursive locking of default groups' 77 * We put default groups i_mutexes in separate classes according to their depth [all …]
|
| /linux/Documentation/scheduler/ |
| H A D | sched-rt-group.rst | 2 Real-Time group scheduling 12 2.1 System-wide settings 13 2.2 Default behaviour 33 are real-time processes). 40 --------------- 42 Real-time scheduling is all about determinism, a group has to be able to rely on 44 multiple groups of real-time tasks, each group must be assigned a fixed portion 45 of the CPU time available. Without a minimum guarantee a real-time group can 50 ---------------- 53 in a given period. We allocate this "run time" for each real-time group which [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-iommu_groups | 5 Description: /sys/kernel/iommu_groups/ contains a number of sub- 6 directories, each representing an IOMMU group. The 7 name of the sub-directory matches the iommu_group_id() 8 for the group, which is an integer value. Within each 10 links to the sysfs devices contained in this group. 11 The group directory also optionally contains a "name" 13 common name for the group. 23 output direct-mapped, MSI, non mappable regions. Each 29 USB devices it is now exposed as "direct-relaxable" instead 37 Description: /sys/kernel/iommu_groups/<grp_id>/type shows the type of default [all …]
|
| /linux/include/linux/ |
| H A D | fsnotify_backend.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 60 #define FS_PRE_ACCESS 0x00100000 /* Pre-content access hook */ 80 * Directory entry modification events - reported only to directory 93 /* Pre-content events can be used to fill file content */ 139 * Each group much define these ops. The fsnotify infrastructure will call 140 * these operations for each relevant group. 142 * handle_event - main call for a group to handle an fs event 143 * @group: group to notify 147 * @dir: optional directory associated with event - 152 * @iter_info: array of marks from this group that are interested in the event [all …]
|
| H A D | genl_magic_func.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #define GENL_mc_group(group) argument 45 .len = maxlen - (nla_type == NLA_NUL_STRING) }, 84 if (len && val[len-1] == '\0') in dprint_array() 85 len--; in dprint_array() 88 default: in dprint_array() 105 dprint_field(dir, nla_type, #name, &s->name); \ 116 s->name, s->name ## _len); \ 143 const int maxtype = ARRAY_SIZE(s_name ## _nl_policy)-1; \ 144 struct nlattr *tla = info->attrs[tag_number]; \ [all …]
|
| /linux/drivers/counter/ |
| H A D | counter-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include "counter-sysfs.h" 28 * struct counter_attribute - Counter sysfs attribute 30 * @l: node to add Counter attribute to attribute group list 48 * struct counter_attribute_group - container for attribute group 49 * @name: name of the attribute group 62 [COUNTER_FUNCTION_PULSE_DIRECTION] = "pulse-direction", 90 [COUNTER_COUNT_MODE_NON_RECYCLE] = "non-recycle", 91 [COUNTER_COUNT_MODE_MODULO_N] = "modulo-n", 93 [COUNTER_COUNT_MODE_HARDWARE_RETRIGGERABLE_ONESHOT] = "hardware retriggerable one-shot", [all …]
|
| /linux/Documentation/networking/ |
| H A D | smc-sysctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 autocorking_size - INTEGER 23 Default: 64K 25 smcr_buf_type - INTEGER 27 SMC-R link group. Only for SMC-R. 29 Default: 0 (physically contiguous sndbufs and RMBs) 33 - 0 - Use physically contiguous buffers 34 - 1 - Use virtually contiguous buffers 35 - 2 - Mixed use of the two types. Try physically contiguous buffers first. 38 smcr_testlink_time - INTEGER [all …]
|
| H A D | vrf.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 routing and forwarding domains (aka VRFs, VRF-lite to be specific) in the 12 Linux network stack. One use case is the multi-tenancy problem where each 14 different default gateways. 30 ------ 34 +-----------------------------+ 35 | vrf-blue | ===> route table 10 36 +-----------------------------+ 38 +------+ +------+ +-------------+ 40 +------+ +------+ +-------------+ [all …]
|
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic-kvm-device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/irqchip/arm-gic-v3.h> 23 return -EEXIST; in vgic_check_iorange() 26 return -EINVAL; in vgic_check_iorange() 29 return -EINVAL; in vgic_check_iorange() 31 if (addr & ~kvm_phys_mask(&kvm->arch.mmu) || in vgic_check_iorange() 32 (addr + size) > kvm_phys_size(&kvm->arch.mmu)) in vgic_check_iorange() 33 return -E2BIG; in vgic_check_iorange() 40 if (kvm->arch.vgic.vgic_model != type_needed) in vgic_check_type() 41 return -ENODEV; in vgic_check_type() [all …]
|
| /linux/include/linux/usb/ |
| H A D | midi-v2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * <linux/usb/midi-v2.h> -- USB MIDI 2.0 definitions. 12 /* A.1 MS Class-Specific Interface Descriptor Types */ 15 /* A.1 MS Class-Specific Interface Descriptor Subtypes */ 18 /* A.2 MS Class-Specific Endpoint Descriptor Subtypes */ 21 /* A.3 MS Class-Specific Group Terminal Block Descriptor Subtypes */ 33 /* A.6 Group Terminal Block Types */ 38 /* A.7 Group Terminal Default MIDI Protocol */ 39 #define USB_MS_MIDI_PROTO_UNKNOWN 0x00 /* Unknown (Use MIDI-CI) */ 47 /* 5.2.2.1 Class-Specific MS Interface Header Descriptor */ [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
| H A D | hw_common.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 54 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92d_get_hw_reg() 60 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RF_STATE, in rtl92d_get_hw_reg() 75 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl92d_get_hw_reg() 88 *((bool *)(val)) = rtlpriv->dm.interrupt_migration; in rtl92d_get_hw_reg() 91 *((bool *)(val)) = rtlpriv->dm.disable_tx_int; in rtl92d_get_hw_reg() 95 default: in rtl92d_get_hw_reg() 123 if (mac->vendor == PEER_CISCO && in rtl92d_set_hw_reg() 133 if (rtlhal->fw_version > 0xe) in rtl92d_set_hw_reg() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | configfs.rst | 2 Configfs - Userspace-driven Kernel Object Configuration 16 configfs is a ram-based filesystem that provides the converse of 17 sysfs's functionality. Where sysfs is a filesystem-based view of 18 kernel objects, configfs is a filesystem-based manager of kernel 33 symlink(2) can be used to group items together. Unlike sysfs, the 46 mount -t configfs none /config 56 read(2) can query their default values, and write(2) can store new 74 imperative for user-space to check the return code of close(2) in order to 76 To avoid a malicious user OOMing the kernel, there's a per-binary attribute 109 read-only or read-write:: [all …]
|
| /linux/Documentation/block/ |
| H A D | bfq-iosched.rst | 5 BFQ is a proportional-share I/O scheduler, with some extra 6 low-latency capabilities. In addition to cgroups support (blkio or io 9 - BFQ guarantees a high system and application responsiveness, and a 10 low latency for time-sensitive applications, such as audio or video 12 - BFQ distributes bandwidth, not just time, among processes or 16 In its default configuration, BFQ privileges latency over 19 goal, for a given device, is to achieve the maximum-possible 20 throughput at all times, then do switch off all low-latency heuristics 25 As every I/O scheduler, BFQ adds some overhead to per-I/O-request 27 single-lock-protected, per-request processing time of BFQ---i.e., the [all …]
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1 // SPDX-License-Identifier: GPL-2.0 35 * Legacy fanotify marks limits (8192) is per group and we introduced a tunable 37 * of fanotify marks per user is <max marks per group> * <max groups per user>. 38 * This default limit (1M) also happens to match the increased limit of inotify 119 struct fsnotify_group *group; in perm_group_watchdog() local 128 list_for_each_entry(group, &perm_group_list, in perm_group_watchdog() 134 if (list_empty(&group->fanotify_data.access_list)) in perm_group_watchdog() 137 spin_lock(&group->notification_lock); in perm_group_watchdog() 138 list_for_each_entry(event, &group->fanotify_data.access_list, in perm_group_watchdog() 140 if (likely(event->watchdog_cnt == 0)) { in perm_group_watchdog() [all …]
|
| /linux/sound/core/ |
| H A D | ump_convert.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Helpers for UMP <-> MIDI 1.0 byte stream conversion 66 * UMP -> MIDI 1 byte stream conversion 81 default: in cvt_ump_system_to_legacy() 95 default: in cvt_ump_midi1_to_legacy() 105 unsigned char status = midi2->note.status; in cvt_ump_midi2_to_legacy() 106 unsigned char channel = midi2->note.channel; in cvt_ump_midi2_to_legacy() 113 buf[1] = midi2->note.note; in cvt_ump_midi2_to_legacy() 114 buf[2] = downscale_16_to_7bit(midi2->note.velocity); in cvt_ump_midi2_to_legacy() 119 buf[1] = midi2->paf.note; in cvt_ump_midi2_to_legacy() [all …]
|
| /linux/arch/x86/platform/geode/ |
| H A D | geode-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Shared helpers to register GPIO-connected buttons and LEDs 15 #include "geode-common.h" 18 .name = "cs5535-gpio", 22 PROPERTY_ENTRY_U32("poll-interval", 20), 27 .name = "geode-gpio-keys", 35 PROPERTY_ENTRY_U32("debounce-interval", 100), 52 * Creates gpio-keys-polled device for the restart key. 55 * because it registers gpiochip software node used by both gpio-keys and 56 * leds-gpio devices. [all …]
|
| /linux/drivers/target/ |
| H A D | target_core_alua.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * This file contains SPC-3 compliant asymmetric logical unit assigntment (ALUA) 7 * (c) Copyright 2009-2013 Datera, Inc. 58 struct se_device *dev = cmd->se_dev; in target_emulate_report_referrals() 64 if (cmd->data_length < 4) { in target_emulate_report_referrals() 66 " small\n", cmd->data_length); in target_emulate_report_referrals() 75 spin_lock(&dev->t10_alua.lba_map_lock); in target_emulate_report_referrals() 76 if (list_empty(&dev->t10_alua.lba_map_list)) { in target_emulate_report_referrals() 77 spin_unlock(&dev->t10_alua.lba_map_lock); in target_emulate_report_referrals() 83 list_for_each_entry(map, &dev->t10_alua.lba_map_list, in target_emulate_report_referrals() [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 62 * pinctrl_provide_dummies() - indicate if pinctrl provides dummy state support 77 return pctldev->desc->name; in pinctrl_dev_get_name() 83 return dev_name(pctldev->dev); in pinctrl_dev_get_devname() 89 return pctldev->driver_data; in pinctrl_dev_get_drvdata() 94 * get_pinctrl_dev_from_devname() - look up pin controller device 110 if (!strcmp(dev_name(pctldev->dev), devname)) { in get_pinctrl_dev_from_devname() 129 if (device_match_of_node(pctldev->dev, np)) { in get_pinctrl_dev_from_of_node() [all …]
|
| H A D | pinconf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011 ST-Ericsson SA 6 * Written on behalf of Linaro for ST-Ericsson 29 const struct pinconf_ops *ops = pctldev->desc->confops; in pinconf_check_ops() 32 if (!ops->pin_config_set && !ops->pin_config_group_set) { in pinconf_check_ops() 33 dev_err(pctldev->dev, in pinconf_check_ops() 35 return -EINVAL; in pinconf_check_ops() 42 if (!map->data.configs.group_or_pin) { in pinconf_validate_map() 43 pr_err("failed to register map %s (%d): no group/pin given\n", in pinconf_validate_map() 44 map->name, i); in pinconf_validate_map() [all …]
|
| /linux/drivers/platform/x86/ |
| H A D | dasharo-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 60 unsigned int group; member 88 handle = ACPI_HANDLE(&data->pdev->dev); in dasharo_get_feature_cap_count() 91 return -ENODEV; in dasharo_get_feature_cap_count() 104 if (feat >= ARRAY_SIZE(data->capabilities)) in dasharo_read_channel() 105 return -EINVAL; in dasharo_read_channel() 107 if (channel >= data->caps_found[feat]) in dasharo_read_channel() 108 return -EINVAL; in dasharo_read_channel() 111 obj[0].integer.value = data->capabilities[feat][channel].group; in dasharo_read_channel() 113 obj[1].integer.value = data->capabilities[feat][channel].index; in dasharo_read_channel() [all …]
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | cli.py | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 34 def default(self, obj): member in YnlEncoder 39 return json.JSONEncoder.default(self, obj) 44 YNL CLI utility - a general purpose netlink utility that uses YAML 48 The --multi option can be repeated to include several do operations 55 spec_group.add_argument('--family', dest='family', type=str, 57 spec_group.add_argument('--list-families', action='store_true', 59 spec_group.add_argument('--spec', dest='spec', type=str, 62 parser.add_argument('--schema', dest='schema', type=str) 63 parser.add_argument('--no-schema', action='store_true') [all …]
|
| /linux/drivers/clk/starfive/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 10 default ARCH_STARFIVE 19 default m if ARCH_STARFIVE 27 default ARCH_STARFIVE 39 default ARCH_STARFIVE 45 tristate "StarFive JH7110 always-on clock support" 47 default m if ARCH_STARFIVE 49 Say yes here to support the always-on clock controller on the 53 tristate "StarFive JH7110 System-Top-Group clock support" 55 default m if ARCH_STARFIVE [all …]
|