1.

How Do You Create Special Files Like Named Pipes And Device Files?

Answer»

The system call mknod creates special FILES in the following sequence:

  1. kernel assigns NEW inode,
  2. Sets the file type to indicate that the file is a pipe, directory or special file,
  3. If it is a device file, it MAKES the other entries LIKE major, minor device NUMBERS.

For example:

If the device is a disk, major device number refers to the disk controller and minor device number is the disk.

The system call mknod creates special files in the following sequence:

For example:

If the device is a disk, major device number refers to the disk controller and minor device number is the disk.



Discussion

No Comment Found