ChinaUnix.net
相关文章推荐:

hello1c The simplest kernel module

网上高人说学习内核 通过写module开始 那是一个捷径 今天就初步的学习了下 module 就写篇以防以后查询吧 主要是参考下面得网页 来写的 还是挺好的 http://dirac.org/linux/writing/lkmpg/2.6/chinese/lkmpg_chs/#AEN30 但是按照他第二章步骤来出现了很多问题 不得不依从从网上查找资料 慢慢解决 如下 首先得把 hello module编译成功吧 首先得明白一个问题 这个hello module是用运行的内核来编译的 具...

by zjlikaifa - Linux文档专区 - 2009-08-13 17:11:09 阅读(861) 回复(0)

相关讨论

simplest program:
  1. #include <linux/init.h>

by TerryJk - 移动操作系统 - 2011-12-23 03:25:33 阅读(756) 回复(0)

环境: vmware6 + redhat 9.0 (编译内核,打开module支持) 1. hello module source code #define module //这行一定要写在#include 前 #include #include int init_module(void){ printk(" hello,world!\n") return 0; } void cleanup_module(void){ printk(" Good Bye world!\n"); } 2. 编译 gcc -c -I/usr/src/linux-2.4.20-8/include hello.c 得到hello.o -I选项是...

by rockcanon - Linux文档专区 - 2010-01-04 14:57:30 阅读(739) 回复(0)

环境: vmware6 + redhat 9.0 (编译内核,打开module支持) 1. hello module source code #include #include int init_module(void){ printk(" hello,world!\n") return 0; } void cleanup_module(void){ printk(" Good Bye world!\n"); } 2. 编译 gcc -c -I/usr/src/linux-2.4.20-8/include hello.c 得到hello.o -I选项是要找到version.h,这个和/usr/include/version.h不是一个版本....

by 2195113 - Linux文档专区 - 2007-09-27 18:12:18 阅读(570) 回复(0)

安装一个module时给这个提示,是不是需要重新编译内核并打开CONFIG_moduleS选项才行? 不重新编译内核可以吗?

by ttyfox - 内核源码 - 2009-12-30 16:28:32 阅读(2187) 回复(2)

Process file system(procfs) is a virtual file system to access the process infomation from the kernel. It is usually mounted at /proc directory. It is stored on the memory not the disk The /proc fs contains directories and virtual files. 1) Virtual file can present info from the kernel to the user and send the info from the user to the kernel. 本文来自ChinaUnix博客,如果查看原文请点:...

by plutochuan - Linux文档专区 - 2009-10-31 14:33:26 阅读(695) 回复(0)

VirtualBox No suitable module for running kernel found.的解决办法 我遇到了""这个问题,在网上搜到一办法: 顺序执行以下命令 sudo apt-get install virtualbox-ose-source sudo m-a update sudo m-a prepare sudo m-a a-i virtualbox-ose sudo /etc/init.d/vboxdrv restart 即可 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/95634/show...

by xinly_chen - Linux文档专区 - 2009-08-04 20:48:19 阅读(1719) 回复(0)

文件:lkmpg.pdf 大小:538KB 下载: 下载 lkmpg.pdf2007−05−18 ver 2.6.4 If you can't access http://tldp.org/ ,you can try a cool guy's mirror: http://os-drive.com/LDP/ 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/97889/showart_1962291.html

by otsscf - Linux文档专区 - 2009-06-11 18:48:08 阅读(791) 回复(0)

来自FreeBSD官方网站的链接 http://www.freesoftwaremagazine.com/articles/writing_a_kernel_module_for_freebsd 有朋友有兴趣翻译吗:mrgreen: :mrgreen: :mrgreen: [ 本帖最后由 gvim 于 2008-7-2 14:23 编辑 ]

by gvim - BSD - 2008-07-03 09:30:04 阅读(2219) 回复(5)

http://kernel.lupaworld.com/newbie/lkmpg/ 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/25764/showart_519620.html

by sep - Linux文档专区 - 2008-04-30 10:53:31 阅读(1290) 回复(1)

No precompiled module for this kernel found -- trying to build one. Messages emitted during module compilation will be logged to /var/log/vbox-install.log. Compilation of the kernel module FAILED! VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel module does not compile. Most probably the kernel sources are not found. Install...

by yuanmx - Linux文档专区 - 2008-03-05 17:35:45 阅读(841) 回复(0)