101.1 Determine and Configure H/W Settings: Filesystems and Device FIles Flashcards
Filesystems and Device Files
Linux treats everything on a system as a
File
to include hardware devices
Filesystems and Device Files
Info about system h/w and state of the system is contained in this ‘pseudofilesystem’
procfs
Filesystems and Device Files
something that looks like a system device though it is not associated with real hardware and it exposes kernel info in a human readable format
‘pseudofilesystem’
Filesystems and Device Files
Usually where the procfs filesystem is mounted
/proc
Filesystems and Device Files
Within the /proc directory you will find directories that correspond in label (number) to the associated “_____” of running processes
Process ID
PID
Filesystems and Device Files
file or link to another file containing info on all locally mounted file systems
/proc/mounts
Filesystems and Device Files
shows info about the interrupts in use in the system and what they are associated with - the h/w that is using them
/proc/interrupts
Filesystems and Device Files
one or more addresses that id a device and associated kernel modules
/proc/ioports
Filesystems and Device Files
Direct Memory Access (DMA) - values used by H/W to access system memory directly (no CPU involvement)
/proc/dma
Filesystems and Device Files
USB device IDs and the kernel modules associated with them
/proc/usb
Filesystems and Device Files
PCI device IDs and the kernel modules associated with them
/proc/pci
Filesystems and Device Files
Another ‘pseudofilesystem’ that contains info about system H/W
sysfs
Filesystems and Device Files
sysfs was designed to address some of the problems associated with the procfs method
Unstructured data
both h/w and s/w info was consolidated in the structure
Filesystems and Device Files
the ‘sysfs’ filesystem is mounted here
/sys
Filesystems and Device Files
Within the sys directory you will find directories that correspond to
system h/w and kernel modules associated with them
physical | Virtual