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

BOUNCE rtl@rtlinux.org: Approval required: Non-member submission from ["Jeff Krasky" <jkrasky@hotmail.com>] (fwd)



>From owner-rtl Sat May  5 16:32:44 2001
Received: from hotmail.com (f38.law4.hotmail.com [216.33.149.38])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f45MWiJ29068
	for <rtl@rtlinux.org>; Sat, 5 May 2001 16:32:44 -0600
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Sat, 5 May 2001 15:28:36 -0700
Received: from 65.25.254.186 by lw4fd.law4.hotmail.msn.com with HTTP;	Sat, 05 May 2001 22:28:36 GMT
X-Originating-IP: [65.25.254.186]
From: "Jeff Krasky" <jkrasky@hotmail.com>
To: rtl@rtlinux.org
Subject: something wrong with printk???
Date: Sat, 05 May 2001 17:28:36 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <F38SsKAfHciBmjm2Jdo00000f82@hotmail.com>
X-OriginalArrivalTime: 05 May 2001 22:28:36.0930 (UTC) FILETIME=[BA166A20:01C0D5B2]

Hi all,
this is probably a simple question but I am not sure where to look for
the answer.  I have Rubini's Linux Device Drivers book, and I am trying
to get his example Hello World module going.  I am running Red Hat 6.2
kernel 2.2.14-5.0.  Here is the code that I use:

#define MODULE
#include <linux/module.h>

int init_module(void) { printk("<1>Hello World\n"); return 0;}
void cleanup_module(void) {printk("<1>Goodbye\n");}

and this is what I type when I am logged in as root:

# gcc -c hello.c
# insmod hello.o

the message "Hello World" does not get displayed

then I type:

#rmmod hello

the message "Goodbye" does not get displayed.

I can tell (I think) that the module is being inserted because if I try to 
insert it twice without removing it first, it says a module with that name 
already exists.

Any ideas?

thanks...

Jeffrey
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com