Comment on I summarized my understanding of Linux systemsparentComments−wolletd2yAlso, a lot of devices require very specific ioctl() commands to work with and don't provide everything as a file.For example, you can't set the baudrate of a serial port by writing it to some /proc node.−arghwhat2ynit: The ioctl syscall targets files just the same as the write syscall.Everything being a file, and everything being read/write calls are different things. There's pros and cons.
Comments
Also, a lot of devices require very specific ioctl() commands to work with and don't provide everything as a file.
For example, you can't set the baudrate of a serial port by writing it to some /proc node.
nit: The ioctl syscall targets files just the same as the write syscall.
Everything being a file, and everything being read/write calls are different things. There's pros and cons.