Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [procfs]

The tag has no usage guidance.

0
votes
0answers
77 views

Qemu-user : get memory maps while debugging remotely

I am trying to get the memory map of a process I am debugging remotely (peda pull request link), the process is ran with qemu-user, for example: qemu-arm -L /usr/arm-linux-gnueabihf/ -g 1234 ./ch47 ...
1
vote
2answers
112 views

Can user space programs provide/implement sysfs or procfs files to pass data to and from a program?

Kernel space device drivers usually implement directories and file that show through /sys or /proc. Can the long running user space programs do this as well? I have a daemon or long running program ...
7
votes
1answer
154 views

Why would ps *very* occasionally fail to find a valid process?

I've run into an odd issue in which a ps -o args -p <pid> command very occasionally fails to find the process in question, even though it is definitely running on the server in question. The ...
1
vote
1answer
107 views

Access /proc/pid/ns/net without running query process as root?

In a program I'm enumerating network namespaces by scanning /proc/pid/ for ns/net links. This program runs inside the "root" namespaces (original init) of the host itself. Normally, I need to run the ...
2
votes
1answer
378 views

Process Priority value is different in procfs

For example, let's examine the value of PRI of firefox with ps, and then see what is the value stored in procfs. $ ps -o pid,comm,pri,ni 7000 PID COMMAND PRI NI 7000 firefox 19 ...
0
votes
1answer
511 views

What is proc in Grub?

I was playing with Grub from its command line, I noticed something that grabbed my intention, I listed the devices through Grub's ls command and I noticed there's a virtual device named (proc): grub&...
1
vote
1answer
301 views

Find a kernel module behind virtual network interface by info from sysfs/procfs

I'd like to find kernel module which is behind virtual network interface (e.g interfaces using veth, dummy kernel modules, NOT physical NIC). It's easy with ethtool: $ ethtool -i ltp_ns_veth2 |grep ...
2
votes
1answer
2k views

Is systemd's logind or Gnome-wayland-session incompatible with hidepid=2?

Is there any documentation regarding systemd which would suggest that setting the hidepid=2 mount option to the /proc procfs will cause problems? the error message part before the failure to start a ...
19
votes
1answer
2k views

ps only prints up to 4096 characters of any process's command line

When I grep for a java process I get below output but it's limited to 4096 characters which results to actual process name(which is kafka.Kafka) not shown in grep output. Is this a limitation of grep?...
0
votes
2answers
1k views

How to determine the options Linux kernel was build with? [duplicate]

Say, I have custom kernel from my distribution, how could I get list of all options the kernel was build with? It's possible to get them by reading config file from kernel package from vendor's repo, ...
0
votes
2answers
330 views

Does procs_running include the process which issues requests?

There is a procs_running value in /proc/stat on Linux which shows the number of processes (threads) running. The question is: does this value include the current process which is querying procfs or ...
8
votes
1answer
2k views

What is securityfs?

While I am studying, I saw security file system which is mounted on /sys/kernel/security . It seems like to operate similar to sysfs or proc file system. Security file system keeps data on memory not ...
9
votes
3answers
10k views

Current umask of a process with <pid>

Is it possible to get current umask of a process? From /proc/<pid>/... for example?
7
votes
2answers
404 views

Strange mount entries, procfs on net:

On a device I get among others the following strange entries for mount: none on net:[4026532603] type proc (rw,relatime) none on net:[4026532424] type proc (rw,relatime) Any idea what or for what ...
2
votes
1answer
1k views

What is the relationship (similarity and differences) between /proc/devices and /dev entries in Linux?

When we register a driver, the "name" parameter shows up in /proc/devices, yet we can write to the devices using the entry in /dev corresponding to the device. What are the core ideas behind /proc and ...
2
votes
1answer
271 views

What is /proc/filesystems supposed to be and why is it different from /lib/modules/linux_ver/kernel/fs?

The very little documentation about /proc/filesystems says it is a "list of supported file systems". I see a lot of file system modules in /lib/modules/linux_ver/kernel/fs, most of which do not appear ...