LinuxQuestions.org
Help answer threads with 0 replies.
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 01-17-2010, 04:18 AM   #1
valmorcz
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
read problem in tty driver


Hello.I have been working on program based on LDD3 source tiny_tty driver (http://www.cs.fsu.edu/~baker/devices...tty/tiny_tty.c) and I have problem with reading from device in user space.

Program works perfectly but when I copy data from driver (equivalent to tiny_timer with using tty_flip_buffer_push and tty_insert_flip_string or tty_insert_flip_char )to user space, data return to buffer in writing function .I can not read data in user space (cat /dev/ttty0) and I have no idea where the problem is.
 
Old 01-17-2010, 09:19 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try using strace, it may help you pinpoint the issue

cheers
 
  


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
tty driver metso777 Linux - Kernel 3 11-20-2006 10:34 PM
read from tty buffer vineeth789 Programming 1 01-12-2006 10:40 AM
unable to change tty /dev/tty1 Read-only filesystem ramaswamyps MEPIS 4 12-29-2005 09:50 PM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
unable to change tty /dev/tty1 Read-only filesystem behmjose Linux From Scratch 1 01-02-2004 08:55 PM

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

All times are GMT -5. The time now is 06:42 AM.

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