Hi! > > Well, if we did something like modify(int fd, char *how), you could do > > > > modify(0, "nonblock,9600") > > What you're really proposing is to make ioctl's be ASCII strings. Yup. > Which is not necessarily a bad idea, and I think plan9 did something > similar (or rather, if I remember correctly, plan9 has control streams > that were ASCII. Or am I confused?). I think that plan9 uses something different -- they have ttyS0 and ttyS0ctl. This would leave us with problem "how do I get handle to ttyS0ctl when I only have handle to ttyS0"? ... > However, you can't really use a string. It would really have to be two > memory regions: incoming and outgoing, with an ASCII representation being > the _preferred_ method for stuff that isn't obviously structured or > performance-critical. What are cases where it is usefull to pass data back from kernel? ...aha, serial controls include possibility to read stuff, right? 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 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
- no ioctls for serial ports? [was Re: LANANA: To Pending Dev... Pavel Machek
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Linus Torvalds
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Pavel Machek
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Linus Torvalds
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Pavel Machek
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Tim Jansen
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Kai Henningsen
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Alexander Viro
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Tim Jansen
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Abramo Bagnara
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Alexander Viro
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Abramo Bagnara
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Alexander Viro
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Abramo Bagnara
- Re: no ioctls for serial ports? [was Re: LANANA: To Pending... Alexander Viro