On Tue, Mar 08, 2011 at 01:24:32AM +0100, Eric Bénard wrote: > * this documentation gives some details on how to get the n_gsm > line discipline to work with modems supporting 07.10 basic option. [...] > --- /dev/null > +++ b/Documentation/serial/n_gsm.txt [...] > +How to use it > +------------- > +1- initialize the modem in 0710 mux mode (usually AT+CMUX= command) through > +its serial port. Depending on the modem used, you can pass more or less > +parameters to this command, > +2- switch the serial line to using the n_gsm line discipline by using > +TIOCSETD ioctl, > +3- configure the mux using GSMIOC_GETCONF / GSMIOC_SETCONF ioctl, > + > +Major parts of the initialization program : [...] > + /* and wait for ever to keep the line discipline enabled */ > + while(1) sleep(1); People will probably copy this without much thinking. It's better to use pause() in the loop to let the process sink to swap completely instead of waking it every second to do nothing. Best Regards, Michał Mirosław -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html