[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: LANANA: To Pending Device Number Registrants

> According to Alan Cox:
> > Given a file handle 'X' how do I find out what ioctl groups I should
> > apply to it.
> Wouldn't it be better just to *try* ioctls and see which ones work and
> which ones don't?

You can do this with the tty layer. Just open /dev/tty and try tioclinux.
On my serial console it fails and when I run the exact same program works
on my VT. It is the only way to see if these ioctl calls work. No other
way to see if your on a serial console or a VT.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [W:2.181 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site