Hi! > > > They might also be exactly the same channel, except with certain magic > > > bits set. The example peter gave was fine: tty devices could very usefully > > > be opened with something like > > > > > > fd = open("/dev/tty00/nonblock,9600,n8", O_RDWR); > > > > > > where we actually open up exactly the same channel as if we opened up > > > /dev/cua00, we just set the speed etc at the same time. Which makes things > > > > Hmm, there might be problem with this. How do you change speed without > > reopening device? [Remember: your mice knows when you close device] > > If you implement it as a filesystem you coould have a settings file in the > tty filesystem. Something like this: > > echo "115200" > /dev/tty/settings You can currently do stty 115200 or stty 19200 when your stdin is serial port. If it is filesystem, you'll have hard time finding *which* of serial ports it is, followed by opening it. What about this? bash < /dev/ttyS0 & rm -r /dev/ttyS0 how does bash change speed of serial line, then? Pavel -- The best software in life is free (not shareware)! Pavel GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: LANANA: To Pending Device Number Registrants Erik Mouw
- Re: LANANA: To Pending Device Number Registrants Eric W. Biederman
- Re: LANANA: To Pending Device Number Registrants Jeff Randall
- Re: LANANA: To Pending Device Number Registrants Alexander Viro
- Re: LANANA: To Pending Device Number Registrants Linus Torvalds
- Re: LANANA: To Pending Device Number Registrants Jeff Garzik
- Re: LANANA: To Pending Device Number Registrants James Simmons
- Re: LANANA: To Pending Device Number Registrants Kai Henningsen
- Re: LANANA: To Pending Device Number Registrants Pavel Machek
- Re: LANANA: To Pending Device Number Registrants James Simmons
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Pavel Machek
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Linus Torvalds
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Pavel Machek
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Linus Torvalds
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Pavel Machek
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Tim Jansen
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Kai Henningsen
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Alexander Viro
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Tim Jansen
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Abramo Bagnara
- Re: no ioctls for serial ports? [was Re: LANANA: To Pend... Alexander Viro