| /linux/lib/ | 
| H A D | fw_table.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3  *  fw_tables.c - Parsing support for ACPI and ACPI-like tables provided by 33 	switch (entry->type) {  in acpi_get_entry_type() 35 		return entry->hdr->common.type;  in acpi_get_entry_type() 37 		return entry->hdr->hmat.type;  in acpi_get_entry_type() 41 		return entry->hdr->cedt.type;  in acpi_get_entry_type() 43 		return entry->hdr->cdat.type;  in acpi_get_entry_type() 51 	switch (entry->type) {  in acpi_get_entry_length() 53 		return entry->hdr->common.length;  in acpi_get_entry_length() 55 		return entry->hdr->hmat.length;  in acpi_get_entry_length() [all …] 
 | 
| /linux/rust/macros/ | 
| H A D | quote.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 52             quote_spanned!(@proc tokens span $($tt)*); 56     (@proc $v:ident $span:ident) => {}; 57     (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => { 58         $crate::quote::ToTokens::to_tokens(&$id, &mut $v); 59         quote_spanned!(@proc $v $span $($tt)*); 61     (@proc  [all...] | 
| /linux/tools/testing/selftests/namespaces/ | 
| H A D | nsid_test.c | 1 // SPDX-License-Identifier: GPL-2.0 30 	fd_mntns = open("/proc/self/ns/mnt", O_RDONLY);  in TEST() 33 	/* Get the mount namespace ID */  in TEST() 38 	/* Verify we can get the same ID again */  in TEST() 56 	/* Get parent's mount namespace ID */  in TEST() 57 	fd_parent_mntns = open("/proc/self/ns/mnt", O_RDONLY);  in TEST() 112 	snprintf(path, sizeof(path), "/proc/%d/ns/mnt", pid);  in TEST() 116 	/* Get child's mount namespace ID */  in TEST() 139 	fd_cgroupns = open("/proc/self/ns/cgroup", O_RDONLY);  in TEST() 142 	/* Get the cgroup namespace ID */  in TEST() [all …] 
 | 
| /linux/Documentation/admin-guide/mm/ | 
| H A D | shrinker_debugfs.rst | 11 unique id: e.g. *kfree_rcu-0* or *sb-xfs:vda1-36*. 18 ------ 26     dquota-cache-16     sb-devpts-28     sb-proc-47       sb-tmpfs-42 27     mm-shadow-18        sb-devtmpfs-5    sb-proc-48       sb-tmpfs-43 28     mm-zspool:zram0-34  sb-hugetlbfs-17  sb-pstore-31     sb-tmpfs-44 29     rcu-kfree-0         sb-hugetlbfs-33  sb-rootfs-2      sb-tmpfs-49 30     sb-aio-20           sb-iomem-12      sb-securityfs-6  sb-tracefs-13 31     sb-anon_inodefs-15  sb-mqueue-21     sb-selinuxfs-22  sb-xfs:vda1-36 32     sb-bdev-3           sb-nsfs-4        sb-sockfs-8      sb-zsmalloc-19 33     sb-bpf-32           sb-pipefs-14     sb-sysfs-26      thp-deferred_split-10 [all …] 
 | 
| /linux/Documentation/firmware-guide/acpi/apei/ | 
| H A 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/drivers/scsi/ | 
| H A 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> 51  * struct scsi_proc_entry - (host template, SCSI proc dir) association 68 	ssize_t ret = -ENOMEM;  in proc_scsi_host_write() 72 		return -EOVERFLOW;  in proc_scsi_host_write() 74 	if (!shost->hostt->write_info)  in proc_scsi_host_write() 75 		return -EINVAL;  in proc_scsi_host_write() 79 		ret = -EFAULT;  in proc_scsi_host_write() [all …] 
 | 
| /linux/Documentation/arch/s390/ | 
| H A 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/arch/alpha/kernel/ | 
| H A 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/Documentation/devicetree/bindings/mailbox/ | 
| H A 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@foss.st.com> 17   - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> 21     const: st,stm32mp1-ipcc 31       - description: rx channel occupied 32       - description: tx channel free 34   interrupt-names: [all …] 
 | 
| /linux/tools/testing/selftests/kmod/ | 
| H A D | kmod.sh | 2 # SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1 28 set -e 38 # TEST_ID: is the test id number 42 # Once these are enabled please leave them as-is. Write your own test, 58 # Kselftest framework requirement - SKIP code is 4. 63        if [ ! -d $DIR ]; then 73 	if [ -z $DEFAULT_KMOD_DRIVER ]; then 77 	if [ -z $DEFAULT_KMOD_FS ]; then 81 	if [ -z $PROC_DIR ]; then 82 		PROC_DIR="/proc/sys/kernel/" [all …] 
 | 
| /linux/drivers/nubus/ | 
| H A 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/Documentation/sound/designs/ | 
| H A 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/Documentation/ABI/stable/ | 
| H A D | procfs-audit_loginuid | 2 Date:		2005-02-01 3 KernelVersion:	2.6.11-rc2 1e2d1492e178 ("[PATCH] audit: handle loginuid through proc") 4 Contact:	linux-audit@redhat.com 7 		The /proc/$pid/loginuid pseudofile is written to set and 17 What:		Audit Login Session ID 18 Date:		2008-03-13 19 KernelVersion:	2.6.25-rc7 1e0bd7550ea9 ("[PATCH] export sessionid alongside the loginuid in procfs") 20 Contact:	linux-audit@redhat.com 23 		The /proc/$pid/sessionid pseudofile is read to get the 24 		audit login session ID of process $pid as a decimal
  | 
| /linux/tools/testing/selftests/tc-testing/ | 
| H A D | tdc.py | 2 # SPDX-License-Identifier: GPL-2.0 5 tdc.py - Linux tc (Traffic Control) unit test driver 55                     mn = fn[0:-3] 61         pgname = pgname[0:-3] 72             self.plugin_instances[-1][1].check_args(self.args, None) 101         pgd = ['plugin-lib', 'plugin-lib-custom'] 146                 print('testid is {}'.format(caseinfo['id'])) 215     proc = subprocess.Popen(command, 222         (rawout, serr) = proc.communicate(timeout=NAMES['TIMEOUT']) 223         if proc.returncode != 0 and len(serr) > 0: [all …] 
 | 
| /linux/sound/pci/ac97/ | 
| H A 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->i in snd_ac97_proc_read_main()  [all...] | 
| /linux/tools/testing/selftests/filesystems/statmount/ | 
| H A D | statmount_test_ns.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 	if (ret == -1) { in wait_for_pid()  47 		ksft_print_msg("waitpid returned -1, errno=%d\n", errno); in wait_for_pid()  48 		return -1; in wait_for_pid()  55 		return -1; in wait_for_pid()  97 	ret = get_mnt_ns_id("/proc/sel in get_mnt_id()  [all...] | 
| /linux/arch/arm/mm/ | 
| H A D | proc-v6.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3  *  linux/arch/arm/mm/proc-v6.S 15 #include <asm/asm-offsets.h> 17 #include <asm/pgtable-hwdef.h> 19 #include "proc-macros.S" 57  *	- loc   - location to jump to for soft reset 80 	mcr	p15, 0, r1, c7, c10, 4		@ DWB - WFI may enter a low-power mode 98  *	- pgd_phys - physical address of new TTB 101  *	- we are not using split page tables 106 	mmid	r1, r1				@ get mm->context.id [all …] 
 | 
| /linux/drivers/video/fbdev/core/ | 
| H A D | fb_procfs.c | 1 // SPDX-License-Identifier: GPL-2.0 34 		seq_printf(m, "%d %s\n", fi->node, fi->fix.id);  in fb_seq_show() 48 	struct proc_dir_entry *proc;  in fb_init_procfs()  local 50 	proc = proc_create_seq("fb", 0, NULL, &fb_proc_seq_ops);  in fb_init_procfs() 51 	if (!proc)  in fb_init_procfs() 52 		return -ENOMEM;  in fb_init_procfs() 54 	fb_proc_dir_entry = proc;  in fb_init_procfs()
  | 
| /linux/Documentation/devicetree/bindings/remoteproc/ | 
| H A D | qcom,rpm-proc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,rpm-proc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10   - Bjorn Andersson <andersson@kernel.org> 11   - Konrad Dybcio <konradybcio@kernel.org> 12   - Stephan Gerhold <stephan@gerhold.net> 17                   +--------------------------------------------+ 18                   |       RPM subsystem (qcom,rpm-proc)        | 20             reset | +---------------+     +-----+  +-----+     | [all …] 
 | 
| /linux/Documentation/bpf/ | 
| H A 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/arch/s390/appldata/ | 
| H A D | appldata_base.c | 1 // SPDX-License-Identifier: GPL-2.0 3  * Base infrastructure for Linux-z/VM Monitor Stream, Stage 1. 47  * /proc entries (sysctl) 117 		if (ops->active == 1) {  in appldata_work_fn() 118 			ops->callback(ops->data);  in appldata_work_fn() 141 	struct appldata_product_id *id;  in appldata_diag()  local 145 	id = kmemdup(&appldata_id, sizeof(appldata_id), GFP_KERNEL);  in appldata_diag() 146 	rc = -ENOMEM;  in appldata_diag() 147 	if (parm_list && id) {  in appldata_diag() 148 		id->record_nr = record_nr;  in appldata_diag() [all …] 
 | 
| /linux/drivers/rtc/ | 
| H A 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 = snprintf(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/tools/perf/util/ | 
| H A D | namespaces.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 const char *perf_ns__name(unsigned int id)  in perf_ns__name()  argument 34 	if (id >= ARRAY_SIZE(perf_ns__names))  in perf_ns__name() 36 	return perf_ns__names[id];  in perf_ns__name() 42 	u64 link_info_size = ((event ? event->nr_namespaces : NR_NAMESPACES) *  in namespaces__new() 49 	namespaces->end_time = -1;  in namespaces__new() 52 		memcpy(namespaces->link_info, event->link_info, link_info_size);  in namespaces__new() 71 		return -1;  in nsinfo__get_nspid() 73 	while (getline(&statln, &linesz, f) != -1) {  in nsinfo__get_nspid() 87 			*in_pidns = (statln + sizeof("NStgid:") - 1) != nspid;  in nsinfo__get_nspid() [all …] 
 | 
| /linux/tools/perf/tests/shell/ | 
| H A D | sched.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 7 if [ "$(id -u)" != 0 ]; then 18   rm -f "${perfdata}" 19   rm -f "${perfdata}".old 21   trap - EXIT TERM INT 33   perf test -w noploop 10 & 35   taskset -pc 0 $PID1 36   perf test -w noploop 10 & 38   taskset -pc 0 $PID2 [all …] 
 | 
| /linux/sound/core/ | 
| H A D | info.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 78 	if (!entry || !entry->p)  in alloc_info_private() 79 		return -ENODEV;  in alloc_info_private() 80 	if (!try_module_get(entry->module))  in alloc_info_private() 81 		return -EFAULT;  in alloc_info_private() 84 		module_put(entry->module);  in alloc_info_private() 85 		return -ENOMEM;  in alloc_info_private() 87 	data->entry = entry;  in alloc_info_private() 102  * file ops for binary proc files 110 	data = file->private_data;  in snd_info_entry_llseek() [all …] 
 |