/sys/ documentation?
The /sys
directory is called sysfs
. You can find out about it:
- wikipedia
- official kernel documentation
How devices are "set up", in general, has nothing to do with /sys
. Most likely you are looking for information about udev
or another hotplugging daemon.
You can find authoritative information about /sys
(for which, the underlying filesystem is called sysfs
) in the kernel documentation.