dev目录介绍

来源:互联网 发布:天下粮仓知乎 编辑:程序博客网 时间:2024/06/09 12:24
  1 charMemory devices  1 = /dev/memPhysical memory access  2 = /dev/kmemKernel virtual memory access  3 = /dev/nullNull device 黑洞  4 = /dev/portI/O port access  5 = /dev/zeroNull byte source 返回无限空字符  6 = /dev/coreOBSOLETE - replaced by /proc/kcore  7 = /dev/fullReturns ENOSPC on write 满的文件  8 = /dev/randomNondeterministic random number gen.  9 = /dev/urandomFaster, less secure random number gen. 10 = /dev/aioAsynchronous I/O notification interface 11 = /dev/kmsgWrites to this come out as printk's, reads 写消息export the buffered printk records. 12 = /dev/oldmemUsed by crashdump kernels to accessthe memory of the kernel that crashed.


  1 blockRAM disk  0 = /dev/ram0First RAM disk  1 = /dev/ram1Second RAM disk    ...


  2 charPseudo-TTY masters  0 = /dev/ptyp0First PTY master  1 = /dev/ptyp1Second PTY master    ...


  2 blockFloppy disks  0 = /dev/fd0Controller 0, drive 0, autodetect  1 = /dev/fd1Controller 0, drive 1, autodetect


  3 charPseudo-TTY slaves  0 = /dev/ttyp0First PTY slave  1 = /dev/ttyp1Second PTY slave    ...


...

原文见kernel/linux-3.10.y/Documentation/devices.txt


1 0
原创粉丝点击