RE: Loading Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there again,
Thanks Anil and Mr. Perego for the replies.

Let me start with saying that this is was my first xperience on a mailing
list and am damned impressed with the kind of help one can get from here.
Well yes Mr. Anil, am returning 0 and here is the code that I typed.

#define MODULE
# include <linux/module.h>
int init_module(void) { printk {<1>"Hello World\n"}; return 0; }
void cleanup_module(void) { printk {<1> bye bye"); }

Thank You.
Regards, Amit

-----Original Message-----
From: kernelnewbies-bounce@nl.linux.org
[mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of Paolo Perego
Sent: 04 March, 2002 1:49 PM
To: kernelnewbies@nl.linux.org
Subject: Re: Loading Module


On Fri, Jan 04, 2002 at 01:33:48PM +0530, Amit Sharma wrote:
> Hi,
hi,

> I just finished the first example "Hello world", for writing a module on
> linux. *Tryin to learn device driver programming* :)
is the "hello world" source code yours or just copied from the book? [ if
it's
yours can you say us what do you do in your init_module function?

--
$>cd /pub
$>more beer

(0>
//\  Perego Paolo <p_perego@modiano.com> - www.sikurezza.org/angel
V_/_ 'It's seems the hardest life I've never known'
I'm Linux drow 2.4.17-4GB - SuSE Linux 7.3 (i386) powered.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux