Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: larrys@lexis-nexis.com (Larry Snyder)
To: axp-list@redhat.com
Subject: Re: Ack!!!  Modules!!!
Date: Mon, 2 Nov 1998 19:55:08 -0500 (EST)	[thread overview]
Message-ID: <199811030055.TAA26067@ra.lexis-nexis.com> (raw)
In-Reply-To: <Pine.BSI.3.95.981102194255.18603B-100000@shell1.cybercom.net>

I'm no c programmer, but I'd guess you're missing a few more header
files (like the one that defines printk...).  A few more #includes
might be in order.
-ls-

Keith Baker <toaster@cybercom.net> wrote:
> can anyone tell me if this works?
> 
> #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");}
> 
> Its from Oriellys book...  I am attempting to write a kernel module and
> this was their first example..  it just gives me unresolved symbols for
> printk...  Shouldn't this exist?  What am I doing :-(
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


  reply	other threads:[~1998-11-03  1:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-03  0:46 Ack!!! Modules!!! Keith Baker
1998-11-03  0:55 ` Larry Snyder [this message]
1998-11-03  2:06 ` Bob McElrath
1998-11-03  2:10   ` Keith Baker
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox