为什么没有人回复我?
我照着书上的例子编了一个简单的模块可不能安装,下面提示这样的错误'./hello.o': kernel-module version mismatch
./hello.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8
还有我在编译hello.c的时候出现以下提示
warning:implicit declaration of function 'printk'
有人可以告诉这些都是什么意思吗?还有怎么解决这些问题 我用的是红帽子9 there is a post here about a hello.c with makefile and detail instruction on how to compile it. can u search it and work on that? btw, the title of u post are meaningless. pls use a clear title next time. thx:-D what is printk?the printf is right!!!remmber!
u program shoud include stdlib.h and stdio.h rocklgk, i am sorry that i have to tell you that he is discussing sth about kernel programming. in this world, no printf, no stdlib, no stdio. only printk.:-D:-):-( :oops::oops::oops: sorry,very sorry. that is fine. spend some time, u can know:-D:-D:-D THx,i will do that.if i have some problems,i will ask you for help.THx very much. u are always welcomed. does your program have"include module.h"? hoho, as brother Dragonfly said, there is a lot of materials for ur questions.(i have answered this question in various forums for various person, since i know nothing but this,hoho)
u can just google that or search it in this forum.
Merry Mid-autumn Festival to brother Dragonfly, also to all of u! hoho! :-D
i should mark that helloworld code as essence, did I?:-D hoho, maybe you should do that. here is the one. i remember i had written one as well. but i can not find where it is.
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=24890 :-(
页:
[1]