. How does the kernel differentiate device files and ordinary files?

Kernel checks 'type' field in the file's inode structure. device filles are of 2 types --- charcater device file and block device file type field in the file's inode structure b--- block device file c--- character device file

No comments: