LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2006, 10:17 AM   #1
fssengg
Member
 
Registered: Feb 2005
Location: Kerala(God's own country)
Distribution: Redhat-8
Posts: 35

Rep: Reputation: 15
Question printk not working through telnet


Hi all

I wrote a simple linux module
Code:
#include<linux/module.h>
int init_module(void)
{
  printk("In init_module \n");
  return 0;
}
void cleanup_module(void)
{
  printk("in cleanup_module \n");
}

MODULE_LICENSE("GPL");
I have successfully compiled the code to .o.If i try to insert the module from the shell directly it is working .But when i try to insert the module in telnet mode the printk is not printing anything on my terminal.Any idea why it is so?
 
Old 03-28-2006, 05:08 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
if you try:
Code:
dmesg |tail
is it printed there?

Also, does it also print in a virtual terminal from X windows or only from a real tty?

I think this has to do wityh being on a real terminal or an virtual terminal.

I remember reading something in the "linix device drivers" book
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printk not working skie_knite007 Programming 1 12-31-2005 02:26 PM
Using printk arunachalam Linux - Software 1 10-10-2005 04:07 PM
Telnet not working mavles Linux - Networking 5 01-07-2005 02:31 AM
Regarding printk eshwar_ind Programming 0 11-23-2004 07:17 AM
telnet not working keirobyn Linux - Networking 2 01-21-2002 08:20 PM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration