Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Bob McElrath <mcelrath@draal.physics.wisc.edu>
To: axp-list@redhat.com
Subject: Re: Ack!!!  Modules!!!
Date: Mon, 2 Nov 1998 20:06:08 -0600 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.04.9811022004050.8295-100000@draal.physics.wisc.edu> (raw)
In-Reply-To: <Pine.BSI.3.95.981102194255.18603B-100000@shell1.cybercom.net>

On Mon, 2 Nov 1998, Keith Baker 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 :-(

printk is the kernel logging facility.  Calls to printk usually end up
routed to syslogd (klogd).  #include <linux/kernel.h> to fix the
compile-time warnings.

-- Bob

  ./'^`\._./'~`\._./'~`\._./'~`\._./'#`\._./'~`\._./'~`\._./'~`\._./'^`\.
 / Rube Goldberg? Bah! Amateur! I give you..Windows 98! Linux everywhere \ 
| Linux, because everyone's work is mission critical.   ANYTHING inside.  |
|_Bob McElrath (mcelrath@wisconsin.cern.ch) Univ. of Wisconsin at Madison_|
  \.___________________________________________________________________./


  parent reply	other threads:[~1998-11-03  2:18 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
1998-11-03  2:06 ` Bob McElrath [this message]
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