Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how data is populated when one reads /proc/tty/driver/serial?

31 views
Skip to first unread message

zix

unread,
Dec 29, 2009, 7:17:38 AM12/29/09
to
Hi,
I need to know where is the code which reads from /proc/tty/driver/
serial(when I type cat /proc/tty/driver/serial). Please, I need this
info. I have searched a lot, but cant find anywhere. Can anybody
please help? My uart is 8250.


Thanks,
zix

Rainer Weikusat

unread,
Dec 29, 2009, 7:58:47 AM12/29/09
to
zix <zix...@gmail.com> writes:
> I need to know where is the code which reads from /proc/tty/driver/
> serial(when I type cat /proc/tty/driver/serial). Please, I need this
> info.

A kernel version could be helpful here. For 2.6.31, look for
uart_proc_fops in driver/serial/serial_core.c.

0 new messages