Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #512551

Re: FTDI chips VCP or VX drivers

Newsgroups sci.electronics.design
From Rob <nomail@example.com>
Subject Re: FTDI chips VCP or VX drivers
References (7 earlier) <piq2dj$lfe$1@dont-email.me> <piqd95$rhm$1@dont-email.me> <slrnpl1fpc.5bf.nomail@xs9.xs4all.nl> <4fOdnZkxabQ298_GnZ2dnUU7-K2dnZ2d@supernews.com> <pjqa6l$cjh$1@gioia.aioe.org>
Message-ID <slrnpm1jsn.jkr.nomail@xs9.xs4all.nl> (permalink)
Date 2018-07-31 21:07 +0000

Show all headers | View raw


Terry Newton <nbill@bellsouth.net> wrote:
> On Fri, 20 Jul 2018 19:05:16 -0400, Phil Hobbs wrote:
>
>> On 07/19/18 12:41, Rob wrote:
>>> Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
>>>> Linux lets you open a file N times within a single process, which is
>>>> irritating--you can't use file handles alone to enforce thread safety
>>>> the way you can in Windows or OS/2.
>>> 
>>> Of course there are plenty explicit locking mechanisms available...
>>> 
>>> 
>> Yeah, there are workarounds, but it's still a serious wart, almost in
>> the same class as the Linux thread scheduler (but don't get me started).
>> 
>> I can't think of a single reason why one would want to be able to do
>> that--AFAIK doing it is _always_ a bug.
>
> For a single process, yes that should be a bug. For another process
> it's very handy (and dangerous:), I use this feature all the time
> when programming embedded stuff, can have a terminal open to some
> serial gizmo then use another script to write stuff to /dev/ttyUSB0
> with the right char/line delay, and the "progress dots" show up on
> the open terminal. Got a sendUSB script on a right-click, doesn't
> even care about baud etc, just assumes the port is already open.
> It works because Linux treats almost everything as a file and
> unless locked anyone else can read and write to it. No idea how
> to do something like that in Windows, there end up having to
> write custom terminal apps with the download stuff built in.

Even in a single process and with a normal diskfile it can be useful
to have the file open multiple times (on different fd) e.g. to
read it at one position and write it at another position without
having to seek between te positions all the time.
(a single fd has a single read/write position)

This can be done in the same thread or in different threads in the
same process.  Having threads in the process can be another reason
to want to open it several times, so you don't have to needlessly
interlock the threads to share the access to the file.
(e.g. when one thread reads and another thread writes the same file
at a different position)

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

FTDI chips   VCP or VX drivers "mook Jonhon" <mook@mook.net> - 2018-07-17 23:53 +0000
  Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-18 10:21 +0100
    Re: FTDI chips VCP or VX drivers jack4747@gmail.com - 2018-07-18 02:42 -0700
      Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-18 11:01 +0100
    Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-18 09:14 -0400
      Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-18 18:12 +0000
        Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-18 17:58 -0400
          Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-19 00:07 +0100
            Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 08:23 +0000
            Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 08:05 -0400
              Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 12:21 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 08:35 -0400
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-19 14:00 +0000
                Re: FTDI chips VCP or VX drivers gnuarm.deletethisbit@gmail.com - 2018-07-19 08:05 -0700
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-19 15:38 +0000
                Re: FTDI chips VCP or VX drivers gnuarm.deletethisbit@gmail.com - 2018-07-19 12:56 -0700
                Re: FTDI chips VCP or VX drivers Johnny B Good <johnny-b-good@invalid.ntlworld.com> - 2018-07-19 18:22 +0000
                Re: FTDI chips VCP or VX drivers Lasse Langwadt Christensen <langwadt@fonz.dk> - 2018-07-19 11:37 -0700
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-19 19:20 +0000
                Re: FTDI chips VCP or VX drivers Lasse Langwadt Christensen <langwadt@fonz.dk> - 2018-07-19 12:39 -0700
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 03:45 +0000
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-21 17:20 -0400
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-22 03:05 +0000
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-22 15:28 -0400
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-22 19:44 +0000
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-22 20:43 -0400
                Re: FTDI chips VCP or VX drivers Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2018-07-19 21:54 +0200
                Re: FTDI chips VCP or VX drivers Jasen Betts <jasen@xnet.co.nz> - 2018-07-20 06:11 +0000
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 06:53 +0000
                Re: FTDI chips VCP or VX drivers Jasen Betts <jasen@xnet.co.nz> - 2018-07-20 11:05 +0000
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 12:21 +0000
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 07:31 +0000
                Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-19 07:48 -0700
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 12:05 -0400
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 16:40 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-20 19:03 -0400
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-21 10:13 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-21 14:08 -0400
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-21 17:33 -0400
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-19 11:15 -0400
              Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-19 22:50 +0100
                Re: FTDI chips VCP or VX drivers pcdhobbs@gmail.com - 2018-07-19 15:38 -0700
                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 03:45 +0000
                Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-20 08:51 +0100
          Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highland_snip_technology.com> - 2018-07-18 17:25 -0700
            Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 08:21 +0000
              Re: FTDI chips VCP or VX drivers "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-19 08:06 -0500
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 16:08 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 12:12 -0400
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 16:41 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-20 19:05 -0400
                Re: FTDI chips VCP or VX drivers "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-20 18:29 -0500
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-21 17:02 -0400
                Re: FTDI chips VCP or VX drivers Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2018-07-22 00:04 +0200
                Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-22 16:15 -0400
                Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-22 14:45 -0700
                Re: FTDI chips VCP or VX drivers Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2018-07-24 23:59 +0200
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-25 07:27 +0000
                Re: FTDI chips VCP or VX drivers DecadentLinuxUserNumeroUno@decadence.org - 2018-08-01 01:49 +0000
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-21 10:16 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-21 14:07 -0400
                Re: FTDI chips VCP or VX drivers "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-21 15:28 -0500
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-22 18:15 +0000
                Re: FTDI chips VCP or VX drivers pcdhobbs@gmail.com - 2018-07-22 11:25 -0700
                Re: FTDI chips VCP or VX drivers Jeff Liebermann <jeffl@cruzio.com> - 2018-07-22 14:06 -0700
                Re: FTDI chips VCP or VX drivers pcdhobbs@gmail.com - 2018-07-22 15:41 -0700
                Re: FTDI chips VCP or VX drivers Jeff Liebermann <jeffl@cruzio.com> - 2018-07-22 20:22 -0700
                Re: FTDI chips VCP or VX drivers Terry Newton <nbill@bellsouth.net> - 2018-07-31 18:36 +0000
                Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-31 15:43 -0400
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-31 21:07 +0000
                Re: FTDI chips VCP or VX drivers dplatt@coop.radagast.org (Dave Platt) - 2018-07-31 14:20 -0700
              Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-19 06:36 -0700
            Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 08:07 -0400
              Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-19 06:42 -0700
      Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-18 22:36 +0100
        Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 08:30 +0000
          Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-19 10:17 +0100
      Re: FTDI chips VCP or VX drivers "John Miles, KE5FX" <jmiles@gmail.com> - 2018-07-18 15:22 -0700

csiph-web