Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-27-2006, 09:17 AM   #1
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
int init_module(void)
  printk("In init_module \n");
  return 0;
void cleanup_module(void)
  printk("in cleanup_module \n");

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, 04:08 AM   #2
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
if you try:
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


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 01:26 PM
Using printk arunachalam Linux - Software 1 10-10-2005 03:07 PM
Telnet not working mavles Linux - Networking 5 01-07-2005 01:31 AM
Regarding printk eshwar_ind Programming 0 11-23-2004 06:17 AM
telnet not working keirobyn Linux - Networking 2 01-21-2002 07:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:40 AM.

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