Re: pl2303.c and the pin status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fredag den 23. marts 2012 23:31:25 skrev Gerald Villemure:
> 
> 1. Add a new parameter to the open() call so you can open the device
> file like:
>      fd = open(comPort,O_NO_ALTER_DTR_RTS)
> 
> Pros: Would open access to elaborate programs written in C
> Cons: Using TIOCMGET and TIOCMSET is outside the reach of a simple shell
> script.  I guess I could write a small wrapper in C to make it available
> to script writers but this is not in keeping with the Unix/Linux philosophy.

I'm in favor of a new parameter to 'open'. Each serial-driver of cause needs 
to support that. Since the 'open'-call is pretty central I guess such a change 
need some kind of green-card - just to avoid getting the patches rejected. How 
can we get that?

-- 
Søren Holm
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux