lunes, 6 de marzo de 2023

Special Filesystems

 

Special Filesystems

Linux widely employs the use of special filesystems for certain tasks. These are particularly useful for accessing various kernel data structures and tuning kernel behavior, or for implementing particular functions. 

Note that some of these special filesystems have mount points, such as proc at /proc or sys at /sys and others do not. Examples of special filesystems that have no mount point include sockfs or pipefs; this means user applications don't interact with them, but the kernel uses them, taking advantage of VFS layers and code. These special filesystems are really not true filesystems; they are kernel facilities or subsystems that find the filesystem structural abstraction to be a useful way to recognize data and functionality.

 

Table: Special Filesystems
FILESYSTEMMOUNT POINTPURPOSE
rootfsNoneDuring kernel load, provides an empty root directory
hugetlbfsAnywhereProvides extended page access (2 or 4 MB on X86)
bdevNoneUsed for block devices
proc/procPseudofilesystem access to many kernel structures and subsystems
sockfsNoneUsed by BSD Sockets
tmpfsAnywhereRAM disk with swapping, re-sizing
shmNoneUsed by System V IPC Shared Memory
pipefsNoneUsed for pipes
binfmt_miscAnywhereUsed by various executable formats
devpts/dev/ptsUsed by Unix98 pseudo-terminals
usbfs/proc/bus/usbUsed by USB sub-system for dynamical devices
sysfs/sysUsed as a device tree
debugfs/sys/kernel/debugUsed for simple debugging file access

No hay comentarios:

Publicar un comentario