- 6
- 0
- 约1.74万字
- 约 63页
- 2016-12-05 发布于湖北
- 举报
* * * * * * * * * * * * * * * * * * * * * 北京交通大学 电子信息工程学院 * * * * /dev/dsp is OSS audio driver where dsp=digital sound processor. /dev/audio is ALSA audio driver found in later Linux kernels. * * * * * * * * * 注意:内核模块是针对某个内核版本编译的,只能在这个版本下加载运行。 * * * Thanks to Jonathan Corbet for the example! * * * * * * * * * * * * * * * “终端”:在系统的字符终端下才能看到。图形终端不能。 * * 加载和移除模块需要root权限。 北京交通大学 电子信息工程学院 * * 编写内核模块 声明内核模块参数 module_param(name, type, perm); name: 参数名称 type: 可以为byte, short, ushort, int, uint, long, ulong, charp, bool, invbool (编译时检查) perm: 文件访问权利,对应于虚拟文件系统的内容sys/module/module_name/param. 可以用 0.
原创力文档

文档评论(0)