/linux-5.10/tools/testing/selftests/bpf/ |
D | test_current_pid_tgid_new_ns.c | 1 // SPDX-License-Identifier: GPL-2.0 39 if (stat("/proc/self/ns/pid", &st)) { in main() 40 perror("stat failed on /proc/self/ns/pid ns\n"); in main() 50 if (pid == -1) { in main() 65 if (pid == -1) { in main() 76 if (CHECK_NEWNS(mount("none", "/proc", NULL, MS_PRIVATE|MS_REC, NULL), in main() 77 "Unmounting proc", "Cannot umount proc! errno=%d\n", errno)) in main() 80 if (CHECK_NEWNS(mount("proc", "/proc", "proc", MS_NOSUID|MS_NOEXEC|MS_NODEV, NULL), in main() 81 "Mounting proc", "Cannot mount proc! errno=%d\n", errno)) in main() 94 __u64 id; in main() local [all …]
|
/linux-5.10/arch/um/kernel/skas/ |
D | mmu.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 13 #include <as-layout.h> 17 static int init_stub_pte(struct mm_struct *mm, unsigned long proc, in init_stub_pte() argument 26 pgd = pgd_offset(mm, proc); in init_stub_pte() 28 p4d = p4d_alloc(mm, pgd, proc); in init_stub_pte() 32 pud = pud_alloc(mm, p4d, proc); in init_stub_pte() 36 pmd = pmd_alloc(mm, pud, proc); in init_stub_pte() 40 pte = pte_alloc_map(mm, pmd, proc); in init_stub_pte() 55 return -ENOMEM; in init_stub_pte() [all …]
|
/linux-5.10/drivers/scsi/ |
D | scsi_proc.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * the PROC file system and the SCSI device drivers 10 * (c) 1995 Michael Neuffer neuffer@goofy.zdv.uni-mainz.de 14 * Andreas Heilwagen <crashcar@informatik.uni-koblenz.de> 46 /* Protect sht->present and sht->proc_dir */ 53 ssize_t ret = -ENOMEM; in proc_scsi_host_write() 57 return -EOVERFLOW; in proc_scsi_host_write() 59 if (!shost->hostt->write_info) in proc_scsi_host_write() 60 return -EINVAL; in proc_scsi_host_write() 64 ret = -EFAULT; in proc_scsi_host_write() [all …]
|
/linux-5.10/drivers/acpi/ |
D | tables.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * acpi_tables.c - ACPI Boot-Time Table Parsing 60 switch (header->type) { in acpi_table_print_madt_entry() 67 p->processor_id, p->id, in acpi_table_print_madt_entry() 68 (p->lapic_flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled"); in acpi_table_print_madt_entry() 77 p->local_apic_id, p->uid, in acpi_table_print_madt_entry() 78 (p->lapic_flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled"); in acpi_table_print_madt_entry() 86 pr_debug("IOAPIC (id[0x%02x] address[0x%08x] gsi_base[%d])\n", in acpi_table_print_madt_entry() 87 p->id, p->address, p->global_irq_base); in acpi_table_print_madt_entry() 96 p->bus, p->source_irq, p->global_irq, in acpi_table_print_madt_entry() [all …]
|
/linux-5.10/Documentation/firmware-guide/acpi/apei/ |
D | output_format.rst | 1 .. SPDX-License-Identifier: GPL-2.0 35 [processor_type: <integer>, <proc type string>] 36 [processor_isa: <integer>, <proc isa string>] 38 <proc error type strings>] 39 [operation: <integer>, <proc operation string>] 41 <proc flags strings>] 50 <proc type string>* := IA32/X64 | IA64 52 <proc isa string>* := IA32 | IA64 | X64 55 [cache error][, TLB error][, bus error][, micro-architectural error] 57 <proc operation string>* := unknown or generic | data read | data write | \ [all …]
|
/linux-5.10/Documentation/filesystems/ |
D | proc.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 The /proc Filesystem 8 /proc/sys Terrehon Bowden <terrehon@pacbell.net>, October 7 1999 11 move /proc/sys Shen Feng <shen@cn.fujitsu.com> April 1 2009 24 1.1 Process-Specific Subdirectories 26 1.3 IDE devices in /proc/ide 27 1.4 Networking info in /proc/net 29 1.6 Parallel port info in /proc/parport 30 1.7 TTY info in /proc/tty 31 1.8 Miscellaneous kernel statistics in /proc/stat [all …]
|
/linux-5.10/Documentation/s390/ |
D | common_io.rst | 2 S/390 common I/O-Layer 9 ----------------------- 17 device := {all | [!]ipldev | [!]condev | [!]<devno> | [!]<devno>-<devno>} 19 The given devices will be ignored by the common I/O-layer; no detection 24 An ignored device can be un-ignored later; see the "/proc entries"-section for 34 operator). The '!' operator will cause the I/O-layer to _not_ ignore a device. 40 cio_ignore=0.0.0023-0.0.0042,0.0.4711 47 cio_ignore=all,!0.0.4711,!0.0.fd00-0.0.fd02 54 /proc entries 55 ------------- [all …]
|
/linux-5.10/tools/testing/selftests/tc-testing/ |
D | tdc.py | 2 # SPDX-License-Identifier: GPL-2.0 5 tdc.py - Linux tc (Traffic Control) unit test driver 54 mn = fn[0:-3] 60 pgname = pgname[0:-3] 64 self.plugin_instances[-1].check_args(self.args, None) 89 pgd = ['plugin-lib', 'plugin-lib-custom'] 133 print('testid is {}'.format(caseinfo['id'])) 193 proc = subprocess.Popen(command, 200 (rawout, serr) = proc.communicate(timeout=NAMES['TIMEOUT']) 201 if proc.returncode != 0 and len(serr) > 0: [all …]
|
/linux-5.10/arch/alpha/kernel/ |
D | srm_env.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * srm_env.c - Access to SRM environment 6 * (C) 2001,2002,2006 by Jan-Benedict Glaw <jbglaw@lug-owl.de> 8 * This driver is a modified version of Erik Mouw's example proc 25 #define BASE_DIR "srm_environment" /* Subdir in /proc/ */ 31 MODULE_AUTHOR("Jan-Benedict Glaw <jbglaw@lug-owl.de>"); 37 unsigned long id; member 66 unsigned long id = (unsigned long)m->private; in srm_env_proc_show() local 71 return -ENOMEM; in srm_env_proc_show() 73 ret = callback_getenv(id, page, PAGE_SIZE); in srm_env_proc_show() [all …]
|
/linux-5.10/Documentation/devicetree/bindings/mailbox/ |
D | st,stm32-ipcc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: "http://devicetree.org/schemas/mailbox/st,stm32-ipcc.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 16 - Fabien Dessenne <fabien.dessenne@st.com> 17 - Arnaud Pouliquen <arnaud.pouliquen@st.com> 21 const: st,stm32mp1-ipcc 31 - description: rx channel occupied 32 - description: tx channel free 33 - description: wakeup source [all …]
|
/linux-5.10/drivers/nubus/ |
D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* drivers/nubus/proc.c: Proc FS interface for NuBus. 4 By David Huggins-Daines <dhd@debian.org> 6 Much code and many ideas from drivers/pci/proc.c: 11 structure in /proc analogous to the structure of the NuBus ROM 16 resources are empty files, since every resource ID requires a special 17 case (e.g. if the resource ID implies a directory or block, then its 33 * /proc/bus/nubus/devices stuff 43 fres->board->slot, fres->category, fres->type, in nubus_devices_proc_show() 44 fres->dr_sw, fres->dr_hw, fres->board->slot_addr); in nubus_devices_proc_show() [all …]
|
/linux-5.10/tools/testing/selftests/kmod/ |
D | kmod.sh | 13 # under the terms of copyleft-next (version 0.3.1 or later) as published 14 # at http://copyleft-next.org/. 39 set -e 49 # TEST_ID: is the test id number 53 # Once these are enabled please leave them as-is. Write your own test, 69 # Kselftest framework requirement - SKIP code is 4. 74 if [ ! -d $DIR ]; then 84 if [ -z $DEFAULT_KMOD_DRIVER ]; then 88 if [ -z $DEFAULT_KMOD_FS ]; then 92 if [ -z $PROC_DIR ]; then [all …]
|
/linux-5.10/Documentation/sound/designs/ |
D | procfile.rst | 2 Proc Files of ALSA Drivers 10 ALSA has its own proc tree, /proc/asound. Many useful information are 15 card-specific files are stored in the ``card*`` subdirectories. 23 index, the id string, short and long descriptions. 40 ``<card>-<device>: <name>`` 44 ``<card>-<device>: <id>: <name> : <sub-streams>`` 61 The card-specific files are found in ``/proc/asound/card*`` directories. 62 Some drivers (e.g. cmipci) have their own proc entries for the 63 register dump, etc (e.g. ``/proc/asound/card*/cmipci`` shows the register 81 mapping by writing to this device. Read OSS-Emulation.txt for [all …]
|
/linux-5.10/sound/pci/ac97/ |
D | ac97_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 * proc interface 46 snd_iprintf(buffer, "%-17s: %3d.%d dBV %c %2d/fs %s\n", in snd_ac97_proc_read_functions() 48 (info & 0x8000 ? -1 : 1) * ((info & 0x7000) >> 12) * 3 / 2, in snd_ac97_proc_read_functions() 50 info & 0x0400 ? 'X' : '-', in snd_ac97_proc_read_functions() 101 snd_ac97_get_name(NULL, ac97->id, name, 0); in snd_ac97_proc_read_main() 102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main() 104 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) in snd_ac97_proc_read_main() 108 ac97->subsystem_vendor); in snd_ac97_proc_read_main() 110 ac97->subsystem_device); in snd_ac97_proc_read_main() [all …]
|
/linux-5.10/Documentation/sound/hd-audio/ |
D | notes.rst | 2 More Notes on HD-Audio Driver 11 HD-audio is the new standard on-board audio component on modern PCs 12 after AC97. Although Linux has been supporting HD-audio since long 15 This document explains the brief trouble-shooting and debugging 16 methods for the HD-audio hardware. 18 The HD-audio component consists of two parts: the controller chip and 19 the codec chips on the HD-audio bus. Linux provides a single driver 20 for all controllers, snd-hda-intel. Although the driver name contains 21 a word of a well-known hardware vendor, it's not specific to it but for 22 all controller chips by other companies. Since the HD-audio [all …]
|
/linux-5.10/arch/arm/mm/ |
D | proc-v6.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/proc-v6.S 14 #include <asm/asm-offsets.h> 16 #include <asm/pgtable-hwdef.h> 18 #include "proc-macros.S" 52 * - loc - location to jump to for soft reset 75 mcr p15, 0, r1, c7, c10, 4 @ DWB - WFI may enter a low-power mode 91 * - pgd_phys - physical address of new TTB 94 * - we are not using split page tables 99 mmid r1, r1 @ get mm->context.id [all …]
|
/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_process.c | 30 #include <linux/amd-iommu.h> 58 /* Ordered, single-threaded workqueue for restoring evicted 61 * their BOs and result in a live-lock situation where processes 114 pdd = workarea->pdd; in kfd_sdma_activity_worker() 117 dqm = pdd->dev->dqm; in kfd_sdma_activity_worker() 118 qpd = &pdd->qpd; in kfd_sdma_activity_worker() 125 * we loop over all SDMA queues and get their counts from user-space. in kfd_sdma_activity_worker() 131 * 1. Create a temporary list of SDMA queue nodes from the qpd->queues_list, in kfd_sdma_activity_worker() 137 * from the qpd->queues_list. in kfd_sdma_activity_worker() 138 * 3. Do a second pass over qpd->queues_list to check if any nodes got deleted. in kfd_sdma_activity_worker() [all …]
|
/linux-5.10/drivers/rtc/ |
D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * RTC subsystem, proc interface 5 * Copyright (C) 2005-06 Tower Technologies 16 #include "rtc-core.h" 26 size = scnprintf(name, NAME_SIZE, "rtc%d", rtc->id); in is_rtc_hctosys() 35 return (rtc->id == 0); in is_rtc_hctosys() 42 struct rtc_device *rtc = seq->private; in rtc_proc_show() 43 const struct rtc_class_ops *ops = rtc->ops; in rtc_proc_show() 64 (rtc->uie_rtctimer.enabled) ? "yes" : "no"); in rtc_proc_show() 66 (rtc->pie_enabled) ? "yes" : "no"); in rtc_proc_show() [all …]
|
/linux-5.10/Documentation/bpf/ |
D | s390.rst | 12 2. One-time setup 27 --variant=minbase \ 28 --include=sudo \ 30 ./s390-toolchain 31 sudo mount --rbind /dev ./s390-toolchain/dev 32 sudo mount --rbind /proc ./s390-toolchain/proc 33 sudo mount --rbind /sys ./s390-toolchain/sys 34 sudo chroot ./s390-toolchain 38 sudo dpkg --add-architecture s390x 39 sudo apt-get update [all …]
|
/linux-5.10/tools/perf/util/ |
D | namespaces.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 const char *perf_ns__name(unsigned int id) in perf_ns__name() argument 35 if (id >= ARRAY_SIZE(perf_ns__names)) in perf_ns__name() 37 return perf_ns__names[id]; in perf_ns__name() 43 u64 link_info_size = ((event ? event->nr_namespaces : NR_NAMESPACES) * in namespaces__new() 50 namespaces->end_time = -1; in namespaces__new() 53 memcpy(namespaces->link_info, event->link_info, link_info_size); in namespaces__new() 73 int rv = -1; in nsinfo__init() 75 if (snprintf(oldns, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__init() 78 if (asprintf(&newns, "/proc/%d/ns/mnt", nsi->pid) == -1) in nsinfo__init() [all …]
|
/linux-5.10/tools/testing/selftests/sysctl/ |
D | sysctl.sh | 12 # under the terms of copyleft-next (version 0.3.1 or later) as published 13 # at http://copyleft-next.org/. 15 # This performs a series tests against the proc sysctl interface. 17 # Kselftest framework requirement - SKIP code is 4. 29 # TEST_ID: is the test id number 34 # Once these are enabled please leave them as-is. Write your own test, 46 if [ -z $DIR ]; then 49 if [ -z $DEFAULT_NUM_TESTS ]; then 52 if [ -z $SYSCTL ]; then 53 SYSCTL="/proc/sys/debug/test_sysctl" [all …]
|
/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | ns_current_pid_tgid.c | 1 // SPDX-License-Identifier: GPL-2.0 27 __u64 id; in test_ns_current_pid_tgid() local 50 id = (__u64) tid << 32 | pid; in test_ns_current_pid_tgid() 51 bss.user_pid_tgid = id; in test_ns_current_pid_tgid() 53 if (CHECK_FAIL(stat("/proc/self/ns/pid", &st))) { in test_ns_current_pid_tgid() 54 perror("Failed to stat /proc/self/ns/pid"); in test_ns_current_pid_tgid() 79 if (CHECK(id != bss.pid_tgid, "Compare user pid/tgid vs. bpf pid/tgid", in test_ns_current_pid_tgid() 80 "User pid/tgid %llu BPF pid/tgid %llu\n", id, bss.pid_tgid)) in test_ns_current_pid_tgid()
|
/linux-5.10/drivers/staging/media/hantro/ |
D | hantro_drv.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Based on s5p-mfc driver by Samsung Electronics Co., Ltd. 22 #include <media/v4l2-event.h> 23 #include <media/v4l2-mem2mem.h> 24 #include <media/videobuf2-core.h> 25 #include <media/videobuf2-vmalloc.h> 31 #define DRIVER_NAME "hantro-vpu" 36 "Debug level - higher value produces more verbose messages"); 38 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id) in hantro_get_ctrl() argument 42 ctrl = v4l2_ctrl_find(&ctx->ctrl_handler, id); in hantro_get_ctrl() [all …]
|
/linux-5.10/arch/ia64/kernel/ |
D | salinfo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Creates entries in /proc/sal for various system features. 8 * Copyright (c) 2003 Hewlett-Packard Co 17 * Cache the record across multi-block reads from user space. 36 * Replace the counting semaphore with a mutex and a test if the cpumask is non-empty. 55 MODULE_DESCRIPTION("/proc interface to IA-64 SAL features"); 59 const char *name; /* name of the proc entry */ 65 * List {name,feature} pairs for every entry in /proc/sal/<feature> 85 ARRAY_SIZE(salinfo_entries) + /* /proc/sal/bus_lock */ 86 ARRAY_SIZE(salinfo_log_name) + /* /proc/sal/{mca,...} */ [all …]
|
/linux-5.10/drivers/macintosh/ |
D | mac_hid.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 return -ENOMEM; in mac_hid_create_emumouse() 39 lockdep_set_class(&mac_hid_emumouse_dev->event_lock, in mac_hid_create_emumouse() 41 lockdep_set_class(&mac_hid_emumouse_dev->mutex, in mac_hid_create_emumouse() 44 mac_hid_emumouse_dev->name = "Macintosh mouse button emulation"; in mac_hid_create_emumouse() 45 mac_hid_emumouse_dev->id.bustype = BUS_ADB; in mac_hid_create_emumouse() 46 mac_hid_emumouse_dev->id.vendor = 0x0001; in mac_hid_create_emumouse() 47 mac_hid_emumouse_dev->id.product = 0x0001; in mac_hid_create_emumouse() 48 mac_hid_emumouse_dev->id.version = 0x0100; in mac_hid_create_emumouse() 50 mac_hid_emumouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in mac_hid_create_emumouse() [all …]
|