Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

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

8 like 0 dislike
Hello
How do you create special files like named pipes and device files?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
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.
answered 1 year ago by DBA-boss (120,990 points)

Related questions

5 like 0 dislike
1 answer
10 like 0 dislike
1 answer
6 like 0 dislike
1 answer
asked 1 year ago by DBA-boss (120,990 points)
9 like 0 dislike
1 answer
asked 1 year ago by DBA-boss (120,990 points)
10 like 0 dislike
1 answer