/linux/Documentation/netlink/specs/ |
H A D | devlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 - 12 name: sb-pool-type 14 - 16 - 18 - 20 name: port-type 22 - 24 - [all …]
|
/linux/drivers/usb/gadget/function/ |
H A D | f_subset.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_subset.c -- "CDC Subset" Ethernet link function driver 5 * Copyright (C) 2003-2005,2008 David Brownell 20 * This function packages a simple "CDC Subset" Ethernet port with no real 22 * The data transfer model is exactly that of CDC Ethernet, which is 23 * why we call it the "CDC Subset". 27 * so simple (CDC Ethernet). The original versions of this protocol used 29 * SA-1100 "Itsy" board, which could run Linux 2.4 kernels and supported 37 * Subset" in terms of data transfer and lack of control model. This was 42 * descriptors to the CDC Subset code, making this code look like a SAFE [all …]
|
/linux/security/apparmor/ |
H A D | file.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * This file contains AppArmor mediation of files 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. 40 * file_audit_cb - call back for file specific audit fields 42 * @va: audit struct to audit values of (NOT NULL) 48 kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid(); in file_audit_cb() 51 if (ad->request & AA_AUDIT_FILE_MASK) { in file_audit_cb() 53 map_mask_to_chr_mask(ad->request)); in file_audit_cb() 56 if (ad->denied & AA_AUDIT_FILE_MASK) { in file_audit_cb() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-mvebu-icu.c | 5 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 7 * This file is licensed under the terms of the GNU General Public 9 * warranty of any kind, whether express or implied. 23 #include <linux/irqchip/irq-msi-lib.h> 25 #include <dt-bindings/interrupt-controller/mvebu-icu.h> 71 struct msi_domain_info *info = d->host_data; in mvebu_icu_translate() 72 struct mvebu_icu_msi_data *msi_data = info->chip_data; in mvebu_icu_translate() 73 struct mvebu_icu *icu = msi_data->icu; in mvebu_icu_translate() 75 /* Check the count of the parameters in dt */ in mvebu_icu_translate() 76 if (WARN_ON(fwspec->param_count != param_count)) { in mvebu_icu_translate() [all …]
|
/linux/Documentation/userspace-api/media/ |
H A D | glossary.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 9 The goal of this section is to standardize the terms used within the media 30 Unit of data transported by a bus. On parallel buses, the data unit 31 consists of one or more related samples while on serial buses the data 36 Part of the Linux Kernel that implements support for a hardware 41 transfer data in and out of a Kernel driver. 46 An API designed to control a subset of the :term:`Media Hardware` 55 optimized for the operational needs of digital signal processing. 58 **Field-programmable Gate Array** 63 See https://en.wikipedia.org/wiki/Field-programmable_gate_array. [all …]
|
/linux/drivers/usb/gadget/legacy/ |
H A D | ether.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * ether.c -- Ethernet gadget driver, with CDC and non-CDC options 5 * Copyright (C) 2003-2005,2008 David Brownell 6 * Copyright (C) 2003-2004 Robert Schwebel, Benedikt Spranger 26 * Ethernet gadget driver -- with CDC and non-CDC options 32 * this USB-IF standard as its open-systems interoperability solution; 36 * TLA-soup. "CDC ACM" (Abstract Control Model) is for modems, and a new 40 * implement a "minimalist" vendor-agnostic CDC core: same framing, but 41 * link-level setup only requires activating the configuration. Only the 44 * systems may not. (This is a subset of CDC Ethernet.) [all …]
|
/linux/Documentation/netlink/ |
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 …]
|
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)?$ 25 description: Specification of a raw netlink protocol [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 …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | irq_affinity.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 10 pool->irqs_per_cpu[cpu]--; in cpu_put() 15 pool->irqs_per_cpu[cpu]++; in cpu_get() 22 int best_cpu = -1; in cpu_get_least_loaded() 27 if (!pool->irqs_per_cpu[cpu]) { in cpu_get_least_loaded() 33 if (pool->irqs_per_cpu[cpu] < pool->irqs_per_cpu[best_cpu]) in cpu_get_least_loaded() 36 if (best_cpu == -1) { in cpu_get_least_loaded() 38 mlx5_core_err(pool->dev, "NO online CPUs in req_mask (%*pbl)\n", in cpu_get_least_loaded() 42 pool->irqs_per_cpu[best_cpu]++; in cpu_get_least_loaded() 55 err = xa_alloc(&pool->irqs, &irq_index, NULL, pool->xa_num_irqs, GFP_KERNEL); in irq_pool_request_irq() [all …]
|
/linux/kernel/ |
H A D | cred.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Task credentials management - see Documentation/security/credentials.rst 25 printk("[%-5.5s%5u] " FMT "\n", \ 26 current->comm, current->pid, ##__VA_ARGS__) 31 no_printk("[%-5.5s%5u] " FMT "\n", \ 32 current->comm, current->pid, ##__VA_ARGS__); \ 38 /* init to 2 - one for init_task, one to ensure it is never freed */ 66 * The RCU callback to actually dispose of a set of credentials 74 if (atomic_long_read(&cred->usage) != 0) in put_cred_rcu() 76 cred, atomic_long_read(&cred->usage)); in put_cred_rcu() [all …]
|
/linux/include/uapi/linux/sched/ |
H A D | types.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 17 * However, the possibility of specifying more than just a priority for 18 * the tasks may be useful for a wide variety of application fields, e.g., 27 * A subset of sched_attr attributes specifies the 30 * @size size of the structure, for fwd/bwd compat. 37 * predefined set of flags via the attribute: 41 * Sporadic Time-Constrained Task Attributes 44 * A subset of sched_attr attributes allows to describe a so-called 45 * sporadic time-constrained task. 48 * - the activation period or minimum instance inter-arrival time; [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
H A D | uncore-cache.json | 9 "PublicDescription": "Counts the number of entries successfully inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select MISS_OPC_MATCH and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).; Miss transactions inserted into the TOR that match an opcode.", 21 "PublicDescription": "Counts the number of entries successfully inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select MISS_OPC_MATCH and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).; Miss transactions inserted into the TOR that match an opcode.", 27 "BriefDescription": "LLC misses - demand and prefetch data reads - exclude [all...] |
/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | uncore-cache.json | 9 "PublicDescription": "Counts the number of entries successfully inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select MISS_OPC_MATCH and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).; Miss transactions inserted into the TOR that match an opcode.", 21 "PublicDescription": "Counts the number of entries successfully inserted into the TOR that match qualifications specified by the subevent. There are a number of subevent 'filters' but only a subset of the subevent combinations are valid. Subevents that require an opcode or NID match require the Cn_MSR_PMON_BOX_FILTER.{opc, nid} field to be set. If, for example, one wanted to count DRD Local Misses, one should select MISS_OPC_MATCH and set Cn_MSR_PMON_BOX_FILTER.opc to DRD (0x182).; Miss transactions inserted into the TOR that match an opcode.", 27 "BriefDescription": "LLC misses - demand and prefetch data reads - exclude [all...] |
/linux/include/linux/ceph/ |
H A D | ceph_frag.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * "Frags" are a way to describe a subset of a 32-bit number space, 8 * (subset of the number space) can be partitioned into 2^n sub-frags. 10 * Frags are encoded into a 32-bit word: 15 * We use the _most_ significant bits of the 24 bit value. This makes 25 (v & (0xffffffu << (24-b)) & 0xffffffu); in ceph_frag_make() 37 return (0xffffffu << (24-ceph_frag_bits(f))) & 0xffffffu; in ceph_frag_mask() 41 return 24 - ceph_frag_bits(f); in ceph_frag_mask_shift() 53 ceph_frag_value(f) | (i << (24 - newbits))); in ceph_frag_make_child()
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool.sh | 2 # SPDX-License-Identifier: GPL-2.0 56 # Check that when each of the reported speeds is forced, the links come 58 local -a speeds_arr=($(common_speeds_get $h1 $h2 0 0)) 72 ethtool -s $h2 autoneg on 73 ethtool -s $h1 autoneg on 82 local -a speeds_arr=($(different_speeds_get $h1 $h2 0 0)) 94 log_test "force of different speeds autoneg off" 96 ethtool -s $h2 autoneg on 97 ethtool -s $h1 autoneg on 105 local -a speeds_arr=($(common_speeds_get $h1 $h2 0 1)) [all …]
|
/linux/tools/perf/pmu-events/arch/x86/jaketown/ |
H A D | uncore-cache.json | 15 …ed in Counter 0. The filtering available is found in the control register - threshold, invert an… 31 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 41 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 51 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 61 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 71 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 81 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 91 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 101 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 111 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… [all …]
|
/linux/Documentation/i2c/ |
H A D | summary.rst | 6 a protocol developed by Philips. It is a two-wire protocol with variable 8 an inexpensive bus for connecting many types of devices with infrequent or 14 The latest official I2C specification is the `"I²C-bus specification and user 15 manual" (UM10204) <https://www.nxp.com/docs/en/user-guide/UM10204.pdf>`_ 16 published by NXP Semiconductors, version 7 as of this writing. 19 a subset of I2C protocols and signaling. Many I2C devices will work on an 25 Because the SMBus is mostly a subset of the generalized I2C bus, we can 36 .. kernel-figure:: i2c_bus.svg 46 class of I2C controllers. Each specific controller driver either depends on an 59 video-related chips. [all …]
|
/linux/Documentation/devicetree/bindings/ |
H A D | writing-schema.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Writing Devicetree Bindings in json-schema 6 Devicetree bindings are written using json-schema vocabulary. Schema files are 7 written in a JSON-compatible subset of YAML. YAML is used instead of JSON as it 11 Also see :ref:`example-schema`. 14 --------------- 16 Each schema doc is a structured json-schema which is defined by a set of 17 top-level properties. Generally, there is one binding defined per file. The 18 top-level json-schema properties used are: 21 A json-schema unique identifier string. The string must be a valid [all …]
|
/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | uncore-cache.json | 15 …ed in Counter 0. The filtering available is found in the control register - threshold, invert an… 24 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 34 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 44 …of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. Th… 54 …er of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. … 64 …of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. Th… 74 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 84 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 94 …"PublicDescription": "Counts the number of lines that were victimized on a fill. This can be filt… 104 … "Counts the number of lines that were victimized on a fill. This can be filtered by the state th… [all …]
|
/linux/tools/testing/selftests/proc/ |
H A D | proc-subset-pid.c | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * Test that "mount -t proc -o subset=pid" hides everything but pids, 18 * /proc/self and /proc/thread-self. 42 if (unshare(CLONE_NEWNS) == -1) { in make_private_proc() 48 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_proc() 51 if (mount(NULL, "/proc", "proc", 0, "subset=pid") == -1) { in make_private_proc() 88 if (streq(de->d_name, ".")) { in main() [all …]
|
/linux/arch/arm64/kernel/ |
H A D | compat_alignment.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * 32-bit misaligned trap handler (c) 1998 San Mehat (CCC) -July 1998 29 #define LDSTHD_I_BIT(i) (i & (1 << 22)) /* double/half-word immed */ 39 /* Thumb-2 32 bit format per ARMv7 DDI0406A A6.3, either f800h,e800h,f800h */ 58 offset.un = -offset.un; in do_alignment_finish_ldst() 64 regs->regs[RN_BITS(instr)] = addr; in do_alignment_finish_ldst() 75 /* ARMv7 Thumb-2 32-bit LDRD/STRD */ in do_alignment_ldrdstrd() 91 regs->regs[rd] = val; in do_alignment_ldrdstrd() 92 regs->regs[rd2] = val2; in do_alignment_ldrdstrd() 94 if (put_user(regs->regs[rd], (u32 __user *)addr) || in do_alignment_ldrdstrd() [all …]
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-feature.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 bpftool-feature 6 ------------------------------------------------------------------------------- 7 tool for inspection of eBPF-related parameters for Linux kernel or net device 8 ------------------------------------------------------------------------------- 36 Probe the running kernel and dump a number of eBPF-related parameters, such 37 as availability of the **bpf**\ () system call, JIT status, eBPF program 44 If the **macros** keyword (but not the **-j** option) is passed, a subset 45 of the output is dumped as a list of **#define** macros that are ready to 48 to the names of the macros: this can be used to avoid conflicts on macro [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwellde/ |
H A D | uncore-cache.json | 23 "PublicDescription": "Since occupancy counts can only be captured in the Cbo's 0 counter, this event allows a user to capture occupancy related information by filtering the Cb0 occupancy count captured in Counter 0. The filtering available is found in the control register - threshold, invert and edge detect. E.g. setting threshold to 1 can effectively monitor how many cycles the monitored queue has an entry.", 32 "PublicDescription": "Counts the number of cycles either the local distress or incoming distress signals are asserted. Incoming distress includes both up and dn.", 41 "PublicDescription": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.; Filters for any transaction originating from the IPQ or IRQ. This does not include lookups originating from the ISMQ.", 51 "PublicDescription": "Counts the number of times the LLC was accessed - this includes code, data, prefetches and hints coming from L2. This has numerous filters available. Note the non-standard filtering equation. This event will count requests that lookup the cache multiple times with multiple increments. One must ALWAYS set umask bit 0 and select a state or states to match. Otherwise, the event will count nothing. CBoGlCtrl[22:18] bits correspond to [FMESI] state.; Read transactions", 61 "PublicDescription": "Counts the number of times the LLC was accessed - thi [all...] |
/linux/kernel/irq/ |
H A D | ipi.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * irq_reserve_ipi() - Setup an IPI to destination cpumask 17 * @dest: cpumask of CPUs which can receive the IPI 32 return -EINVAL; in irq_reserve_ipi() 37 return -EINVAL; in irq_reserve_ipi() 43 return -EINVAL; in irq_reserve_ipi() 74 return -EINVAL; in irq_reserve_ipi() 78 virq = irq_domain_alloc_descs(-1, nr_irqs, 0, NUMA_NO_NODE, NULL); in irq_reserve_ipi() 81 return -ENOMEM; in irq_reserve_ipi() 94 cpumask_copy(data->common->affinity, dest); in irq_reserve_ipi() [all …]
|