linux 设备管理 (二) linux 设备管理历史

  • 关注点
1. /dev 节点文件(b/c)的创建	(mknod)
2. /dev 节点文件的权限管理 // mknod -m 666 tty1 c 4 1
3. 驱动的自动加载 (/lib/modules/`uname -r`/)
4. 链接文件的创建 // 没有实例
5. 用户自定义设备名称	(locate rules.d)
  • index

现在(2021116)还在使用的技术有 A C D
A 需要手动操作
B C D 是自动化操作 

A.静态节点	: 现在有些嵌入式平台和PC平台还在用,只不过创建的静态节点数目很少(console null tty1 tty2 tty3 tty4)
	满足了 1 2
B.devfs 	: Linux 2.3.46pre5 – 2.6.17
	满足了 1 2 4(?)
C.udev  	: Linux 2.5 - 今
	满足了 1(部分) 2 3 4 5
D.devtmpfs 	: Linux 2.6.32 - 今
	满足了 1 2 
E.hotplug   : ?

静态节点

功能:
	能让用户空间程序通过访问创建的设备文件来访问驱动
如何实现:
	做文件系统的时候通过mknod命令在/dev下创建设备节点
	例如 mknod -m 666 tty1 c 4 1
	参数 有
		1. 设备名(tty1)
		2. 文件类别(c,字符设备)
		3. 权限属性(-m 666)
		4. 主设备号(4)
		5. 次设备号(1)
问题
	1. 鉴别一个系统中存在的设备变得困难
		1. 被Linux认识的设备都会创建好设备节点,设备节点多
		2. 没有办法可以分辨出硬件设备是否真的存在于系统之中
	2. 主次设备号已经耗尽
		设备号有限,设备无限
		如果没添加一个设备,就要占用linux中的一个设备号
		由于不断涌入的新设备,设备号会慢慢耗尽
		哪怕该设备(已经占用了一个设备号A)在某些板子上并不存在,新的还没设备号的设备也不能占用该设备号A
		

devfs

改善:
	解决了 静态文件机制 的 哪些问题
		问题1. 鉴别一个系统中存在的设备变得困难
			如果没有静态创建机制的参与,那么 /dev下的文件都是真实存在的
		问题2. 主次设备号已经耗尽
			注册设备的时候可以调用register_chrdev传递0主设备号以获得可用的主设备号
			调用devfs_register的时候指定次设备号
新增功能:
	1.使用驱动自定的设备名称来注册设备节点,同时它兼容老的设备号
如何实现:
	devfs 文件系统(挂载在/dev) 和 devfsd (运行在内核空间)
	用一个守护进程devfsd来做一些与以前硬件驱动兼容的事情
	向devfs注册的驱动程序,devfsd将会在/dev下建立相应的设备文件
	为了兼容,devfsd 这个守护进程将会在某个设定的目录中建立以主设备号为索引的设备文件
	
问题:
	1. 不确定的设备映射
		有时一个设备映射的设备文件可能不同,例如我的U盘可能对应sda有可能对应sdb(根据插入顺序来定)

udev


改善:
	问题1. 不确定的设备映射
		让udev下的可配置(普通用户可配置)文件(rules.d文件夹下的文件)决定设备名
新增功能:
	1.监听热插拔事件,并根据此事件,insmod/rmmod驱动
如何实现
	udev文件系统(挂载在/dev)udevd(运行在用户空间)
	1.将devfs的两部分内容做改进
		1. devfs -> udevfs
		2. devfsd -> udevd
	工作流程
		A.热插拔时,设备的详细信息会输出到位于/sys的sysfs
		B.udevd根据该信息来插入设备对应的驱动
		C.驱动insmod时,调用相应的api注册设备(机制),详细的信息同样会输出到位于/sys的sysfs
		D.udevd 根据 该信息 和 rules.d 的 规则文件(策略)会 以与该信息匹配的规则文件中的名字为名 创建 设备文件

特点:
	udev 实现了 机制(做什么) 和 策略(怎么做)的 分离
	机制:在内核空间 (内核的设备注册api)
	策略:在用户空间 (udevd进程及规则文件)

问题:
	1. 只用 udev, 系统并不能正常启动
		会循环报错找不到console
		静态文件机制 + udev,系统才可以正常启动
	

devtmpfs

改善:
	1. 只用 udev, 系统并不能正常启动
		静态文件机制 + udev,系统才可以正常启动,但是静态文件机制可能会提供 当前系统不存在的设备节点
		devtmpfs + udev 可以正常启动,且不会提供 当前系统不存在的设备节点
	
		
新增
	1. devtmpfs 在驱动注册之前会创建 tmpfs实例,注册时就能有一个设备节点(,而不是等到udev启动时)
	2. 救援模式
		init=/bin/sh 时 单独用 devtmpfs 	,不需要udev也可正常启动
		静态文件机制在救援模式下不一定能用:不一定有真正的块设备节点
	3. 嵌入式系统
		精简嵌入式系统,使嵌入式系统 在 only devtmpfs 	机制下就可以处理好 /dev 下的设备节点
	4. 优化启动时间
		1.使用devtmpfs,可以优化现有的initramfs或kernel-mount引导逻辑以提高效率
			// 具体是什么
		2.不需要coldplug运行
			// coldplug:通过echo "ADD" 到/sys下的uevent文件,让内核通过uevent机制通知用户空间,然后用户空间程序 创建 /dev目录中的文件内容 
			// coldplug 在启动系统的其余部分之前必须完成
			// 根据系统的速度和需要处理的设备的数量,coldplug运行可能需要一到几秒钟的时间
			// 不会有错过的事件重播,因为在第一个内核设备注册到内核之前,/dev是可用的。
			
		

与 udev 的不同
	1.普通用户不能指定该设备是什么名字

如何实现:
	devtmpfs文件系统(挂载在/dev)devtmpfs(运行在内核空间)
	driver_init
		devtmpfs_init // drivers/base/devtmpfs.c
			kthread_run(devtmpfsd, &err, "kdevtmpfs");

devtmpfs  与 udev 的关系
	1. 可完全取代 udev+静态节点机制
	2. devtmpfs 与 udev 也可共存,共存的话,怎么分配任务???待确认
	3. devtmpfs 不提供 udev的2个功能(设备名规则和热插拔监听)

devtmpfs with udev
	1. devtmpfs 创建的设备文件 可以由用户空间在任何时候、以任何需要的方式进行更改和修改
	2. udev官方发布版本可与 devtmpfs 共存且正常运行,识别devtmpfs创建的设备节点并使用它
	3. devtmpfs 创建的设备文件权限为0600
	4. 当userspace没有更改devtmpfs设备节点权限时,驱动会在设备移除时利用devtmpfs删除设备节点
	5. 如果设备节点文件权限和ownership被udev更改,驱动会在设备移除时利用udev删除设备节点
疑问:
	我现在还没有做到devtmpfs和udev同时起效果的案例
	如果同时起效果,那么 mount到 /dev 的是哪一个? devtmpfs 还是 udevfs

devfs udev devtmpfs 机制的相同与区别

相同点:
	1. 创建了一个进程A来自动创建节点B
	2. 设备C device_add(调用了机制提供的API)的时候会通知到该进程A
	3. 维护了一个文件系统D,节点B就在文件系统B中
	4. 文件系统D都需要挂载到/dev下
不同点:
	1.进程有的是内核线程有的是用户进程
	2.机制提供的API不同,API使用的底层实现不同
	3.维护的文件系统类型不同

附录:文件系统框架图

/(名为rootfs的ramfs)
	/dev
		root
	...
	/root(磁盘文件系统)
		/dev (可以用 udev 或者 devtmpfs  挂载到此目录)
		/sys (用sysfs 挂载到此目录)
		/proc (用procfs 挂载到此目录)
		/bin
		/lib
		/etc

实验数据

静态文件
  • mount
# mount
/dev/root on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
  • 文件
# ls /dev/ -R 
/dev/:
console  log      pts      stderr   stdout
fd       null     shm      stdin

/dev/pts:

/dev/shm:
udev
  • mount
/dev/root on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
udev on /dev type devtmpfs (rw,relatime,size=255592k,nr_inodes=63898,mode=755)
  • 文件
/dev/:
total 0
crw-rw----    1 root     audio      14,   4 Jan 16 05:21 audio
drwxr-xr-x    2 root     root           120 Jan 16 05:21 block
drwxr-xr-x    2 root     root          2860 Jan 16 05:21 char
crw-------    1 root     root        5,   1 Jan 16 05:21 console
crw-------    1 root     root       10,  63 Jan 16 05:21 cpu_dma_latency
drwxr-xr-x    4 root     root            80 Jan 16 05:21 disk
crw-rw----    1 root     audio      14,   3 Jan 16 05:21 dsp
crw-rw----    1 root     video      29,   0 Jan 16 05:21 fb0
crw-rw----    1 root     video      29,   1 Jan 16 05:21 fb1
lrwxrwxrwx    1 root     root            13 Jan 16 05:21 fd -> /proc/self/fd
crw-rw-rw-    1 root     root        1,   7 Jan 16 05:21 full
crw-------    1 root     root       10, 183 Jan 16 05:21 hwrng
drwxr-xr-x    3 root     root           140 Jan 16 05:21 input
crw-r-----    1 root     kmem        1,   2 Jan 16 05:21 kmem
crw-r--r--    1 root     root        1,  11 Jan 16 05:21 kmsg
srw-rw-rw-    1 root     root             0 Jan 16 05:21 log
crw-r-----    1 root     kmem        1,   1 Jan 16 05:21 mem
crw-------    1 root     root       10,  60 Jan 16 05:21 memory_bandwidth
crw-rw----    1 root     audio      14,   0 Jan 16 05:21 mixer
crw-------    1 root     root       90,   0 Jan 16 05:21 mtd0
crw-------    1 root     root       90,   1 Jan 16 05:21 mtd0ro
crw-------    1 root     root       90,   2 Jan 16 05:21 mtd1
crw-------    1 root     root       90,   3 Jan 16 05:21 mtd1ro
brw-rw----    1 root     disk       31,   0 Jan 16 05:21 mtdblock0
brw-rw----    1 root     disk       31,   1 Jan 16 05:21 mtdblock1
crw-------    1 root     root       10,  62 Jan 16 05:21 network_latency
crw-------    1 root     root       10,  61 Jan 16 05:21 network_throughput
crw-rw-rw-    1 root     root        1,   3 Jan 16 05:21 null
crw-------    1 root     root       10,   1 Jan 16 05:21 psaux
crw-rw-rw-    1 root     tty         5,   2 Jan 16 05:21 ptmx
crw-------    1 root     root        2,   0 Jan 16 05:21 ptyp0
crw-------    1 root     root        2,   1 Jan 16 05:21 ptyp1
crw-------    1 root     root        2,   2 Jan 16 05:21 ptyp2
crw-------    1 root     root        2,   3 Jan 16 05:21 ptyp3
crw-------    1 root     root        2,   4 Jan 16 05:21 ptyp4
crw-------    1 root     root        2,   5 Jan 16 05:21 ptyp5
crw-------    1 root     root        2,   6 Jan 16 05:21 ptyp6
crw-------    1 root     root        2,   7 Jan 16 05:21 ptyp7
crw-------    1 root     root        2,   8 Jan 16 05:21 ptyp8
crw-------    1 root     root        2,   9 Jan 16 05:21 ptyp9
crw-------    1 root     root        2,  10 Jan 16 05:21 ptypa
crw-------    1 root     root        2,  11 Jan 16 05:21 ptypb
crw-------    1 root     root        2,  12 Jan 16 05:21 ptypc
crw-------    1 root     root        2,  13 Jan 16 05:21 ptypd
crw-------    1 root     root        2,  14 Jan 16 05:21 ptype
crw-------    1 root     root        2,  15 Jan 16 05:21 ptypf
crw-rw-rw-    1 root     root        1,   8 Jan 16 05:21 random
lrwxrwxrwx    1 root     root             4 Jan 16 05:21 rtc -> rtc0
crw-------    1 root     root      254,   0 Jan 16 05:21 rtc0
drwxr-xr-x    3 root     root           140 Jan 16 05:21 snd
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 stderr -> /proc/self/fd/2
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 stdin -> /proc/self/fd/0
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 stdout -> /proc/self/fd/1
crw-rw-rw-    1 root     tty         5,   0 Jan 16 05:21 tty
crw--w----    1 root     tty         4,   0 Jan 16 05:21 tty0
crw--w----    1 root     tty         4,   1 Jan 16 05:21 tty1
crw--w----    1 root     tty         4,  10 Jan 16 05:21 tty10
crw--w----    1 root     tty         4,  11 Jan 16 05:21 tty11
crw--w----    1 root     tty         4,  12 Jan 16 05:21 tty12
crw--w----    1 root     tty         4,  13 Jan 16 05:21 tty13
crw--w----    1 root     tty         4,  14 Jan 16 05:21 tty14
crw--w----    1 root     tty         4,  15 Jan 16 05:21 tty15
crw--w----    1 root     tty         4,  16 Jan 16 05:21 tty16
crw--w----    1 root     tty         4,  17 Jan 16 05:21 tty17
crw--w----    1 root     tty         4,  18 Jan 16 05:21 tty18
crw--w----    1 root     tty         4,  19 Jan 16 05:21 tty19
crw--w----    1 root     tty         4,   2 Jan 16 05:21 tty2
crw--w----    1 root     tty         4,  20 Jan 16 05:21 tty20
crw--w----    1 root     tty         4,  21 Jan 16 05:21 tty21
crw--w----    1 root     tty         4,  22 Jan 16 05:21 tty22
crw--w----    1 root     tty         4,  23 Jan 16 05:21 tty23
crw--w----    1 root     tty         4,  24 Jan 16 05:21 tty24
crw--w----    1 root     tty         4,  25 Jan 16 05:21 tty25
crw--w----    1 root     tty         4,  26 Jan 16 05:21 tty26
crw--w----    1 root     tty         4,  27 Jan 16 05:21 tty27
crw--w----    1 root     tty         4,  28 Jan 16 05:21 tty28
crw--w----    1 root     tty         4,  29 Jan 16 05:21 tty29
crw--w----    1 root     tty         4,   3 Jan 16 05:21 tty3
crw--w----    1 root     tty         4,  30 Jan 16 05:21 tty30
crw--w----    1 root     tty         4,  31 Jan 16 05:21 tty31
crw--w----    1 root     tty         4,  32 Jan 16 05:21 tty32
crw--w----    1 root     tty         4,  33 Jan 16 05:21 tty33
crw--w----    1 root     tty         4,  34 Jan 16 05:21 tty34
crw--w----    1 root     tty         4,  35 Jan 16 05:21 tty35
crw--w----    1 root     tty         4,  36 Jan 16 05:21 tty36
crw--w----    1 root     tty         4,  37 Jan 16 05:21 tty37
crw--w----    1 root     tty         4,  38 Jan 16 05:21 tty38
crw--w----    1 root     tty         4,  39 Jan 16 05:21 tty39
crw--w----    1 root     tty         4,   4 Jan 16 05:21 tty4
crw--w----    1 root     tty         4,  40 Jan 16 05:21 tty40
crw--w----    1 root     tty         4,  41 Jan 16 05:21 tty41
crw--w----    1 root     tty         4,  42 Jan 16 05:21 tty42
crw--w----    1 root     tty         4,  43 Jan 16 05:21 tty43
crw--w----    1 root     tty         4,  44 Jan 16 05:21 tty44
crw--w----    1 root     tty         4,  45 Jan 16 05:21 tty45
crw--w----    1 root     tty         4,  46 Jan 16 05:21 tty46
crw--w----    1 root     tty         4,  47 Jan 16 05:21 tty47
crw--w----    1 root     tty         4,  48 Jan 16 05:21 tty48
crw--w----    1 root     tty         4,  49 Jan 16 05:21 tty49
crw--w----    1 root     tty         4,   5 Jan 16 05:21 tty5
crw--w----    1 root     tty         4,  50 Jan 16 05:21 tty50
crw--w----    1 root     tty         4,  51 Jan 16 05:21 tty51
crw--w----    1 root     tty         4,  52 Jan 16 05:21 tty52
crw--w----    1 root     tty         4,  53 Jan 16 05:21 tty53
crw--w----    1 root     tty         4,  54 Jan 16 05:21 tty54
crw--w----    1 root     tty         4,  55 Jan 16 05:21 tty55
crw--w----    1 root     tty         4,  56 Jan 16 05:21 tty56
crw--w----    1 root     tty         4,  57 Jan 16 05:21 tty57
crw--w----    1 root     tty         4,  58 Jan 16 05:21 tty58
crw--w----    1 root     tty         4,  59 Jan 16 05:21 tty59
crw--w----    1 root     tty         4,   6 Jan 16 05:21 tty6
crw--w----    1 root     tty         4,  60 Jan 16 05:21 tty60
crw--w----    1 root     tty         4,  61 Jan 16 05:21 tty61
crw--w----    1 root     tty         4,  62 Jan 16 05:21 tty62
crw--w----    1 root     tty         4,  63 Jan 16 05:21 tty63
crw--w----    1 root     tty         4,   7 Jan 16 05:21 tty7
crw--w----    1 root     tty         4,   8 Jan 16 05:21 tty8
crw--w----    1 root     tty         4,   9 Jan 16 05:21 tty9
crw-rw----    1 root     dialout   204,  64 Jan 16 05:21 ttyAMA0
crw-rw----    1 root     dialout   204,  65 Jan 16 05:21 ttyAMA1
crw-rw----    1 root     dialout   204,  66 Jan 16 05:21 ttyAMA2
crw-rw----    1 root     dialout   204,  67 Jan 16 05:21 ttyAMA3
crw-------    1 root     root        3,   0 Jan 16 05:21 ttyp0
crw-------    1 root     root        3,   1 Jan 16 05:21 ttyp1
crw-------    1 root     root        3,   2 Jan 16 05:21 ttyp2
crw-------    1 root     root        3,   3 Jan 16 05:21 ttyp3
crw-------    1 root     root        3,   4 Jan 16 05:21 ttyp4
crw-------    1 root     root        3,   5 Jan 16 05:21 ttyp5
crw-------    1 root     root        3,   6 Jan 16 05:21 ttyp6
crw-------    1 root     root        3,   7 Jan 16 05:21 ttyp7
crw-------    1 root     root        3,   8 Jan 16 05:21 ttyp8
crw-------    1 root     root        3,   9 Jan 16 05:21 ttyp9
crw-------    1 root     root        3,  10 Jan 16 05:21 ttypa
crw-------    1 root     root        3,  11 Jan 16 05:21 ttypb
crw-------    1 root     root        3,  12 Jan 16 05:21 ttypc
crw-------    1 root     root        3,  13 Jan 16 05:21 ttypd
crw-------    1 root     root        3,  14 Jan 16 05:21 ttype
crw-------    1 root     root        3,  15 Jan 16 05:21 ttypf
crw-------    1 root     root       10,  59 Jan 16 05:21 ubi_ctrl
crw-rw-rw-    1 root     root        1,   9 Jan 16 05:21 urandom
crw-------    1 root     root      253,   0 Jan 16 05:21 usbmon0
crw-rw----    1 root     tty         7,   0 Jan 16 05:21 vcs
crw-rw----    1 root     tty         7,   1 Jan 16 05:21 vcs1
crw-rw----    1 root     tty         7, 128 Jan 16 05:21 vcsa
crw-rw----    1 root     tty         7, 129 Jan 16 05:21 vcsa1
brw-rw----    1 root     disk      254,   0 Jan 16 05:21 vda
brw-rw----    1 root     disk      254,  16 Jan 16 05:21 vdb
crw-rw-rw-    1 root     root        1,   5 Jan 16 05:21 zero

/dev/block:
total 0
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 254:0 -> ../vda
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 254:16 -> ../vdb
lrwxrwxrwx    1 root     root            12 Jan 16 05:21 31:0 -> ../mtdblock0
lrwxrwxrwx    1 root     root            12 Jan 16 05:21 31:1 -> ../mtdblock1

/dev/char:
total 0
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 10:1 -> ../psaux
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 10:183 -> ../hwrng
lrwxrwxrwx    1 root     root            11 Jan 16 05:21 10:59 -> ../ubi_ctrl
lrwxrwxrwx    1 root     root            19 Jan 16 05:21 10:60 -> ../memory_bandwidth
lrwxrwxrwx    1 root     root            21 Jan 16 05:21 10:61 -> ../network_throughput
lrwxrwxrwx    1 root     root            18 Jan 16 05:21 10:62 -> ../network_latency
lrwxrwxrwx    1 root     root            18 Jan 16 05:21 10:63 -> ../cpu_dma_latency
lrwxrwxrwx    1 root     root            16 Jan 16 05:21 116:0 -> ../snd/controlC0
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 116:16 -> ../snd/pcmC0D0p
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 116:24 -> ../snd/pcmC0D0c
lrwxrwxrwx    1 root     root            12 Jan 16 05:21 116:33 -> ../snd/timer
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 13:32 -> ../input/mouse0
lrwxrwxrwx    1 root     root            13 Jan 16 05:21 13:63 -> ../input/mice
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 13:64 -> ../input/event0
lrwxrwxrwx    1 root     root            15 Jan 16 05:21 13:65 -> ../input/event1
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 14:0 -> ../mixer
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 14:3 -> ../dsp
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 14:4 -> ../audio
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 1:1 -> ../mem
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 1:11 -> ../kmsg
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 1:2 -> ../kmem
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 1:3 -> ../null
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 1:5 -> ../zero
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 1:7 -> ../full
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 1:8 -> ../random
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 1:9 -> ../urandom
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 204:64 -> ../ttyAMA0
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 204:65 -> ../ttyAMA1
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 204:66 -> ../ttyAMA2
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 204:67 -> ../ttyAMA3
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 253:0 -> ../usbmon0
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 254:0 -> ../rtc0
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 29:0 -> ../fb0
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 29:1 -> ../fb1
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:0 -> ../ptyp0
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:1 -> ../ptyp1
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:10 -> ../ptypa
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:11 -> ../ptypb
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:12 -> ../ptypc
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:13 -> ../ptypd
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:14 -> ../ptype
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:15 -> ../ptypf
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:2 -> ../ptyp2
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:3 -> ../ptyp3
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:4 -> ../ptyp4
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:5 -> ../ptyp5
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:6 -> ../ptyp6
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:7 -> ../ptyp7
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:8 -> ../ptyp8
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 2:9 -> ../ptyp9
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:0 -> ../ttyp0
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:1 -> ../ttyp1
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:10 -> ../ttypa
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:11 -> ../ttypb
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:12 -> ../ttypc
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:13 -> ../ttypd
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:14 -> ../ttype
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:15 -> ../ttypf
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:2 -> ../ttyp2
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:3 -> ../ttyp3
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:4 -> ../ttyp4
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:5 -> ../ttyp5
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:6 -> ../ttyp6
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:7 -> ../ttyp7
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:8 -> ../ttyp8
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 3:9 -> ../ttyp9
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:0 -> ../tty0
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:1 -> ../tty1
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:10 -> ../tty10
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:11 -> ../tty11
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:12 -> ../tty12
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:13 -> ../tty13
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:14 -> ../tty14
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:15 -> ../tty15
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:16 -> ../tty16
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:17 -> ../tty17
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:18 -> ../tty18
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:19 -> ../tty19
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:2 -> ../tty2
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:20 -> ../tty20
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:21 -> ../tty21
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:22 -> ../tty22
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:23 -> ../tty23
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:24 -> ../tty24
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:25 -> ../tty25
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:26 -> ../tty26
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:27 -> ../tty27
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:28 -> ../tty28
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:29 -> ../tty29
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:3 -> ../tty3
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:30 -> ../tty30
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:31 -> ../tty31
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:32 -> ../tty32
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:33 -> ../tty33
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:34 -> ../tty34
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:35 -> ../tty35
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:36 -> ../tty36
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:37 -> ../tty37
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:38 -> ../tty38
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:39 -> ../tty39
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:4 -> ../tty4
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:40 -> ../tty40
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:41 -> ../tty41
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:42 -> ../tty42
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:43 -> ../tty43
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:44 -> ../tty44
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:45 -> ../tty45
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:46 -> ../tty46
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:47 -> ../tty47
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:48 -> ../tty48
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:49 -> ../tty49
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:5 -> ../tty5
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:50 -> ../tty50
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:51 -> ../tty51
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:52 -> ../tty52
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:53 -> ../tty53
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:54 -> ../tty54
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:55 -> ../tty55
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:56 -> ../tty56
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:57 -> ../tty57
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:58 -> ../tty58
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:59 -> ../tty59
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:6 -> ../tty6
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:60 -> ../tty60
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:61 -> ../tty61
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:62 -> ../tty62
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 4:63 -> ../tty63
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:7 -> ../tty7
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:8 -> ../tty8
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 4:9 -> ../tty9
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 5:0 -> ../tty
lrwxrwxrwx    1 root     root            10 Jan 16 05:21 5:1 -> ../console
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 5:2 -> ../ptmx
lrwxrwxrwx    1 root     root             6 Jan 16 05:21 7:0 -> ../vcs
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 7:1 -> ../vcs1
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 7:128 -> ../vcsa
lrwxrwxrwx    1 root     root             8 Jan 16 05:21 7:129 -> ../vcsa1
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 90:0 -> ../mtd0
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 90:1 -> ../mtd0ro
lrwxrwxrwx    1 root     root             7 Jan 16 05:21 90:2 -> ../mtd1
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 90:3 -> ../mtd1ro

/dev/disk:
total 0
drwxr-xr-x    2 root     root            80 Jan 16 05:21 by-path
drwxr-xr-x    2 root     root            80 Jan 16 05:21 by-uuid

/dev/disk/by-path:
total 0
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 platform-10013200.virtio_mmio -> ../../vda
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 platform-10013400.virtio_mmio -> ../../vdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 b63011cd-09c0-481e-847d-e14f9b247f4c -> ../../vdb
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 d9577c47-5824-470a-be2f-2c2c84b1180f -> ../../vda

/dev/input:
total 0
drwxr-xr-x    2 root     root           100 Jan 16 05:21 by-path
crw-rw----    1 root     input      13,  64 Jan 16 05:21 event0
crw-rw----    1 root     input      13,  65 Jan 16 05:21 event1
crw-rw----    1 root     input      13,  63 Jan 16 05:21 mice
crw-rw----    1 root     input      13,  32 Jan 16 05:21 mouse0

/dev/input/by-path:
total 0
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 platform-smb:motherboard:iofpga@7_00000000-serio-0-event-kbd -> ../event0
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 platform-smb:motherboard:iofpga@7_00000000-serio-1-event-mouse -> ../event1
lrwxrwxrwx    1 root     root             9 Jan 16 05:21 platform-smb:motherboard:iofpga@7_00000000-serio-1-mouse -> ../mouse0

/dev/snd:
total 0
drwxr-xr-x    2 root     root            60 Jan 16 05:21 by-path
crw-rw----    1 root     audio     116,   0 Jan 16 05:21 controlC0
crw-rw----    1 root     audio     116,  24 Jan 16 05:21 pcmC0D0c
crw-rw----    1 root     audio     116,  16 Jan 16 05:21 pcmC0D0p
crw-rw----    1 root     audio     116,  33 Jan 16 05:21 timer

/dev/snd/by-path:
total 0
lrwxrwxrwx    1 root     root            12 Jan 16 05:21 platform-smb:motherboard:iofpga@7_00000000 -> ../controlC0

devtmpfs
  • mount
# mount 
/dev/root on / type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=255592k,nr_inodes=63898,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
  • 文件
/dev/:
total 0
crw-------    1 root     root       14,   4 Jan  1  1970 audio
crw-------    1 root     root        5,   1 Jan 16 05:19 console
crw-------    1 root     root       10,  63 Jan  1  1970 cpu_dma_latency
crw-------    1 root     root       14,   3 Jan  1  1970 dsp
crw-------    1 root     root       29,   0 Jan  1  1970 fb0
crw-------    1 root     root       29,   1 Jan  1  1970 fb1
lrwxrwxrwx    1 root     root            13 Jan 16 05:18 fd -> /proc/self/fd
crw-rw-rw-    1 root     root        1,   7 Jan  1  1970 full
crw-------    1 root     root       10, 183 Jan  1  1970 hwrng
drwxr-xr-x    2 root     root           120 Jan 16 05:18 input
crw-------    1 root     root        1,   2 Jan  1  1970 kmem
crw-r--r--    1 root     root        1,  11 Jan  1  1970 kmsg
srw-rw-rw-    1 root     root             0 Jan 16 05:18 log
crw-------    1 root     root        1,   1 Jan  1  1970 mem
crw-------    1 root     root       10,  60 Jan  1  1970 memory_bandwidth
crw-------    1 root     root       14,   0 Jan  1  1970 mixer
crw-------    1 root     root       90,   0 Jan  1  1970 mtd0
crw-------    1 root     root       90,   1 Jan  1  1970 mtd0ro
crw-------    1 root     root       90,   2 Jan  1  1970 mtd1
crw-------    1 root     root       90,   3 Jan  1  1970 mtd1ro
brw-------    1 root     root       31,   0 Jan  1  1970 mtdblock0
brw-------    1 root     root       31,   1 Jan  1  1970 mtdblock1
crw-------    1 root     root       10,  62 Jan  1  1970 network_latency
crw-------    1 root     root       10,  61 Jan  1  1970 network_throughput
crw-rw-rw-    1 root     root        1,   3 Jan  1  1970 null
crw-------    1 root     root       10,   1 Jan  1  1970 psaux
crw-rw-rw-    1 root     root        5,   2 Jan  1  1970 ptmx
drwxr-xr-x    2 root     root             0 Jan  1  1970 pts
crw-------    1 root     root        2,   0 Jan  1  1970 ptyp0
crw-------    1 root     root        2,   1 Jan  1  1970 ptyp1
crw-------    1 root     root        2,   2 Jan  1  1970 ptyp2
crw-------    1 root     root        2,   3 Jan  1  1970 ptyp3
crw-------    1 root     root        2,   4 Jan  1  1970 ptyp4
crw-------    1 root     root        2,   5 Jan  1  1970 ptyp5
crw-------    1 root     root        2,   6 Jan  1  1970 ptyp6
crw-------    1 root     root        2,   7 Jan  1  1970 ptyp7
crw-------    1 root     root        2,   8 Jan  1  1970 ptyp8
crw-------    1 root     root        2,   9 Jan  1  1970 ptyp9
crw-------    1 root     root        2,  10 Jan  1  1970 ptypa
crw-------    1 root     root        2,  11 Jan  1  1970 ptypb
crw-------    1 root     root        2,  12 Jan  1  1970 ptypc
crw-------    1 root     root        2,  13 Jan  1  1970 ptypd
crw-------    1 root     root        2,  14 Jan  1  1970 ptype
crw-------    1 root     root        2,  15 Jan  1  1970 ptypf
crw-rw-rw-    1 root     root        1,   8 Jan  1  1970 random
crw-------    1 root     root      254,   0 Jan  1  1970 rtc0
drwxrwxrwx    2 root     root            40 Jan 16 05:18 shm
drwxr-xr-x    2 root     root           120 Jan  1  1970 snd
lrwxrwxrwx    1 root     root            15 Jan 16 05:18 stderr -> /proc/self/fd/2
lrwxrwxrwx    1 root     root            15 Jan 16 05:18 stdin -> /proc/self/fd/0
lrwxrwxrwx    1 root     root            15 Jan 16 05:18 stdout -> /proc/self/fd/1
crw-rw-rw-    1 root     root        5,   0 Jan  1  1970 tty
crw-------    1 root     root        4,   0 Jan  1  1970 tty0
crw-------    1 root     root        4,   1 Jan  1  1970 tty1
crw-------    1 root     root        4,  10 Jan  1  1970 tty10
crw-------    1 root     root        4,  11 Jan  1  1970 tty11
crw-------    1 root     root        4,  12 Jan  1  1970 tty12
crw-------    1 root     root        4,  13 Jan  1  1970 tty13
crw-------    1 root     root        4,  14 Jan  1  1970 tty14
crw-------    1 root     root        4,  15 Jan  1  1970 tty15
crw-------    1 root     root        4,  16 Jan  1  1970 tty16
crw-------    1 root     root        4,  17 Jan  1  1970 tty17
crw-------    1 root     root        4,  18 Jan  1  1970 tty18
crw-------    1 root     root        4,  19 Jan  1  1970 tty19
crw-------    1 root     root        4,   2 Jan  1  1970 tty2
crw-------    1 root     root        4,  20 Jan  1  1970 tty20
crw-------    1 root     root        4,  21 Jan  1  1970 tty21
crw-------    1 root     root        4,  22 Jan  1  1970 tty22
crw-------    1 root     root        4,  23 Jan  1  1970 tty23
crw-------    1 root     root        4,  24 Jan  1  1970 tty24
crw-------    1 root     root        4,  25 Jan  1  1970 tty25
crw-------    1 root     root        4,  26 Jan  1  1970 tty26
crw-------    1 root     root        4,  27 Jan  1  1970 tty27
crw-------    1 root     root        4,  28 Jan  1  1970 tty28
crw-------    1 root     root        4,  29 Jan  1  1970 tty29
crw-------    1 root     root        4,   3 Jan  1  1970 tty3
crw-------    1 root     root        4,  30 Jan  1  1970 tty30
crw-------    1 root     root        4,  31 Jan  1  1970 tty31
crw-------    1 root     root        4,  32 Jan  1  1970 tty32
crw-------    1 root     root        4,  33 Jan  1  1970 tty33
crw-------    1 root     root        4,  34 Jan  1  1970 tty34
crw-------    1 root     root        4,  35 Jan  1  1970 tty35
crw-------    1 root     root        4,  36 Jan  1  1970 tty36
crw-------    1 root     root        4,  37 Jan  1  1970 tty37
crw-------    1 root     root        4,  38 Jan  1  1970 tty38
crw-------    1 root     root        4,  39 Jan  1  1970 tty39
crw-------    1 root     root        4,   4 Jan  1  1970 tty4
crw-------    1 root     root        4,  40 Jan  1  1970 tty40
crw-------    1 root     root        4,  41 Jan  1  1970 tty41
crw-------    1 root     root        4,  42 Jan  1  1970 tty42
crw-------    1 root     root        4,  43 Jan  1  1970 tty43
crw-------    1 root     root        4,  44 Jan  1  1970 tty44
crw-------    1 root     root        4,  45 Jan  1  1970 tty45
crw-------    1 root     root        4,  46 Jan  1  1970 tty46
crw-------    1 root     root        4,  47 Jan  1  1970 tty47
crw-------    1 root     root        4,  48 Jan  1  1970 tty48
crw-------    1 root     root        4,  49 Jan  1  1970 tty49
crw-------    1 root     root        4,   5 Jan  1  1970 tty5
crw-------    1 root     root        4,  50 Jan  1  1970 tty50
crw-------    1 root     root        4,  51 Jan  1  1970 tty51
crw-------    1 root     root        4,  52 Jan  1  1970 tty52
crw-------    1 root     root        4,  53 Jan  1  1970 tty53
crw-------    1 root     root        4,  54 Jan  1  1970 tty54
crw-------    1 root     root        4,  55 Jan  1  1970 tty55
crw-------    1 root     root        4,  56 Jan  1  1970 tty56
crw-------    1 root     root        4,  57 Jan  1  1970 tty57
crw-------    1 root     root        4,  58 Jan  1  1970 tty58
crw-------    1 root     root        4,  59 Jan  1  1970 tty59
crw-------    1 root     root        4,   6 Jan  1  1970 tty6
crw-------    1 root     root        4,  60 Jan  1  1970 tty60
crw-------    1 root     root        4,  61 Jan  1  1970 tty61
crw-------    1 root     root        4,  62 Jan  1  1970 tty62
crw-------    1 root     root        4,  63 Jan  1  1970 tty63
crw-------    1 root     root        4,   7 Jan  1  1970 tty7
crw-------    1 root     root        4,   8 Jan  1  1970 tty8
crw-------    1 root     root        4,   9 Jan  1  1970 tty9
crw-------    1 root     root      204,  64 Jan  1  1970 ttyAMA0
crw-------    1 root     root      204,  65 Jan  1  1970 ttyAMA1
crw-------    1 root     root      204,  66 Jan  1  1970 ttyAMA2
crw-------    1 root     root      204,  67 Jan  1  1970 ttyAMA3
crw-------    1 root     root        3,   0 Jan  1  1970 ttyp0
crw-------    1 root     root        3,   1 Jan  1  1970 ttyp1
crw-------    1 root     root        3,   2 Jan  1  1970 ttyp2
crw-------    1 root     root        3,   3 Jan  1  1970 ttyp3
crw-------    1 root     root        3,   4 Jan  1  1970 ttyp4
crw-------    1 root     root        3,   5 Jan  1  1970 ttyp5
crw-------    1 root     root        3,   6 Jan  1  1970 ttyp6
crw-------    1 root     root        3,   7 Jan  1  1970 ttyp7
crw-------    1 root     root        3,   8 Jan  1  1970 ttyp8
crw-------    1 root     root        3,   9 Jan  1  1970 ttyp9
crw-------    1 root     root        3,  10 Jan  1  1970 ttypa
crw-------    1 root     root        3,  11 Jan  1  1970 ttypb
crw-------    1 root     root        3,  12 Jan  1  1970 ttypc
crw-------    1 root     root        3,  13 Jan  1  1970 ttypd
crw-------    1 root     root        3,  14 Jan  1  1970 ttype
crw-------    1 root     root        3,  15 Jan  1  1970 ttypf
crw-------    1 root     root       10,  59 Jan  1  1970 ubi_ctrl
crw-rw-rw-    1 root     root        1,   9 Jan  1  1970 urandom
crw-------    1 root     root      253,   0 Jan  1  1970 usbmon0
crw-------    1 root     root        7,   0 Jan  1  1970 vcs
crw-------    1 root     root        7,   1 Jan  1  1970 vcs1
crw-------    1 root     root        7, 128 Jan  1  1970 vcsa
crw-------    1 root     root        7, 129 Jan  1  1970 vcsa1
brw-------    1 root     root      254,   0 Jan  1  1970 vda
brw-------    1 root     root      254,  16 Jan  1  1970 vdb
crw-rw-rw-    1 root     root        1,   5 Jan  1  1970 zero

/dev/input:
total 0
crw-------    1 root     root       13,  64 Jan  1  1970 event0
crw-------    1 root     root       13,  65 Jan 16 05:18 event1
crw-------    1 root     root       13,  63 Jan  1  1970 mice
crw-------    1 root     root       13,  32 Jan 16 05:18 mouse0

/dev/pts:
total 0

/dev/shm:
total 0

/dev/snd:
total 0
crw-------    1 root     root      116,   0 Jan  1  1970 controlC0
crw-------    1 root     root      116,  24 Jan  1  1970 pcmC0D0c
crw-------    1 root     root      116,  16 Jan  1  1970 pcmC0D0p
crw-------    1 root     root      116,  33 Jan  1  1970 timer

猜你喜欢

转载自blog.csdn.net/u011011827/article/details/112694721