Device files and named pipe

How can you create special files like device files and named pipes?

E

Expert

Verified

The system call mknod makes special files in the following series are as follows:

i) Kernel allocates new inode,
ii) Sets the file type to indicate which the file is a pipe, special or directory file,
iii) If it is a device file, it creates the other entries like minor, major device numbers.

For instance: If the device is a disk, major device number submits to the disk controller and minor device number is the disk.

   Related Questions in Basic Computer Science

©TutorsGlobe All rights reserved 2022-2023.