/linux/fs/proc/ |
H A D | Makefile | 3 # Makefile for the Linux proc filesystem routines. 6 obj-y += proc.o 9 proc-y := nommu.o task_nommu.o 10 proc-$(CONFIG_MMU) := task_mmu.o 12 proc-y += inode.o root.o base.o generic.o array.o \ 14 proc-$(CONFIG_TTY) += proc_tty.o 15 proc-y += cmdline.o 16 proc-y += consoles.o 17 proc-y += cpuinfo.o 18 proc-y += devices.o [all …]
|
H A D | Kconfig | 3 bool "/proc file system support" if EXPERT 12 It's totally cool; for example, "cat /proc/interrupts" gives 18 information about your system gathered from the /proc file system. 20 Before you can use the /proc file system, it has to be mounted, 22 That location should be /proc. A command such as "mount -t proc proc 23 /proc" or the equivalent line in /etc/fstab does the job. 25 The /proc file system is explained in the file 26 <file:Documentation/filesystems/proc.rst> and on the proc(5) manpage 27 ("man 5 proc"). 33 bool "/proc/kcore support" if !ARM [all …]
|
/linux/tools/testing/selftests/proc/ |
H A D | .gitignore | 5 /proc-2-is-kthread 6 /proc-fsconfig-hidepid 7 /proc-loadavg-001 8 /proc-multiple-procfs 9 /proc-empty-vm 10 /proc-pid-vm 11 /proc-self-map-files-001 12 /proc-self-map-files-002 13 /proc-self-isnt-kthread 14 /proc-self-syscall [all …]
|
H A D | Makefile | 10 TEST_GEN_PROGS += proc-2-is-kthread 11 TEST_GEN_PROGS += proc-loadavg-001 12 TEST_GEN_PROGS += proc-empty-vm 13 TEST_GEN_PROGS += proc-pid-vm 14 TEST_GEN_PROGS += proc-self-map-files-001 15 TEST_GEN_PROGS += proc-self-map-files-002 16 TEST_GEN_PROGS += proc-self-isnt-kthread 17 TEST_GEN_PROGS += proc-self-syscall 18 TEST_GEN_PROGS += proc-self-wchan 19 TEST_GEN_PROGS += proc-subset-pid [all …]
|
H A D | proc-self-map-files-001.c | 16 /* Test readlink /proc/self/map_files/... */ 65 pass("/proc/self/map_files/%lx-%lx", a, b); in main() 66 fail("/proc/self/map_files/ %lx-%lx", a, b); in main() 67 fail("/proc/self/map_files/%lx -%lx", a, b); in main() 68 fail("/proc/self/map_files/%lx- %lx", a, b); in main() 69 fail("/proc/self/map_files/%lx-%lx ", a, b); in main() 70 fail("/proc/self/map_files/0%lx-%lx", a, b); in main() 71 fail("/proc/self/map_files/%lx-0%lx", a, b); in main() 73 fail("/proc/self/map_files/100000000%lx-%lx", a, b); in main() 74 fail("/proc/self/map_files/%lx-100000000%lx", a, b); in main() [all …]
|
H A D | proc-self-map-files-002.c | 16 /* Test readlink /proc/self/map_files/... with minimum address. */ 77 pass("/proc/self/map_files/%lx-%lx", a, b); in main() 78 fail("/proc/self/map_files/ %lx-%lx", a, b); in main() 79 fail("/proc/self/map_files/%lx -%lx", a, b); in main() 80 fail("/proc/self/map_files/%lx- %lx", a, b); in main() 81 fail("/proc/self/map_files/%lx-%lx ", a, b); in main() 82 fail("/proc/self/map_files/0%lx-%lx", a, b); in main() 83 fail("/proc/self/map_files/%lx-0%lx", a, b); in main() 85 fail("/proc/self/map_files/100000000%lx-%lx", a, b); in main() 86 fail("/proc/self/map_files/%lx-100000000%lx", a, b); in main() [all …]
|
/linux/drivers/android/ |
H A D | binder_internal.h | 149 * There are separate work lists for proc, thread, and node (async). 180 * (protected by @proc->inner_lock) 181 * @rb_node: element for proc->nodes tree 182 * (protected by @proc->inner_lock) 185 * @proc: binder_proc that owns this node 191 * (protected by @proc->inner_lock if @proc 194 * (protected by @proc->inner_lock if @proc 197 * (protected by @proc->inner_lock if @proc 200 * (protected by @proc->inner_lock while @proc 202 * if @proc is NULL. During inc/dec and node release [all …]
|
/linux/tools/testing/selftests/timens/ |
H A D | procfs.c | 39 char path[] = "/proc/self/ns/time_for_children"; in init_namespaces() 71 FILE *proc; in read_proc_uptime() local 73 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 74 if (proc == NULL) { in read_proc_uptime() 75 pr_perror("Unable to open /proc/uptime"); in read_proc_uptime() 79 if (fscanf(proc, "%lu.%02lu", &up_sec, &up_nsec) != 2) { in read_proc_uptime() 84 pr_err("failed to parse /proc/uptime"); in read_proc_uptime() 87 fclose(proc); in read_proc_uptime() 96 FILE *proc; in read_proc_stat_btime() local 99 proc = fopen("/proc/stat", "r"); in read_proc_stat_btime() [all …]
|
/linux/fs/dlm/ |
H A D | user.c | 183 struct dlm_user_proc *proc; in dlm_user_add_ast() local 206 proc = ua->proc; in dlm_user_add_ast() 214 spin_lock_bh(&proc->asts_spin); in dlm_user_add_ast() 229 list_add_tail(&cb->list, &proc->asts); in dlm_user_add_ast() 230 wake_up_interruptible(&proc->wait); in dlm_user_add_ast() 233 spin_unlock_bh(&proc->asts_spin); in dlm_user_add_ast() 237 spin_lock_bh(&proc->locks_spin); in dlm_user_add_ast() 242 spin_unlock_bh(&proc->locks_spin); in dlm_user_add_ast() 248 static int device_user_lock(struct dlm_user_proc *proc, in device_user_lock() argument 256 ls = dlm_find_lockspace_local(proc->lockspace); in device_user_lock() [all …]
|
/linux/rust/macros/ |
H A D | quote.rs | 48 quote_spanned!(@proc tokens span $($tt)*); 52 (@proc $v:ident $span:ident) => {}; 53 (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => { 57 quote_spanned!(@proc $v $span $($tt)*); 59 (@proc $v:ident $span:ident #(#$id:ident)* $($tt:tt)*) => { 65 quote_spanned!(@proc $v $span $($tt)*); 67 (@proc $v:ident $span:ident ( $($inner:tt)* ) $($tt:tt)*) => { 69 quote_spanned!(@proc tokens $span $($inner)*); 74 quote_spanned!(@proc $v $span $($tt)*); 76 (@proc $v:ident $span:ident [ $($inner:tt)* ] $($tt:tt)*) => { [all …]
|
/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | qcom,rpm-proc.yaml | 4 $id: http://devicetree.org/schemas/remoteproc/qcom,rpm-proc.yaml# 18 | RPM subsystem (qcom,rpm-proc) | 69 - qcom,apq8084-rpm-proc 70 - qcom,ipq6018-rpm-proc 71 - qcom,ipq9574-rpm-proc 72 - qcom,mdm9607-rpm-proc 73 - qcom,msm8226-rpm-proc 74 - qcom,msm8610-rpm-proc 75 - qcom,msm8909-rpm-proc 76 - qcom,msm8916-rpm-proc [all …]
|
/linux/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_proc.c | 24 *width = isp_dev->proc.mbus_format.width; in sun6i_isp_proc_dimensions() 26 *height = isp_dev->proc.mbus_format.height; in sun6i_isp_proc_dimensions() 112 struct sun6i_isp_proc *proc = &isp_dev->proc; in sun6i_isp_proc_enable() local 118 if (source == &proc->source_csi0) in sun6i_isp_proc_enable() 142 struct v4l2_mbus_framefmt *mbus_format = &isp_dev->proc.mbus_format; in sun6i_isp_proc_configure() 170 struct sun6i_isp_proc *proc = &isp_dev->proc; in sun6i_isp_proc_s_stream() local 171 struct media_pad *local_pad = &proc->pads[SUN6I_ISP_PROC_PAD_SINK_CSI]; in sun6i_isp_proc_s_stream() 189 if (source_subdev == proc->source_csi0.subdev) in sun6i_isp_proc_s_stream() 190 source = &proc->source_csi0; in sun6i_isp_proc_s_stream() 192 source = &proc->source_csi1; in sun6i_isp_proc_s_stream() [all …]
|
/linux/tools/testing/selftests/livepatch/ |
H A D | test-livepatch.sh | 15 # - load a livepatch that modifies the output from /proc/cmdline and 23 if [[ "$(cat /proc/cmdline)" != "$MOD_LIVEPATCH1: this has been live patched" ]] ; then 31 if [[ "$(cat /proc/cmdline)" == "$MOD_LIVEPATCH1: this has been live patched" ]] ; then 50 # - load a livepatch that modifies the output from /proc/cmdline and 60 grep 'live patched' /proc/cmdline > /dev/kmsg 61 grep 'live patched' /proc/meminfo > /dev/kmsg 65 grep 'live patched' /proc/cmdline > /dev/kmsg 66 grep 'live patched' /proc/meminfo > /dev/kmsg 71 grep 'live patched' /proc/cmdline > /dev/kmsg 72 grep 'live patched' /proc/meminfo > /dev/kmsg [all …]
|
/linux/Documentation/userspace-api/ |
H A D | lsm.rst | 19 The proc filesystem provides this value in ``/proc/self/attr/current``. 21 Smack also provides this value in ``/proc/self/attr/smack/current``. 22 AppArmor also provides this value in ``/proc/self/attr/apparmor/current``. 26 The proc filesystem provides this value in ``/proc/self/attr/exec``. 28 AppArmor also provides this value in ``/proc/self/attr/apparmor/exec``. 32 The proc filesystem provides this value in ``/proc/self/attr/fscreate``. 37 The proc filesystem provides this value in ``/proc/self/attr/keycreate``. 42 The proc filesystem provides this value in ``/proc/self/attr/prev``. 44 AppArmor also provides this value in ``/proc/self/attr/apparmor/prev``. 48 The proc filesystem provides this value in ``/proc/self/attr/sockcreate``.
|
/linux/tools/testing/selftests/mm/ |
H A D | run_vmtests.sh | 141 # get huge pagesize and freepages from /proc/meminfo 149 done < /proc/meminfo 167 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages) 172 echo 3 > /proc/sys/vm/drop_caches 173 if ! echo $((lackpgs + nr_hugepgs)) > /proc/sys/vm/nr_hugepages; then 181 done < /proc/meminfo 222 echo 3 > /proc/sys/vm/drop_caches 224 echo 1 > /proc/sys/vm/compact_memory 258 shmmax=$(cat /proc/sys/kernel/shmmax) 259 shmall=$(cat /proc/sy [all...] |
/linux/tools/testing/selftests/damon/ |
H A D | damon_nr_regions.py | 18 proc = subprocess.Popen(['./access_memory_even', '%d' % real_nr_regions, 28 targets=[_damon_sysfs.DamonTarget(pid=proc.pid)], 36 proc.terminate() 41 while proc.poll() is None: 45 proc.terminate() 51 proc.terminate() 57 proc.terminate() 63 proc.terminate() 86 proc = subprocess.Popen(['./access_memory_even', '14', '%d' % sz_region]) 94 targets=[_damon_sysfs.DamonTarget(pid=proc.pid)], [all …]
|
/linux/lib/ |
H A D | fw_table.c | 114 static __init_or_fwtbl_lib int call_handler(struct acpi_subtable_proc *proc, in call_handler() argument 118 if (proc->handler) in call_handler() 119 return proc->handler(hdr, end); in call_handler() 120 if (proc->handler_arg) in call_handler() 121 return proc->handler_arg(hdr, proc->arg, end); in call_handler() 132 * @proc: array of acpi_subtable_proc struct containing entry id 134 * @proc_num: how big proc is? 137 * For each proc_num find a subtable with proc->id and run proc->handler 146 * On success returns sum of all matching entries for all proc handlers. 153 struct acpi_subtable_proc *proc, in acpi_parse_entries_array() argument [all …]
|
/linux/Documentation/arch/s390/ |
H A D | common_io.rst | 24 An ignored device can be un-ignored later; see the "/proc entries"-section for 54 /proc entries 57 * /proc/cio_ignore 61 You can un-ignore certain or all devices by piping to /proc/cio_ignore. 68 - echo free 0.0.0030-0.0.0032 > /proc/cio_ignore 71 - echo free 0.0.0041 > /proc/cio_ignore will furthermore un-ignore device 73 - echo free all > /proc/cio_ignore will un-ignore all remaining ignored 81 /proc/cio_ignore; "add <device range>, <device range>, ..." will ignore the 91 "echo add 0.0.a000-0.0.accc, 0.0.af00-0.0.afff > /proc/cio_ignore" 98 "echo purge > /proc/cio_ignore" [all …]
|
/linux/include/uapi/linux/ |
H A D | sysctl.h | 74 /* /proc/sys/fs/inotify/ */ 228 /* /proc/sys/kernel/random */ 239 /* /proc/sys/kernel/pty */ 246 /* /proc/sys/bus/isa */ 254 /* /proc/sys/net/core */ 281 /* /proc/sys/net/ethernet */ 283 /* /proc/sys/net/802 */ 285 /* /proc/sys/net/unix */ 294 /* /proc/sys/net/netfilter */ 331 /* /proc/sys/net/ipv4 */ [all …]
|
/linux/Documentation/sound/designs/ |
H A D | oss-emulation.rst | 33 /proc/asound/oss/sndstat. This shows in the same syntax of 35 On ALSA, you can symlink /dev/sndstat to this proc file. 37 Please note that the devices listed in this proc file appear only 129 writing a command to the proc file. There is a proc file for each PCM 130 stream, ``/proc/asound/cardX/pcmY[cp]/oss``, where X is the card number 132 playback and ``c`` for capture, respectively. Note that this proc file 171 % echo "quake 0 0 direct" > /proc/asound/card0/pcm0p/oss 177 % echo "quake 0 0 disable" > /proc/asound/card0/pcm0c/oss 179 The permission of proc files depend on the module options of snd. 202 You can check the currently defined configuration by reading the proc [all …]
|
/linux/net/sunrpc/auth_gss/ |
H A D | gss_rpc_upcall.c | 42 #define PROC(proc, name) \ argument 43 [GSSX_##proc] = { \ 44 .p_proc = GSSX_##proc, \ 49 .p_statidx = GSSX_##proc, \ 50 .p_name = #proc, \ 54 PROC(INDICATE_MECHS, indicate_mechs), 55 PROC(GET_CALL_CONTEXT, get_call_context), 56 PROC(IMPORT_AND_CANON_NAME, import_and_canon_name), 57 PROC(EXPORT_CRED, export_cred), 58 PROC(IMPORT_CRED, import_cred), [all …]
|
/linux/fs/smb/server/ |
H A D | smb2ops.c | 172 [SMB2_NEGOTIATE_HE] = { .proc = smb2_negotiate_request, }, 173 [SMB2_SESSION_SETUP_HE] = { .proc = smb2_sess_setup, }, 174 [SMB2_TREE_CONNECT_HE] = { .proc = smb2_tree_connect,}, 175 [SMB2_TREE_DISCONNECT_HE] = { .proc = smb2_tree_disconnect,}, 176 [SMB2_LOGOFF_HE] = { .proc = smb2_session_logoff,}, 177 [SMB2_CREATE_HE] = { .proc = smb2_open}, 178 [SMB2_QUERY_INFO_HE] = { .proc = smb2_query_info}, 179 [SMB2_QUERY_DIRECTORY_HE] = { .proc = smb2_query_dir}, 180 [SMB2_CLOSE_HE] = { .proc = smb2_close}, 181 [SMB2_ECHO_HE] = { .proc = smb2_echo}, [all …]
|
/linux/Documentation/admin-guide/laptops/ |
H A D | laptop-mode.rst | 82 Laptop mode is controlled by the knob /proc/sys/vm/laptop_mode. This knob is 95 /proc/sys/vm to about 10 minutes (by default), which means that pages that are 159 the /proc/sys/vm/dirty_ratio sysctl. 165 this nice and low. This corresponds to the /proc/sys/vm/dirty_background_ratio 418 if [ ! -e /proc/sys/vm/laptop_mode ] ; then 423 if [ ! -w /proc/sys/vm/laptop_mode ] ; then 544 if [ -d /proc/sys/vm/pagebuf ] ; then 548 echo $XFS_AGE > /proc/sys/vm/pagebuf/lm_flush_age 549 echo $XFS_AGE > /proc/sys/fs/xfs/lm_sync_interval 550 elif [ -f /proc/sys/fs/xfs/lm_age_buffer ] ; then [all …]
|
/linux/Documentation/arch/x86/ |
H A D | mtrr.rst | 55 The CONFIG_MTRR option creates a /proc/mtrr file which may be used 61 There are two interfaces to /proc/mtrr: one is an ASCII interface 72 % cat /proc/mtrr 78 # echo "base=0xf8000000 size=0x400000 type=write-combining" >! /proc/mtrr 82 # echo "base=0xf8000000 size=0x400000 type=write-combining" >| /proc/mtrr 86 % cat /proc/mtrr 109 in other words the X server will manipulate /proc/mtrr using the 118 %echo "base=0xfb000000 size=0x1000000 type=write-combining" >/proc/mtrr 119 %echo "base=0xfb000000 size=0x1000 type=uncachable" >/proc/mtrr 123 % cat /proc/mtrr [all …]
|
/linux/tools/testing/selftests/memfd/ |
H A D | run_hugetlbfs_test.sh | 14 # Get count of free huge pages from /proc/meminfo 20 done < /proc/meminfo 26 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages` 34 echo 3 > /proc/sys/vm/drop_caches 35 echo $(( $hpages_needed + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages 40 done < /proc/meminfo 50 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages 67 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
|