From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12562 invoked from network); 3 Nov 1998 02:18:57 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 3 Nov 1998 02:18:57 -0000 Received: from draal.physics.wisc.edu (mcelrath@draal.physics.wisc.edu [128.104.223.134]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA27770 for ; Mon, 2 Nov 1998 21:06:16 -0500 Received: from localhost (mcelrath@localhost) by draal.physics.wisc.edu (8.8.7/8.8.7) with ESMTP id UAA10354 for ; Mon, 2 Nov 1998 20:06:08 -0600 Date: Mon, 2 Nov 1998 20:06:08 -0600 (EST) From: Bob McElrath To: axp-list@redhat.com Subject: Re: Ack!!! Modules!!! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 2 Nov 1998, Keith Baker wrote: > can anyone tell me if this works? > > #define MODULE > #include > > 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 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_| \.___________________________________________________________________./