Red Hat axp-kernel-list: Alpha Linux kernel
 help / color / mirror / Atom feed
* I have problem with printk when writing module.
@ 2002-06-03  2:16 姚 延栋
  0 siblings, 0 replies; only message in thread
From: 姚 延栋 @ 2002-06-03  2:16 UTC (permalink / 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-03  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-03  2:16 I have problem with printk when writing module 姚 延栋

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