[CLUE-Tech] URL for ioctl TIOS functions?
David Anselmi
anselmi at intradenver.net
Tue Jul 31 20:51:20 MDT 2001
Well, I don't know squat about this. So tell me whether I'm close or not...
I poked around in the kernel source - TIOCMBI[SC] seems to be for setting or
clearing bits in the modem control register (async_struct->MCR). A look on
yahoo for 'modem control register' turns up some hits that are pretty greek
to me. But this one looks promising:
http://www.beyondlogic.org/serial/serial.htm
Seems that TIOCM{GET,SET} either sets or gets the whole async_struct. If
you've seen examples, you're way ahead of me. async_struct is defined in a
file called linux/serialP.h. Again, maybe the website helps.
Is that any use, or did you already know all of it?
Dave
"Jed S. Baer" wrote:
> Greetings all.
>
> After spending some time finding all manner of websites not having this
> data ...
>
> Does anyone know where the documentation is for the serial IO calls to
> ioctl()? Specifically:
>
> 0x00005415 TIOCMGET int *
> 0x00005416 TIOCMBIS const int *
> 0x00005417 TIOCMBIC const int *
> 0x00005418 TIOCMSET const int *
>
> (from "man ioctl_list")
>
> Or, to put it another way, I'm trying to write a slightly more useful
> modem-line toggling proggy (for playing with my UPS) than what I've seen
> in the UPS-HOWTO. The only examples I've found are in the UPS-HOWTO, and
> deal with only the CMSET/CMGET functions. Seems there ought to be a
> CMCLR (clear signal) as well, eh -- maybe that's what CMBIC does. (I
> never thought I'd need a break-out box again ;-)
>
> Anyway, the Serial-Programming-HOWTO doesn't seem to cover this stuff,
> nor any man pages I can find.
>
> TIA
> Regards,
> jed
More information about the clue-tech
mailing list