Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Unix%20Interview%20Questions%20and%20Answers

Question: 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.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook