?????????????????????????????XX????????????????????????????
??????????2????????????У??????????????????????????????????е??????????λ??????????????????/??·/??????????????????????????????????????????????????????????????????????????????????????????????????????????οtmd????????????????????????????????????????????????????????????·???????????Щ?γ??????e???????????too young??too simple???
??????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????ν??arm????????????????????Ц???????ЦЦ???????????????????????????????????????????????????web??????????????????????????????????????linux??????дl(shuí)ed??????????????????????дl(shuí)ed????????????????????????????????????????helloworld???????????
????????????????ú?????????????????????1 ?·?????  2 ??????????????????????????????0??1?????磬???????????????????????????д?????????????????????????????????????????????????????????????Ч???????????????????дhellow?绤??????????дhelloworld??????????????????????pc???????????????????
????????????????д???????????????????????????????????????????????С????????????????????????????????????????????????????????????????????????飬???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????黯????????????
???????濪???????е??Щ??????Щ?????
????1 ??pc???????????д?????????.c?????÷???????????
?????????÷???????????????????????????????????????helloworld??????豸?????hello.c??????/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char??????????????????????????????????????char???makefile?????????飬??????????????????дmakefile???е?????????
????2 ????helloworld????????????

 

1 #include <linux/kernel.h>
2 #include <linux/module.h>
3 static int __init mini2440_hello_module_init(void)
4 {
5 printk("Hello?? world ! ");
6 return 0;
7 }
8 static void __exit mini2440_hello_module_cleanup(void)
9 {
10 printk("Good-bye! ");
11 }
12 module_init(mini2440_hello_module_init);
13 module_exit(mini2440_hello_module_cleanup);
14 MODULE_LICENSE("GPL");

????????к????в???????????????????????????????????Щ???????????????????
??????????????2.6????汾???????????lincense?????
?????????????????ж????????????????init_module??exit_module????????????????????????????в???С?????????????
?????????module_init??module_exit?????????module_init??????????????????????????????????????????????????????????????????????????init_module???????????????????????
????????????module?????????????????????????????и??й???????