This is not a kernel program, but a user program that reports
informations about the system by reading the /proc
filesystem. This program works both with 2.2 and 2.4 kernels.
slabinfo memory caches.
For each slab there is a line with
name, active objects, available objects, size (B) of each object,
number of active pages, total number of pages.
partitions block device partitions.
For each device there is a line with
major, minor, number of blocks, name, read info, write info,
i/o in flight, use time (secs), average queue length.
The read/write info contain
io, merge, sectors, usage time (secs).
See get_partition_list() in drivers/block/genhd.c.
The info about the hard disc is contained in the struct hd_struct
(which contains also the start_sector and the number of sectors).
filesystems contains the list of filesystems supported by the runnig kernel. These can be either built in the kernel or loaded as modules. See get_filesystem_list() (fs/super.c) which scans the file_systems list and for each filesystem prints "nodev" if it does not require a device, and then the name.