cat /proc/devices (| grep xxx)
Character devices:
1 mem
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
5 ttyprintk
...
输出目前已经安装的模块
cat /proc/modules | grep hello
root@100ask:/proc# cat modules | grep hello
hello 20480 1 - Loading 0xffffffffc0761000 (OE+)
输出模块信息
以上是进程信息,反应已经安装模块的信息
sys
/sys/class/
可以进入所创建的设备类中,可以查看类下
root@100ask:/sys/module/hello# ls
coresize initsize notes sections taint
holders initstate refcnt srcversion uevent
module可以查看已经安装的模块。