The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
32 views

Permanent permissions change on /proc

I have a Kopete plug-in that tries to blink my Thinkpad light when I have a new incoming message. To accomplish this it uses a /proc virtual file provided by the thinkpad-acpi kernel module, situated ...
0
votes
0answers
49 views

What is the difference between cat and normal file operations on proc files

I have implemented a ps like utility module for procfs which extracts basic information such as command, pid, tgid etc. I have used the sequence file approach. I am inspecting my proc file using two ...
3
votes
2answers
274 views

/proc/cpuinfo doesn't show CPU frequency at all

/proc/cpuinfo doesn't show CPU frequency at all. I built the kernel on my own. Did I miss some kernel configuration? pi@raspberrypi ~ $ cat /proc/cpuinfo processor : 0 model name : ...
0
votes
1answer
715 views

Linux: command to find out number of cores the process is running on at any instance [duplicate]

What is the command to find out number of cores the process is running on at any instance ? -Thanks
0
votes
2answers
58 views

How do I get the number of processes that have been created since the last boot on a Linux machine

How do I get the number of processes that have been created since the last boot on a Linux machine? I want to get it from a C++ program. Which proc file stores it?
0
votes
3answers
200 views

Get hard disk size without df

How to check a vendor's statement about a hard disk size? df shows results partition oriented (including tmpfs), one has to execute it and count label oriented. How to get in a single command or cat ...
0
votes
0answers
30 views

How can I determine what process controls the master side of a pty?

The other day I couldn't figure out where the stderr of my gnome-shell process was going to, on a Linux desktop system. lsof showed me file descriptors 1 and 2 pointing to /dev/pts/21. Eventually ...
2
votes
1answer
87 views

Why tail -f is not working for a proc file?

I have a proc file which is updated by a driver. In user space I am reading using tail. It is working fine, But when i give -f option for tail, It is not working. This means it is reading file ...
51
votes
4answers
3k views

How does /proc/* work?

There are many files in /proc, like /proc/cpuinfo, /proc/meminfo, /proc/devices and so on, which, when opened, return system information. These files do not seem to have any existence in reality, as ...
1
vote
1answer
572 views

How to enable sched_compat_yield?

I am not able to see the sched_compat_yield entry under /proc/sys/kernel/. How to enable this propery in the kernel (so that I can tweak it for some debugging purpose) ? Currently Available Entries: ...
1
vote
0answers
114 views

Issues with Pro*C compilation on Suse linux

Would someone please explain what all environment variables needs to be set prior compiling Pro*C code On Suse Linux. I have tried setting up Oracle_Home, Path and LD Library path according to the ...
0
votes
1answer
202 views

Why `/proc` file system should be mounted when re-install GRUB from `chroot`?

Currently, the MBR on my machine is corrupted, so I decide to re-install GRUB from a liveCD and with chroot. From this tutorial, I can complete the re-installation. However, I'm not clear about the ...
0
votes
3answers
79 views

directory in /proc/sys/net/ipv4/config have no hard links?

Why the directories inside /proc/sys/net/ipv4/config have no hard links? ls -l /proc/sys/net/ipv4/conf total 0 dr-xr-xr-x 0 root root 0 Dec 31 08:27 all dr-xr-xr-x 0 root root 0 Dec 31 08:27 default ...
9
votes
1answer
14k views

cat /proc/meminfo what do all those numbers mean

In reading the man page on the free command in Linux. I found that is gets its info from /proc/meminfo. I understand a few of the entries, like MemTotal and MemFree. What do the rest mean. cat ...
1
vote
1answer
800 views

How can I get the number of threads running in a process from /proc/[pid]/stat in Linux?

I have the pid of the process. I would like to know the current number of thread running in the process. I know I can read /proc/pid/stat for this information, but I'm not sure how to specifically get ...
3
votes
1answer
2k views

Bash: permission denied for file write

I followed this tutorial guide on "How to Create Linux Proc Files in C Program using LKM". I've successfully made my module and loaded it in. Now I want to echo to my proc file to make sure the ...
2
votes
2answers
2k views

/proc filesystem in AIX

This question is in context of AIX (5.3) On what basis does space gets allocated for whatever needs to be stored under the virtual filesystem /proc Does the OS grabs space from / ? For instance I ...
4
votes
2answers
833 views

What is “ln -L” (--logical) for?

I can read in the ln man page: -L, --logical make hard links to symbolic link references I read somewhere that ln -L could be used to re-link files that were deleted but which are ...
3
votes
2answers
436 views

What do the different /proc/bus/pci/0x directories represent?

What do the different /proc/bus/pci/0x directories represent? Do they represent the different PCI/PCI-E sockets on a board? If I have one mini pci and 2 PCI-E sockets on my board, should I be seeing ...