LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-24-2007, 12:51 AM   #1
Sreeram B S
LQ Newbie
 
Registered: Apr 2006
Posts: 26

Rep: Reputation: 0
How to get data from a terminal driver from user space? Any ioctl for this?


Hi,
I am interested in getting data which is present in the tty driver, but not yet read by any process. I can know whether any data is available or no, by using the ioctl - TIOCINQ. If its value is more than 0, then it means that there is some data in the input queue. But how do I access this data? Is there any ioctl which will allow me to read the contents of the input-buffer in a tty driver? I would like to achieve this in USER space and not in Kernel space.

Kindly inform.
I am using RedHat Version 9. Kernel version=2.4.20-8

Regards,
Sreeram
 
  


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
accessing data structure of eth0 from user space???? raklo Linux - Kernel 10 02-09-2007 04:12 AM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 10:15 PM
Custom PCI driver problems (acess from user-space) - Ubuntu 6.06 / Linux 2.6 kalen Linux - Kernel 0 11-09-2006 06:11 AM
how to assign names to PCI devices, that ioctl() can use from user space? MarkGaleck Linux - Kernel 2 10-23-2006 03:55 PM
ioctl as non-root user cristianbdg Programming 3 12-21-2005 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:58 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