During the 2.5 development cycle, the Linux driver model was introduced to fix the following shortcomings of version 2.4:
Sysfs was designed to export the information present in the device tree which would then no longer clutter up procfs. It was written by Patrick Mochel.34 Maneesh Soni later wrote the sysfs backing store patch to reduce memory usage on large systems.
During the next year of 2.5 development the infrastructural capabilities of the driver model and driverfs began to prove useful to other subsystems.56 kobjects were developed to provide a central object management mechanism and driverfs was renamed to sysfs to represent its subsystem agnosticism.
Sysfs is mounted under the /sys mount point. If it is not mounted automatically during initialization, it can be mounted manually using the mount command: mount -t sysfs sysfs /sys.7
Sysfs is used by several utilities to access information about hardware and its driver (kernel modules) such as udev or HAL. Scripts have been written to access information previously obtained via procfs, and some scripts configure device drivers and devices via their attributes.
Patrick Mochel and Mike Murphy. "sysfs - _The_ filesystem for exporting kernel objects". kernel.org. https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt ↩
SUSE. "sysctl man page". FreeBSD. sysctl is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for sysctl support in Linux. You can use sysctl to both read and write sysctl data. https://www.freebsd.org/cgi/man.cgi?query=sysctl&sektion=8&manpath=SuSE+Linux%2fi386+11.3 ↩
Torvalds, Linus (18 October 2002). "Linux v2.5.44 - and offline for a week". https://lkml.org/lkml/2002/10/19/8 ↩
Torvalds, Linus (4 November 2002). "Linux v2.5.46". https://lkml.org/lkml/2002/11/4/213 ↩
Mochel, Patrick (17 October 2001). "[RFC] New Driver Model for 2.5". https://lkml.org/lkml/2001/10/17/147 ↩
Jansen, Tim (1 November 2001). "Re: [PATCH] 2.5 PROPOSAL: Replacement for current /proc of shit". https://lkml.org/lkml/2001/11/1/38 ↩
"SCSI Interfaces Guide — The Linux Kernel documentation". www.kernel.org. Retrieved 2020-11-13. https://www.kernel.org/doc/html/latest/driver-api/scsi.html ↩