What is the major difference between proc and sys?
what is the actual difference between /sys and /proc directories?
okay, they are virtual file systems used to import kernel data structures and hardware information. And the fact that /proc also has running process info stored and sys has the whole system and kernel info stored what is meant by that? How does /proc identify the hardware such that it displays its vendor and other stuff, are there any rules through which it decides this info? Why /sys has only one value per file for all the device attributes? which of these is Udev dependent on? How often Linux checks for hardware errors and where does that happen? Machine check errors, where are they stored? |
Quote:
Quote:
Quote:
Quote:
Code:
# cat /sys/block/dm-2/stat Quote:
Quote:
|
/proc is the wild west - a hangover from *nix history. Any script-kiddy can create a "file" in /proc and export whatever.
/sysfs is an attempt by the kernel devs to enforce some structure. Any tool may use either and/or both, although new code is encouraged to use only the latter. But it's Linux ... :shrug: |
All times are GMT -5. The time now is 05:33 PM. |