Библиотека сайта rus-linux.net
MAKEDEV is the preferred way of creating
device files which are not present. However sometimes the
MAKEDEV script will not know about the device
file you wish to create. This is where the mknod
command comes in. In order to use mknod you need
to know the major and minor node numbers for the device you wish to
devices.txt file in the kernel
source documentation is the canonical source of this
/dev/ttyS0device file. We need to use mknod to create it. We know from looking at the
devices.txtfile that it should be a character device with major number 4 and minor number 64. So we now know all we need to create the file.
Только зарегистрированные пользователи могут оценивать и комментировать статьи.