Red Hat axp-kernel-list: Alpha Linux kernel
 help / color / mirror / Atom feed
From: "姚 延栋" <yydzero@hotmail.com>
Subject: I have problem with printk when writing module.
Date: Mon, 3 Jun 2002 10:16:33 +0800	[thread overview]
Message-ID: <OE710Rvw9yhMTnCxk4r0000896e@hotmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

sir:
    I write a module like this :
    
    #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");

    }

    then I compile and insmod this module,but I
can't see the output of printk in the module.
while I lsmod I can see the module already loaded.Why printk can't work properly?

    My os is redhat 7.2,kernel 2.4.7-10 and cpu 
p4 1.7G.
    thank you !

[-- Attachment #2: Type: text/html, Size: 1687 bytes --]

                 reply	other threads:[~2002-06-03  2:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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