Since VM is volatile in nature, tmpfs data is not preserved between reboots. Hence this file system is used to store
5.1.3.3sysfs
sysfs is an
sysfs is typically mounted on /sys. It is a window into the kernel, and into the data objects that the kernel creates and controls.
sysfs is created on boot, and automatically populated when internal objects are registered with their subsystems. Because of its nature and its design, the hierarchy it creates is a completely accurate representation of the kernel's internals. An administrator can change kernel object parameters by editing files in /sys. Access Control is performed by the VFS pathname translation mechanism function vfs_permission(), which prevents access by normal users to data belonging to the kernel.
The kernel initially determines permissions for files in /sys, but these can be changed. Since files in /sys are not real
5.1.3.4devpts
The devpts file system is a special file system that provides pseudo terminal support. Pseudo terminals are implemented as character devices. A pair of character
Any data written on the master device is delivered to the slave device, as though it had been received from a hardware interface. Any data written on the slave device can be read from the master device.
In order to acquire a pseudo terminal, a process opens the /dev/ptmx master device. The system then makes available to the process number a slave, which can be accessed as /dev/pts/number. An administrator can mount the devpts special file system by providing uid, gid, and mode values on the mount command line. If specified, these values set the owner, group, and mode of the newly created pseudo terminals to the specified values.
In terms of access control, pseudo terminal devices are identical to device special files. Therefore, access control is performed by the VFS pathname translation mechanism function vfs_permission(). Because files in /dev/pts are not real
5.1.3.5rootfs
rootfs is a special file system that the kernel mounts during system initialization. This file system provides an empty directory that serves as an initial mount point, where temporary files can be stored during the boot process. Then, the kernel mounts the real root file system over the empty directory. The rootfs file system allows the kernel to easily change the root file system. Because rootfs uses an empty directory that is replaced by the real root file system before the init process starts, there is no issue of object reuse.
The rootfs is used internally in the kernel when doing root mounting. Because a real file system uses and replaces rootfs before the init process, there is no mechanism to access it.
45