LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2006, 03:33 AM   #1
raklo
Member
 
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
accessing tty_struct structure of a terminal(say tty1)


hi everybody,
i generally have to do programming on gui terminal(shell) rather than the textbased terminal.In gui terminal when i insert any device driver code i dont get any printk messages on the console,but everytime i have to type dmesg to see all the messages.while in text mode(CTR-ALT-F1)
i get all the printk and other debug messages on the consoleitself.

so i want to tweak the write function of the pts driver a little sotht i can ghet the expected results.but for tht i have to access the tty_struct structrue corresponding to the pts that i m working on.

i tried ptsdev_get_tty(int number) function ,but i m getting message
UNDEFINED SYMBOL ptsdev_get_tty,
though this symbol is defined in System.map of my system.

i m using FC3 with kernel version 2.6.9.11

so any idea howt o access the struct tty_struct of pts that i m wroking on

any input is appreciated
waiting for reply
rakesh
 
  


Reply



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
error in accessing structure variable in kernel modules dypgrp Programming 3 01-17-2005 07:42 AM
Accessing tty1 from ssh. dlublink Mandriva 2 10-07-2004 10:28 PM
Using terminal to talk to tty1 scotlin Linux - Newbie 2 09-18-2004 08:41 AM
showing X messages from tty1 in a terminal window slackist Linux - Newbie 7 06-29-2004 06:48 PM
setting terminal modes (structure question) SciYro Programming 3 05-08-2004 08:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:06 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
Open Source Consulting | Domain Registration