UNIX中设备是如何表示的?

来源:互联网 发布:阿特曼模型数据来源 编辑:程序博客网 时间:2024/05/22 14:28

UNIX中所有的设备都是通过文件来表示的,其存储在/dev目录下。内核通过该文件的inode结构中的type域来得知该文件是设备文件还是普通的文件。

 

How are devices represented in UNIX?

All the devices in UNIX is represented by files which are located in /dev directory. The kernal checks the 'type' fild of the file's inode strcuture to differentiate device files and ordinary files.

 

原创粉丝点击