help needed with hello world kernel :(

2 views
Skip to first unread message

Balachandran Sivakumar

unread,
Dec 10, 2006, 5:05:17 AM12/10/06
to ya...@googlegroups.com
Hello all,

Today I tried a simple hello world kernel..... but it
wouldnt run.. I have problems with my Makefile( i think so..).... So
can anybody help me with the possible errors that could have been
made... my program is as follows...


/*hello.c hello world kernel*/
#include<linux/kernel.h>
#include<linux/module.h>

int init_module()
{
printk("<1>hello, world - mu leap to the world of kernels\n");
return 0;
}

void cleanup_module()
{
printk(KERN_ALERT "If i am called, it means u are exiting me\n");
}

Can some one please help.......

--
Thank you
Balachandran Sivakumar
(benignbala)

Arise Awake and stop not till the goal is reached

Learn to live.................Live to learn

Mail: benig...@gmail.com
Blog: http://benignbala.wordpress.com/
Site:http://benignbala.googlepages.com

Reply all
Reply to author
Forward
0 new messages